Target, drug and association queries¶
Query targets, drugs and association evidence.
1) Retrieve drug mechanisms by name or identifier¶
- Purpose: Retrieve drug mechanisms by name or identifier.
- Method: Use
ChEMBLto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_embl_get_drug_mechanisms(*, limit=None, offset=None, drug_chembl_id=None, drug_name=None, molecule_chembl_id=None, chembl_id=None, drug_chembl_id__exact=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
status,dataand related fields. - Example code:
import dnakit
result = dnakit.databases.ch_embl_get_drug_mechanisms(
drug_chembl_id='CHEMBL1201581',
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
2) Retrieve ChEMBL molecular structures and properties¶
- Purpose: Retrieve ChEMBL molecular structures and properties.
- Method: Use
ChEMBLto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_embl_get_molecule(*, chembl_id=None, format=None, molecule_chembl_id=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
status,dataand related fields. - Example code:
import dnakit
result = dnakit.databases.ch_embl_get_molecule(
chembl_id='CHEMBL25',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
3) Retrieve bioactivity measurements for a target¶
- Purpose: Retrieve bioactivity measurements for a target.
- Method: Use
ChEMBLto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_embl_get_target_activities(*, target_chembl_id__exact=None, limit=None, offset=None, target_chembl_id=None, chembl_id=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults. Select exactly one argument group:
target_chembl_id__exact/target_chembl_id. - Output: Returns a mapping with
status,data,countand related fields. - Example code:
import dnakit
result = dnakit.databases.ch_embl_get_target_activities(
target_chembl_id__exact='CHEMBL2074',
limit=20,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
4) Search drugs by name and development phase¶
- Purpose: Search drugs by name and development phase.
- Method: Use
ChEMBLto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_embl_search_drugs(*, query=None, max_phase=None, limit=None, offset=None, molecule_chembl_id=None, q=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
status,data,countand related fields. - Example code:
import dnakit
result = dnakit.databases.ch_embl_search_drugs(
max_phase=4,
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
5) Search drug targets by name, organism or type¶
- Purpose: Search drug targets by name, organism or type.
- Method: Use
ChEMBLto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_embl_search_targets(*, target_chembl_id=None, pref_name__contains=None, organism=None, target_type=None, fields=None, limit=None, offset=None, q=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
status,data,countand related fields. - Example code:
import dnakit
result = dnakit.databases.ch_embl_search_targets(
pref_name__contains='kinase',
organism='Homo sapiens',
limit=10,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
6) Inspect the unavailable CTD chemical–gene interaction query¶
- Purpose: Inspect the unavailable CTD chemical–gene interaction query.
- Method: Use
CTDto query or submit the supplied input and parse the response. - API:
dnakit.databases.ctd_get_chemical_gene_interactions(*, input_terms, verbose=True) - Input: Provide
input_terms. This data-source operation is currently unavailable and returns an error; the code only illustrates the call syntax. - Output: This operation currently reports an unavailable service rather than valid interaction results.
- Example code:
import dnakit
result = dnakit.databases.ctd_get_chemical_gene_interactions(
input_terms='bisphenol A',
verbose=False,
)
print(result)
- Example output: This operation currently reports an unavailable service rather than valid interaction results.
Full parameters and usage notes
7) Retrieve drug–gene interaction evidence in batches¶
- Purpose: Retrieve drug–gene interaction evidence in batches.
- Method: Use
DGIdbto query or submit the supplied input and parse the response. - API:
dnakit.databases.dgidb_get_drug_gene_interactions(*, genes=None, gene_name=None, gene=None, interaction_sources=None, interaction_types=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.dgidb_get_drug_gene_interactions(
genes=['EGFR'],
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
8) Retrieve gene druggability categories¶
- Purpose: Retrieve gene druggability categories.
- Method: Use
DGIdbto query or submit the supplied input and parse the response. - API:
dnakit.databases.dgidb_get_gene_druggability(*, genes=None, gene_name=None, gene=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.dgidb_get_gene_druggability(
genes=['EGFR', 'TP53', 'BRCA1'],
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
9) Retrieve basic drug information and approval status¶
- Purpose: Retrieve basic drug information and approval status.
- Method: Use
XMLto query or submit the supplied input and parse the response. - API:
dnakit.databases.drugbank_get_drug_basic_info_by_drug_name_or_id(*, query, case_sensitive=None, exact_match=None, limit=None, verbose=True) - Input: Provide
query. - Output: Returns a mapping with
error,query,total_matches,total_returned_resultsand related fields. - Example code:
import dnakit
result = dnakit.databases.drugbank_get_drug_basic_info_by_drug_name_or_id(
query='Aspirin',
case_sensitive=False,
exact_match=False,
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"error": "<string>",
"query": "<string>",
"total_matches": "<integer>",
"total_returned_results": "<integer>",
"results": [
{
"_tag": "<string>",
"_text": "<string>",
"_attributes": "<object>",
"drug_name": "<string>",
"drugbank_id": "<string>",
"secondary_ids": "<string>",
"description": "<string>",
"cas_number": "<string>"
}
],
"search_parameters": {
"case_sensitive": "<boolean>",
"exact_match": "<boolean>",
"limit": "<integer>"
}
}
Full parameters and usage notes
10) Retrieve pharmacodynamics, mechanisms and pharmacokinetics¶
- Purpose: Retrieve pharmacodynamics, mechanisms and pharmacokinetics.
- Method: Use
XMLto query or submit the supplied input and parse the response. - API:
dnakit.databases.drugbank_get_pharmacology_by_drug_name_or_drugbank_id(*, query, case_sensitive=None, exact_match=None, limit=None, verbose=True) - Input: Provide
query. - Output: Returns a mapping with
error,query,total_matches,total_returned_resultsand related fields. - Example code:
import dnakit
result = dnakit.databases.drugbank_get_pharmacology_by_drug_name_or_drugbank_id(
query='Aspirin',
case_sensitive=False,
exact_match=False,
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"error": "<string>",
"query": "<string>",
"total_matches": "<integer>",
"total_returned_results": "<integer>",
"results": [
{
"_tag": "<string>",
"_text": "<string>",
"_attributes": "<object>",
"drug_name": "<string>",
"drugbank_id": "<string>",
"synonyms": "<string>",
"pharmacodynamics": "<string>",
"mechanism_of_action": "<string>"
}
],
"search_parameters": {
"case_sensitive": "<boolean>",
"exact_match": "<boolean>",
"limit": "<integer>"
}
}
Full parameters and usage notes
11) Retrieve drug targets, enzymes, carriers and transporters¶
- Purpose: Retrieve drug targets, enzymes, carriers and transporters.
- Method: Use
XMLto query or submit the supplied input and parse the response. - API:
dnakit.databases.drugbank_get_targets_by_drug_name_or_drugbank_id(*, query, case_sensitive=None, exact_match=None, limit=None, verbose=True) - Input: Provide
query. - Output: Returns a mapping with
error,query,total_matches,total_returned_resultsand related fields. - Example code:
import dnakit
result = dnakit.databases.drugbank_get_targets_by_drug_name_or_drugbank_id(
query='Aspirin',
case_sensitive=False,
exact_match=False,
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"error": "<string>",
"query": "<string>",
"total_matches": "<integer>",
"total_returned_results": "<integer>",
"results": [
{
"_tag": "<string>",
"_text": "<string>",
"_attributes": "<object>",
"drug_name": "<string>",
"drugbank_id": "<string>",
"synonyms": "<string>",
"targets": "<array>",
"enzymes": "<array>"
}
],
"search_parameters": {
"case_sensitive": "<boolean>",
"exact_match": "<boolean>",
"limit": "<integer>"
}
}
Full parameters and usage notes
12) Search the DrugBank vocabulary by name or synonym¶
- Purpose: Search the DrugBank vocabulary by name or synonym.
- Method: Use
Datasetto query or submit the supplied input and parse the response. - API:
dnakit.databases.drugbank_vocab_search(*, query, search_fields=None, case_sensitive=None, exact_match=None, limit=None, verbose=True) - Input: Provide
query. - Output: Returns a mapping with
query,total_results,results,search_parametersand related fields. - Example code:
import dnakit
result = dnakit.databases.drugbank_vocab_search(
query='aspirin',
search_fields=['Common name', 'Synonyms'],
case_sensitive=False,
exact_match=False,
limit=10,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"query": "<string>",
"total_results": "<integer>",
"results": [
{
"DrugBank ID": "<string>",
"Accession Numbers": "<string>",
"Common name": "<string>",
"CAS": "<string>",
"UNII": "<string>",
"Synonyms": "<string>",
"Standard InChI Key": "<string>",
"matched_fields": "<array>"
}
],
"search_parameters": {
"search_fields": [
"<string>"
],
"case_sensitive": "<boolean>",
"exact_match": "<boolean>",
"limit": "<integer>"
}
}
Full parameters and usage notes
13) Retrieve literature-based disease–target association scores¶
- Purpose: Retrieve literature-based disease–target association scores.
- Method: Use
DiseaseTargetScoreto query or submit the supplied input and parse the response. - API:
dnakit.databases.europepmc_disease_target_score(*, efoId, pageSize=None, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
disease_info,datasource,total_targets_with_scores,target_scoresand related fields. - Example code:
import dnakit
result = dnakit.databases.europepmc_disease_target_score(
efoId='MONDO_0011996',
pageSize=100,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"disease_info": {
"disease_id": "<string>",
"disease_name": "<string>"
},
"datasource": "<string>",
"total_targets_with_scores": "<integer>",
"target_scores": [
{
"target_symbol": "<string>",
"target_id": "<string>",
"datasource": "<string>",
"score": "<number>"
}
]
}
Full parameters and usage notes
14) Retrieve expression-based disease–target association scores¶
- Purpose: Retrieve expression-based disease–target association scores.
- Method: Use
DiseaseTargetScoreto query or submit the supplied input and parse the response. - API:
dnakit.databases.expression_atlas_disease_target_score(*, efoId, pageSize=None, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
disease_info,datasource,total_targets_with_scores,target_scoresand related fields. - Example code:
import dnakit
result = dnakit.databases.expression_atlas_disease_target_score(
efoId='MONDO_0011996',
pageSize=100,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"disease_info": {
"disease_id": "<string>",
"disease_name": "<string>"
},
"datasource": "<string>",
"total_targets_with_scores": "<integer>",
"target_scores": [
{
"target_symbol": "<string>",
"target_id": "<string>",
"datasource": "<string>",
"score": "<number>"
}
]
}
Full parameters and usage notes
15) Retrieve active ingredients in a drug product¶
- Purpose: Retrieve active ingredients in a drug product.
- Method: Use
FDADrugLabelto query or submit the supplied input and parse the response. - API:
dnakit.databases.fda_get_active_ingredient_info_by_drug_name(*, drug_name, limit=None, skip=None, verbose=True) - Input: Provide
drug_name. - Output: Returns a mapping with
meta,results,result_count,duplicates_removedand related fields. - Example code:
import dnakit
result = dnakit.databases.fda_get_active_ingredient_info_by_drug_name(
drug_name='Aspirin',
limit=1,
skip=0,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"meta": {
"skip": "<integer>",
"limit": "<integer>",
"total": "<integer>"
},
"results": [
{
"openfda.brand_name": "<array>",
"openfda.generic_name": "<array>",
"active_ingredient": "<array>",
"spl_product_data_elements": "<array>"
}
],
"result_count": "<integer>",
"duplicates_removed": "<integer>",
"dedup_note": "<string>"
}
Full parameters and usage notes
16) Retrieve adverse reactions from drug labels¶
- Purpose: Retrieve adverse reactions from drug labels.
- Method: Use
FDADrugLabelto query or submit the supplied input and parse the response. - API:
dnakit.databases.fda_get_adverse_reactions_by_drug_name(*, drug_name, limit=None, skip=None, verbose=True) - Input: Provide
drug_name. - Output: Returns a mapping with
meta,results,result_count,duplicates_removedand related fields. - Example code:
import dnakit
result = dnakit.databases.fda_get_adverse_reactions_by_drug_name(
drug_name='Aspirin',
limit=1,
skip=0,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"meta": {
"skip": "<integer>",
"limit": "<integer>",
"total": "<integer>"
},
"results": [
{
"openfda.brand_name": "<array>",
"openfda.generic_name": "<array>",
"adverse_reactions": "<array>",
"warnings_and_cautions": "<array>",
"spl_product_data_elements": "<array>",
"warnings": "<array>",
"boxed_warning": "<array>",
"precautions": "<array>"
}
],
"result_count": "<integer>",
"duplicates_removed": "<integer>",
"dedup_note": "<string>",
"section_note": "<string>",
"note": "<string>"
}
Full parameters and usage notes
17) Retrieve drug boxed warnings and safety information¶
- Purpose: Retrieve drug boxed warnings and safety information.
- Method: Use
FDADrugLabelto query or submit the supplied input and parse the response. - API:
dnakit.databases.fda_get_boxed_warning_info_by_drug_name(*, drug_name, limit=None, skip=None, verbose=True) - Input: Provide
drug_name. - Output: Returns a mapping with
meta,results,result_count,duplicates_removedand related fields. - Example code:
import dnakit
result = dnakit.databases.fda_get_boxed_warning_info_by_drug_name(
drug_name='Aspirin',
limit=1,
skip=0,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"meta": {
"skip": "<integer>",
"limit": "<integer>",
"total": "<integer>"
},
"results": [
{
"openfda.brand_name": "<array>",
"openfda.generic_name": "<array>",
"boxed_warning": "<array>",
"spl_product_data_elements": "<array>",
"warnings_and_cautions": "<array>",
"warnings": "<array>",
"related_sections_present": "<array>"
}
],
"result_count": "<integer>",
"duplicates_removed": "<integer>",
"dedup_note": "<string>",
"section_note": "<string>",
"note": "<string>"
}
Full parameters and usage notes
18) Retrieve clinical study information from drug labels¶
- Purpose: Retrieve clinical study information from drug labels.
- Method: Use
FDADrugLabelto query or submit the supplied input and parse the response. - API:
dnakit.databases.fda_get_clinical_studies_info_by_drug_name(*, drug_name, limit=None, skip=None, verbose=True) - Input: Provide
drug_name. - Output: Returns a mapping with
meta,results,result_count,duplicates_removedand related fields. - Example code:
import dnakit
result = dnakit.databases.fda_get_clinical_studies_info_by_drug_name(
drug_name='Aspirin',
limit=1,
skip=0,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"meta": {
"skip": "<integer>",
"limit": "<integer>",
"total": "<integer>"
},
"results": [
{
"openfda.brand_name": "<array>",
"openfda.generic_name": "<array>",
"clinical_studies": "<array>",
"spl_product_data_elements": "<array>"
}
],
"result_count": "<integer>",
"duplicates_removed": "<integer>",
"dedup_note": "<string>"
}
Full parameters and usage notes
19) Retrieve drug indications and usage information¶
- Purpose: Retrieve drug indications and usage information.
- Method: Use
FDADrugLabelto query or submit the supplied input and parse the response. - API:
dnakit.databases.fda_get_indications_by_drug_name(*, drug_name, limit=None, skip=None, verbose=True) - Input: Provide
drug_name. - Output: Returns a mapping with
meta,results,result_count,duplicates_removedand related fields. - Example code:
import dnakit
result = dnakit.databases.fda_get_indications_by_drug_name(
drug_name='Aspirin',
limit=1,
skip=0,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"meta": {
"skip": "<integer>",
"limit": "<integer>",
"total": "<integer>"
},
"results": [
{
"openfda.brand_name": "<array>",
"openfda.generic_name": "<array>",
"indications_and_usage": "<array>",
"spl_product_data_elements": "<array>"
}
],
"result_count": "<integer>",
"duplicates_removed": "<integer>",
"dedup_note": "<string>"
}
Full parameters and usage notes
20) Retrieve mechanisms of action from drug labels¶
- Purpose: Retrieve mechanisms of action from drug labels.
- Method: Use
FDADrugLabelto query or submit the supplied input and parse the response. - API:
dnakit.databases.fda_get_mechanism_of_action_by_drug_name(*, drug_name, limit=None, skip=None, verbose=True) - Input: Provide
drug_name. - Output: Returns a mapping with
meta,results,result_count,duplicates_removedand related fields. - Example code:
import dnakit
result = dnakit.databases.fda_get_mechanism_of_action_by_drug_name(
drug_name='Aspirin',
limit=1,
skip=0,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"meta": {
"skip": "<integer>",
"limit": "<integer>",
"total": "<integer>"
},
"results": [
{
"openfda.brand_name": "<array>",
"openfda.generic_name": "<array>",
"mechanism_of_action": "<array>",
"spl_product_data_elements": "<array>"
}
],
"result_count": "<integer>",
"duplicates_removed": "<integer>",
"dedup_note": "<string>"
}
Full parameters and usage notes
21) Retrieve metabolite–disease associations¶
- Purpose: Retrieve metabolite–disease associations.
- Method: Use
Metaboliteto query or submit the supplied input and parse the response. - API:
dnakit.databases.hmdb_get_diseases(*, operation=None, hmdb_id=None, compound_name=None, pubchem_cid=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
identifier,compound_name,pubchem_cid,ctd_query_termand related fields. - Example code:
import dnakit
result = dnakit.databases.hmdb_get_diseases(
hmdb_id='HMDB0000122',
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"identifier": "<string>",
"compound_name": "<string>",
"pubchem_cid": "<integer>",
"ctd_query_term": "<string>",
"disease_count": "<integer>",
"diseases": [
{
"disease_name": "<string>",
"disease_id": "<string>",
"disease_categories": "<string>",
"direct_evidence": "<string>",
"pubmed_ids": "<array>"
}
]
}
Full parameters and usage notes
22) Retrieve metabolite information by identifier or name¶
- Purpose: Retrieve metabolite information by identifier or name.
- Method: Use
Metaboliteto query or submit the supplied input and parse the response. - API:
dnakit.databases.hmdb_get_metabolite(*, operation=None, hmdb_id=None, compound_name=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
pubchem_cid,name,iupac_name,formulaand related fields. - Example code:
import dnakit
result = dnakit.databases.hmdb_get_metabolite(
hmdb_id='HMDB0000122',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"pubchem_cid": "<integer>",
"name": "<string>",
"iupac_name": "<string>",
"formula": "<string>",
"molecular_weight": "<string>",
"smiles": "<string>",
"inchikey": "<string>"
}
Full parameters and usage notes
23) Search metabolites by name or molecular formula¶
- Purpose: Search metabolites by name or molecular formula.
- Method: Use
Metaboliteto query or submit the supplied input and parse the response. - API:
dnakit.databases.hmdb_search(*, operation=None, query, verbose=True) - Input: Provide
query. - Output: Returns a mapping with
query,results,countand related fields. - Example code:
import dnakit
result = dnakit.databases.hmdb_search(
query='glucose',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"query": "<string>",
"results": [
{
"pubchem_cid": "<integer>",
"name": "<string>",
"formula": "<string>",
"molecular_weight": "<string>",
"smiles": "<string>"
}
],
"count": "<integer>"
}
Full parameters and usage notes
24) Retrieve known drugs associated with a disease¶
- Purpose: Retrieve known drugs associated with a disease.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_associated_drugs_by_disease_efo_id(*, efoId, size=None, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
data,metadataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_associated_drugs_by_disease_efo_id(
efoId='MONDO_0004975',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"disease": {
"id": "<string>",
"name": "<string>",
"drugAndClinicalCandidates": "<object>"
}
},
"metadata": {
"truncation_note": "<string>"
}
}
Full parameters and usage notes
25) Retrieve target-associated drugs and development phases¶
- Purpose: Retrieve target-associated drugs and development phases.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_associated_drugs_by_target_ensembl_id(*, ensemblId, size=None, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
data,metadataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_associated_drugs_by_target_ensembl_id(
ensemblId='ENSG00000121879',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"drugAndClinicalCandidates": "<object>"
}
},
"metadata": {
"truncation_note": "<string>"
}
}
Full parameters and usage notes
26) Retrieve HPO phenotypes associated with a disease¶
- Purpose: Retrieve HPO phenotypes associated with a disease.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_associated_phenotypes_by_disease_efo_id(*, efoId, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_associated_phenotypes_by_disease_efo_id(
efoId='MONDO_0005011',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
27) Retrieve disease-associated targets with pagination¶
- Purpose: Retrieve disease-associated targets with pagination.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_associated_targets_by_disease_efo_id(*, efoId, size=None, index=None, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
data,metadataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_associated_targets_by_disease_efo_id(
efoId='MONDO_0005011',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"disease": {
"id": "<string>",
"name": "<string>",
"associatedTargets": "<object>"
}
},
"metadata": {
"truncation_note": "<string>"
}
}
Full parameters and usage notes
28) Retrieve GWAS credible set and locus-to-gene details¶
- Purpose: Retrieve GWAS credible set and locus-to-gene details.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_credible_set_detail(*, studyLocusId, verbose=True) - Input: Provide
studyLocusId. - Output: Returns a mapping with
credibleSetand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_credible_set_detail(
studyLocusId='b758d8fb10924f5338cbad8d27c7dee8',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"credibleSet": {
"studyLocusId": "<string>",
"studyId": "<string>",
"region": "<string>",
"chromosome": "<string>",
"position": "<integer>",
"finemappingMethod": "<string>",
"pValueMantissa": "<number>",
"pValueExponent": "<integer>"
}
}
Full parameters and usage notes
29) Retrieve disease ontology parents and ancestors¶
- Purpose: Retrieve disease ontology parents and ancestors.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_disease_ancestors_parents_by_efo_id(*, efoId, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_disease_ancestors_parents_by_efo_id(
efoId='MONDO_0005011',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"disease": {
"id": "<string>",
"name": "<string>",
"ancestors": "<array>",
"parents": "<array>"
}
}
}
Full parameters and usage notes
30) Retrieve disease ontology children and descendants¶
- Purpose: Retrieve disease ontology children and descendants.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_disease_descendants_children_by_efo_id(*, efoId, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_disease_descendants_children_by_efo_id(
efoId='MONDO_0005011',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"disease": {
"id": "<string>",
"name": "<string>",
"descendants": "<array>",
"children": "<array>"
}
}
}
Full parameters and usage notes
31) Retrieve disease descriptions and cross-references¶
- Purpose: Retrieve disease descriptions and cross-references.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_disease_description_by_efo_id(*, efoId, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_disease_description_by_efo_id(
efoId='MONDO_0005011',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"disease": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"dbXRefs": "<array>",
"isTherapeuticArea": "<boolean>"
}
}
}
Full parameters and usage notes
32) Resolve disease names to ontology identifiers¶
- Purpose: Resolve disease names to ontology identifiers.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_disease_id_description_by_name(*, diseaseName=None, query=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_disease_id_description_by_name(
diseaseName='Diabetes Mellitus',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
33) Retrieve disease synonyms¶
- Purpose: Retrieve disease synonyms.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_disease_synonyms_by_efo_id(*, efoId, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_disease_synonyms_by_efo_id(
efoId='MONDO_0005011',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
34) Retrieve therapeutic areas associated with a disease¶
- Purpose: Retrieve therapeutic areas associated with a disease.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_disease_therapeutic_areas_by_efo_id(*, efoId, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_disease_therapeutic_areas_by_efo_id(
efoId='MONDO_0005011',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
35) Retrieve target-associated diseases and phenotypes with pagination¶
- Purpose: Retrieve target-associated diseases and phenotypes with pagination.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_diseases_phenotypes_by_target_ensembl(*, ensemblId, page=None, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
data,metadataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_diseases_phenotypes_by_target_ensembl(
ensemblId='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"associatedDiseases": "<object>"
}
},
"metadata": {
"truncation_note": "<string>"
}
}
Full parameters and usage notes
36) Retrieve significant drug adverse event records¶
- Purpose: Retrieve significant drug adverse event records.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_drug_adverse_events_by_chembl_id(*, chemblId, page=None, verbose=True) - Input: Provide
chemblId. - Output: Returns a mapping with
drug,metadata,error,error_detailsand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_drug_adverse_events_by_chembl_id(
chemblId='CHEMBL25',
page={'index': 0, 'size': 10},
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"drug": {
"id": "<string>",
"name": "<string>",
"adverseEvents": {
"count": "<integer>",
"returned": "<integer>",
"truncated": "<boolean>",
"criticalValue": "<number>",
"rows": "<array>"
}
},
"metadata": {
"truncation_note": "<string>"
},
"error": "<string>",
"error_details": {
"type": "<string>",
"message": "<string>",
"retriable": "<boolean>",
"next_steps": [
"<string>"
],
"details": {
"validation_error": "<string>",
"path": "<array>",
"schema": "<object>",
"parameter": "<string>",
"expected": "<string>"
}
}
}
Full parameters and usage notes
37) Resolve a generic drug name to a ChEMBL identifier¶
- Purpose: Resolve a generic drug name to a ChEMBL identifier.
- Method: Use
OpentargetToolDrugNameMatchto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_drug_chemb_id_by_generic_name(*, drugName=None, query=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_drug_chemb_id_by_generic_name(
drugName='Aspirin',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
38) Retrieve drug indications by ChEMBL identifier¶
- Purpose: Retrieve drug indications by ChEMBL identifier.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_drug_indications_by_chembl_id(*, chemblId, verbose=True) - Input: Provide
chemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_drug_indications_by_chembl_id(
chemblId='CHEMBL25',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
39) Retrieve drug mechanisms by ChEMBL identifier¶
- Purpose: Retrieve drug mechanisms by ChEMBL identifier.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_drug_mechanisms_of_action_by_chembl_id(*, chemblId, verbose=True) - Input: Provide
chemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_drug_mechanisms_of_action_by_chembl_id(
chemblId='CHEMBL25',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
40) Retrieve drug warnings by ChEMBL identifier¶
- Purpose: Retrieve drug warnings by ChEMBL identifier.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_drug_warnings_by_chembl_id(*, chemblId, verbose=True) - Input: Provide
chemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_drug_warnings_by_chembl_id(
chemblId='CHEMBL25',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
41) Filter target–disease evidence by data source¶
- Purpose: Filter target–disease evidence by data source.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_evidence_by_datasource(*, efoId=None, ensemblId=None, gene_symbol=None, disease_name=None, datasourceIds=None, size=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
data,metadataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_evidence_by_datasource(
efoId='MONDO_0005011',
ensemblId='ENSG00000141510',
datasourceIds=['europepmc'],
size=10,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"disease": {
"id": "<string>",
"name": "<string>",
"evidences": "<object>"
}
},
"metadata": {
"truncation_note": "<string>",
"datasource_rename_note": "<string>"
}
}
Full parameters and usage notes
42) Retrieve GWAS cohort and study metadata¶
- Purpose: Retrieve GWAS cohort and study metadata.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_gwas_study(*, studyId, verbose=True) - Input: Provide
studyId. - Output: Returns a mapping with
studyand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_gwas_study(
studyId='GCST000392',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"study": {
"id": "<string>",
"studyType": "<string>",
"traitFromSource": "<string>",
"publicationFirstAuthor": "<string>",
"publicationTitle": "<string>",
"publicationDate": "<string>",
"publicationJournal": "<string>",
"pubmedId": "<string>"
}
}
Full parameters and usage notes
43) Retrieve publications associated with a target¶
- Purpose: Retrieve publications associated with a target.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_publications_by_target_ensembl_id(*, entityId, additionalIds=None, startYear=None, startMonth=None, endYear=None, endMonth=None, verbose=True) - Input: Provide
entityId. - Output: Returns a mapping with
data,metadata,error,error_detailsand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_publications_by_target_ensembl_id(
entityId='ENSG00000141510',
startYear=2023,
startMonth=0,
endYear=2023,
endMonth=1,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"literatureOcurrences": "<object>"
}
},
"metadata": {
"truncation_note": "<string>"
},
"error": "<string>",
"error_details": {
"type": "<string>",
"message": "<string>",
"retriable": "<boolean>",
"next_steps": [
"<string>"
],
"details": {
"validation_error": "<string>",
"path": "<array>",
"schema": "<object>",
"parameter": "<string>",
"expected": "<string>"
}
}
}
Full parameters and usage notes
44) Retrieve biomedical entities similar to a disease¶
- Purpose: Retrieve biomedical entities similar to a disease.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_similar_entities_by_disease_efo_id(*, efoId, threshold, size, verbose=True) - Input: Provide
efoId,threshold,size. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_similar_entities_by_disease_efo_id(
efoId='MONDO_0005011',
threshold=1.0,
size=1,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
45) Retrieve credible sets from a GWAS study¶
- Purpose: Retrieve credible sets from a GWAS study.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_study_credible_sets(*, studyIds, size=None, index=None, verbose=True) - Input: Provide
studyIds. - Output: Returns a mapping with
credibleSetsand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_study_credible_sets(
studyIds=['GCST000392'],
size=10,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
46) Retrieve target functional classes¶
- Purpose: Retrieve target functional classes.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_target_classes_by_ensembl_id(*, ensemblId, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_target_classes_by_ensembl_id(
ensemblId='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"targetClass": "<array>"
}
}
}
Full parameters and usage notes
47) Retrieve GO annotations for a target¶
- Purpose: Retrieve GO annotations for a target.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_target_gene_ontology_by_ensembl_id(*, ensemblId, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_target_gene_ontology_by_ensembl_id(
ensemblId='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"geneOntology": "<array>"
}
}
}
Full parameters and usage notes
48) Retrieve target genomic coordinates and strand¶
- Purpose: Retrieve target genomic coordinates and strand.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_target_genomic_location_by_ensembl_id(*, ensemblId, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_target_genomic_location_by_ensembl_id(
ensemblId='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"genomicLocation": "<object>"
}
}
}
Full parameters and usage notes
49) Retrieve homologues of a target¶
- Purpose: Retrieve homologues of a target.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_target_homologues_by_ensembl_id(*, ensemblId, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_target_homologues_by_ensembl_id(
ensemblId='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"homologues": "<array>"
}
}
}
Full parameters and usage notes
50) Resolve target names to identifiers and descriptions¶
- Purpose: Resolve target names to identifiers and descriptions.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_target_id_description_by_name(*, targetName, verbose=True) - Input: Provide
targetName. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_target_id_description_by_name(
targetName='BRAF',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
51) Retrieve target interaction partners and evidence with pagination¶
- Purpose: Retrieve target interaction partners and evidence with pagination.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_target_interactions_by_ensembl_id(*, ensemblId, page=None, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
data,metadata,error,error_detailsand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_target_interactions_by_ensembl_id(
ensemblId='ENSG00000141510',
page={'index': 0, 'size': 10},
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"interactions": "<object>"
}
},
"metadata": {
"truncation_note": "<string>"
},
"error": "<string>",
"error_details": {
"type": "<string>",
"message": "<string>",
"retriable": "<boolean>",
"next_steps": [
"<string>"
],
"details": {
"validation_error": "<string>",
"path": "<array>",
"schema": "<object>",
"parameter": "<string>",
"expected": "<string>"
}
}
}
Full parameters and usage notes
52) Retrieve known target safety liabilities¶
- Purpose: Retrieve known target safety liabilities.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_target_safety_profile_by_ensembl_id(*, ensemblId, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_target_safety_profile_by_ensembl_id(
ensemblId='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"safetyLiabilities": "<array>"
}
}
}
Full parameters and usage notes
53) Retrieve target tractability across treatment modalities¶
- Purpose: Retrieve target tractability across treatment modalities.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_target_tractability_by_ensembl_id(*, ensemblId, verbose=True) - Input: Provide
ensemblId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_target_tractability_by_ensembl_id(
ensemblId='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"target": {
"id": "<string>",
"approvedSymbol": "<string>",
"tractability": "<array>"
}
}
}
Full parameters and usage notes
54) Retrieve GWAS credible sets containing a variant¶
- Purpose: Retrieve GWAS credible sets containing a variant.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_variant_credible_sets(*, variantId=None, size=None, variant_id=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
variantand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_variant_credible_sets(
variantId='10_112998590_C_T',
size=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"variant": {
"id": "<string>",
"rsIds": [
"<string>"
],
"credibleSets": {
"count": "<integer>",
"rows": "<array>"
}
}
}
Full parameters and usage notes
55) Retrieve variant coordinates, frequencies and consequences¶
- Purpose: Retrieve variant coordinates, frequencies and consequences.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_get_variant_info(*, variantId, verbose=True) - Input: Provide
variantId. - Output: Returns a mapping with
variantand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_get_variant_info(
variantId='10_112998590_C_T',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"variant": {
"id": "<string>",
"rsIds": [
"<string>"
],
"chromosome": "<string>",
"position": "<integer>",
"referenceAllele": "<string>",
"alternateAllele": "<string>",
"hgvsId": "<string>",
"variantDescription": "<string>"
}
}
Full parameters and usage notes
56) Map disease and phenotype identifiers across databases¶
- Purpose: Map disease and phenotype identifiers across databases.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_map_any_disease_id_to_all_other_ids(*, inputId, verbose=True) - Input: Provide
inputId. - Output: Returns a mapping with
dataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_map_any_disease_id_to_all_other_ids(
inputId='1',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
57) Search disease, target and drug entities together¶
- Purpose: Search disease, target and drug entities together.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_multi_entity_search_by_query_string(*, queryString, entityNames=None, page=None, verbose=True) - Input: Provide
queryString. - Output: Returns a mapping with
error,error_detailsand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_multi_entity_search_by_query_string(
queryString='gene:TP53',
entityNames=[],
page={'index': 0, 'size': 10},
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"error": "<string>",
"error_details": {
"type": "<string>",
"message": "<string>",
"retriable": "<boolean>",
"next_steps": [
"<string>"
],
"details": {
"validation_error": "<string>",
"path": "<array>",
"schema": "<object>",
"parameter": "<string>",
"expected": "<string>"
}
}
}
Full parameters and usage notes
58) Find GWAS studies by disease or trait¶
- Purpose: Find GWAS studies by disease or trait.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_search_gwas_studies_by_disease(*, diseaseIds=None, enableIndirect=None, disease_name=None, disease=None, trait=None, size=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
studiesand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_search_gwas_studies_by_disease(
diseaseIds=['MONDO_0005148'],
size=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
59) Retrieve IntOGen cancer driver association evidence¶
- Purpose: Retrieve IntOGen cancer driver association evidence.
- Method: Use
OpenTargetto query or submit the supplied input and parse the response. - API:
dnakit.databases.open_targets_target_disease_evidence(*, efoId=None, ensemblId=None, gene_symbol=None, disease_name=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
data,metadataand related fields. - Example code:
import dnakit
result = dnakit.databases.open_targets_target_disease_evidence(
efoId='MONDO_0005011',
ensemblId='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": {
"disease": {
"id": "<string>",
"name": "<string>",
"evidences": "<object>"
}
},
"metadata": {
"truncation_note": "<string>"
}
}
Full parameters and usage notes
60) Resolve compound names to PubChem CIDs¶
- Purpose: Resolve compound names to PubChem CIDs.
- Method: Use
PubChemto query or submit the supplied input and parse the response. - API:
dnakit.databases.pub_chem_get_cid_by_compound_name(*, name=None, compound_name=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
IdentifierListand related fields. - Example code:
import dnakit
result = dnakit.databases.pub_chem_get_cid_by_compound_name(
name='aspirin',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
61) Retrieve molecular properties by PubChem CID¶
- Purpose: Retrieve molecular properties by PubChem CID.
- Method: Use
PubChemto query or submit the supplied input and parse the response. - API:
dnakit.databases.pub_chem_get_compound_properties_by_cid(*, cid, properties=None, verbose=True) - Input: Provide
cid. - Output: Returns a mapping with
PropertyTableand related fields. - Example code:
import dnakit
result = dnakit.databases.pub_chem_get_compound_properties_by_cid(
cid=2244,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
62) Retrieve pathway-based disease–target association scores¶
- Purpose: Retrieve pathway-based disease–target association scores.
- Method: Use
DiseaseTargetScoreto query or submit the supplied input and parse the response. - API:
dnakit.databases.reactome_disease_target_score(*, efoId, pageSize=None, verbose=True) - Input: Provide
efoId. - Output: Returns a mapping with
disease_info,datasource,total_targets_with_scores,target_scoresand related fields. - Example code:
import dnakit
result = dnakit.databases.reactome_disease_target_score(
efoId='MONDO_0011996',
pageSize=100,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.