2025-04-16
annotate
annotate::lookUp()
[1] "1552487_a_at" "1552626_a_at" "1552701_a_at" "1552703_s_at" "1552730_at"
[6] "1552760_at"
ID = featureNames(eset)[sig]
Name = as.character(lookUp(ID,"hgu133plus2.db", "GENENAME"))
entrezid = as.character(lookUp(ID, "hgu133plus2.db", "ENTREZID"))
ID[ID == "NA"] = NA
Name[Name == "NA"] = NA
entrezid = ifelse(entrezid == "NA",NA,
paste0("<a href='http://www.ncbi.nlm.nih.gov/gene/?term=",
entrezid,"'>",entrezid,"</a>"))
ReportingTools::HTMLReport()
fijamos el nombre del fichero en que guardamos la información así como el directorio en donde estará dicho fichero.ReportingTools::publish()
y ReportingTools::finish()
.AnnotationDbi::select
a = AnnotationDbi::select(hgu133plus2.db,keys=ID,
columns=c("ENTREZID","ENSEMBL"),
keytype="PROBEID")
b = BiocGenerics::match(ID,a[,"PROBEID"])
df0 = a[b,]
names(df0)
[1] "PROBEID" "ENTREZID" "ENSEMBL"
Y lo demás igual que en la opción previa.
data.frame
previo.function (id)
ifelse(id == "NA", NA, paste("<a href='http://www.ncbi.nlm.nih.gov/gene/?term=",
id, "'>", id, "</a>", sep = ""))
<bytecode: 0x55a09a5274f8>
<environment: namespace:tami>
function (id, site = "http://www.ensembl.org")
paste("<a href='", site, "/id/", id, "'>", id, "</a>", sep = "")
<bytecode: 0x55a09a7704f8>
<environment: namespace:tami>
function (id)
ifelse(id == "NA", NA, paste("<a href='http://amigo.geneontology.org/amigo/term/",
id, "'>", id, "</a>", sep = ""))
<bytecode: 0x55a09aad6f68>
<environment: namespace:tami>
function (id)
ifelse(id == "NA", NA, paste("<a href='http://www.genome.jp/dbget-bin/www_bget?",
id, "'>", id, "</a>", sep = ""))
<bytecode: 0x55a09ad3f2d0>
<environment: namespace:tami>