View source: R/drugTargetAnnotations_Fct.R
| runDrugTarget_Annot_Bioassay | R Documentation |
Meta-function to obtain in one step both drug-target annotation and bioassay data.
runDrugTarget_Annot_Bioassay(res_list, up_col_id="ID", ens_gene_id, cmpid_file=file.path(config$resultsPath,"cmp_ids.rds") ,config=genConfig(), ...)
res_list |
Object obtained from |
up_col_id |
Column name in |
ens_gene_id |
Named character vector with ENSEMBL gene IDs in name slot and gene symbols or other ID type in value slot |
cmpid_file |
Path to CMP ID mapping file, often named |
config |
General configuration. See |
... |
Slot to pass on additional arguments. |
List with two components each containing a data.frame. The first one (Annotation)
contains drug-target annotation data, and the second one (Bioassay) contains drug-target
bioassay data.
Thomas Girke
References to be added...
See also: drugTargetAnnot and drugTargetBioactivity
config = genConfig(chemblDbPath=
system.file("extdata", "chembl_sample.db", package="drugTargetInteractions"),
resultsPath =
system.file("extdata", "results", package="drugTargetInteractions"))
## (1) Translate gene symbols to ENSEMBL gene IDs
ensembl_gene_id <- c("ENSG00000001626", "ENSG00000168748")
idMap <- getSymEnsUp(EnsDb="EnsDb.Hsapiens.v86", ids=ensembl_gene_id, idtype="ENSEMBL_GENE_ID")
ens_gene_id <- idMap$ens_gene_id
## (2a) Retrieve UniProt IDs with both IDMs and SSNN paralogs
queryBy <- list(molType="gene", idType="ensembl_gene_id", ids=names(ens_gene_id))
#this function is slow and requires a network connection
res_list <- getParalogs(queryBy)
## (3) Obtain Drug-Target Annotation and Bioassay Data
drug_target_list <- runDrugTarget_Annot_Bioassay(res_list=res_list,
up_col_id="ID_up_sp", ens_gene_id,config=config )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.