View source: R/drugTargetAnnotations_Fct.R
drugTargetAnnot | R Documentation |
Function to query known drug-target annotations.
drugTargetAnnot(queryBy=list(molType=NULL, idType=NULL, ids=NULL), cmpid_file=file.path(config$resultsPath,"cmp_ids.rds"), config=genConfig())
queryBy |
A list defining the query, as described in |
cmpid_file |
Path to a compound ID mapping file, generated by |
config |
General configuration. See |
Returns the query results as a data frame.
Thomas Girke
queryBy
cmpIdMapping
# Tthese are just sample files included in the package. # You should use your own data files. config = genConfig(chemblDbPath= system.file("extdata", "chembl_sample.db", package="drugTargetInteractions"), resultsPath = system.file("extdata", "results", package="drugTargetInteractions")) queryBy <- list(molType="cmp", idType="chembl_id", ids=c("CHEMBL1233058", "CHEMBL1200916", "CHEMBL437765")) qresult <- drugTargetAnnot(queryBy, config=config)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.