You can install from github using:
remotes::install_github(
"bhklab/AnnotationGx", build_manual=TRUE, build_vignettes=TRUE
)First load the package:
library(AnnotationGx)
help(package="AnnotationGx")Annotate cell line using cellosaurus:
name<-"A549"
mapCell2Accession(name)Annotate drugs using PubChem:
drugs<- c(
"Aspirin", "Erlotinib", "Acadesine", "Camptothecin", "Vincaleukoblastine", "Cisplatin"
)
(compound_2_cids<- mapCompound2CID(drugs, first=TRUE))
mapCID2Properties(
ids=compound_2_cids$cids,
properties= c("Title", "MolecularFormula", "InChIKey", "MolecularWeight")
)
annotatePubchemCompound(
cids=compound_2_cids$cids,, heading="CAS"
)