Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Minimal name translator of JUMP consortium.
pip install broad-babel
You can fetch a single value. Note that only ORF datasets have an associated broad_id by default.
from broad_babel.query import broad_to_standard
broad_to_standard("ccsbBroad304_99994")
# 'LacZ'
If you provide multiple strings it will return dictionary.
broad_to_standard(("ccsbBroad304_09930", "ccsbBroad304_16164"))
# {'ccsbBroad304_09930': 'SCIMP', 'ccsbBroad304_16164': 'NAP1L5'}
You can also use sqlite bindings. For instance, to get all the samples that start as "poscon" you can use:
from broad_babel.query import run_query
run_query(query="poscon%", input_column="pert_type", output_columns="JCP2022,standard_key,plate_type,pert_type", operator="LIKE")
# [(None, 'LRRMQNGSYOUANY-OMCISZLKSA-N', 'compound', 'poscon_cp'),
# (None, 'DHMTURDWPRKSOA-RUZDIDTESA-N', 'compound', 'poscon_diverse'),
# ...
# ('JCP2022_913605', 'CDK2', 'orf', 'poscon_orf'),
# ('JCP2022_913622', 'CLK1', 'orf', 'poscon_cp')]
This is very useful when you need to map from a long list of perturbation names. The following example shows how to map all the perturbations in the compound plate from JCP id to perturbation type.
from broad_babel.query import get_mapper
mapper = get_mapper(query="compound", input_column="plate_type", output_columns="JCP2022,pert_type")
from broad_babel.query import export_csv
export_csv("./output.csv")
The available fields are:
You can fetch any field using another (note that the output is a list of tuples)
run_query(query="JCP2022_915119", input_column="JCP2022", output_columns="broad_sample")
# [('ccsbBroad304_16164',)]
It is also possible to use fuzzy querying by changing the operator argument and adding "%" to out key. For example, to get the genes in the "orf" dataset whose name start with "RBP"(some of which are retinol-binding proteins) we can do:
[x[:2] for x in run_query(
"RBP%",
input_column="standard_key",
output_columns="standard_key,JCP2022,plate_type",
operator="LIKE",
) if x[2]=="orf"]
# [('RBP7', 'JCP2022_904406'), ('RBPJ', 'JCP2022_906023'), ('RBP4', 'JCP2022_906415'),
# ('RBPMS', 'JCP2022_902435'), ('RBP2', 'JCP2022_914559'), ('RBP2', 'JCP2022_906413'),
# ('RBP3', 'JCP2022_906414'), ('RBP1', 'JCP2022_910341')]
Note that we also got RBPMS here, which is actually RNA-binding protein with multiple splicing, so use this with caution.
Metadata sources and additional documentation is available here.
Note that Babel only contains metadata of JUMP compounds and genes, and may not contain sample information from other projects (e.g., LINCS). A more comprehensive table to map "broad ids" to standard chemical ids (e.g., SMILES, InChiKey) can be found here.
FAQs
A translator of Broad and JUMP ids to more conventional names.
We found that broad-babel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.