otargen
is an open-source R package that provides a
streamlined and tidy interface for retrieving and analyzing drug target
data from Open Targets
Platform. It enables researchers to access gene-disease
associations, target safety, tractability, evidence types, and more β
all within the R environment.
π¨ Important Notice: Following Open
Targetsβ announcement, Open Targets Genetics has been officially
merged into the Open Targets Platform API. Consequently,
otargen 2.0.0
represents a complete
overhaul of the packageβs functionality to support this unified
API endpoint and schema.
β οΈ Deprecation process:
The redanndant query functions from version 1.1.5
are
deprecated in 2.0.0
. However, we will keep
the queries and plotting functions that still provide useful data as
long as supported in the backend API.
π We highly recommend upgrading to 2.0.0
by installing it from CRAN or GitHub.
From CRAN:
install.packages("otargen")
From GitHub (development version):
if (!require("devtools")) install.packages("devtools")
::install_github("amirfeizi/otargen") devtools
Here are a few examples of the new query functions in
otargen 2.0.0
:
# Retrieve GWAS credible set data
<- gwasCredibleSetsQuery(ensemblId = "ENSG00000105397", efoId = "EFO_0000685", size = 500)
result
# Retrieve ChEMBL data for a specified gene and disease.
<- chemblQuery(ensemblId = "ENSG00000080815", efoId = "MONDO_0004975", size = 10)
result
# Retrieve Pharmacogenomics data for a specified drug.
<- pharmacogenomicsChemblQuery(chemblId = "CHEMBL1016")
result
# Retrieve ClinVar data for a specified gene and disease.
<- clinVarQuery(ensemblId = "ENSG00000080815", efoId = "MONDO_0004975", size = 10)
result
# Retrieve Safety Liabilities data for a specified gene
<- safetyQuery(ensgId = "ENSG00000141510")
result
# Retrieve UniProt Variants data for a specified variant.
<- uniProtVariantsQuery(variantId = "4_1804392_G_A")
result
(Refer to ?gene_disease_associations_query
and other
help files for full parameter lists and example outputs.)
otargen
Please cite otargen
if you use it in your
research:
π Feizi &
Ray, Bioinformatics
otargenpy
For Python users, a fully compatible package is available:
pip install otargenpy
GitHub: otargenpy on GitHub
Visit the GitHub repo: https://github.com/amirfeizi/otargen
We welcome contributions, issue reports, and feedback!