将探测ID转换为列表列表中的entrez ID

时间:2013-08-06 09:54:46

标签: r

探测id到entrez id的转换非常简单

   i1<-c("246653_at", "246897_at", "251347_at", "252988_at", "255528_at", "256535_at", "257203_at", "257582_at", "258807_at", "261509_at", "265050_at", "265672_at")

 select(ath1121501.db, i1, "ENTREZID", "PROBEID")

     PROBEID ENTREZID
 1  246653_at   833474
 2  246897_at   832631
 3  251347_at   825272
 4  252988_at   829998
 5  255528_at   827380
 6  256535_at   840223
 7  257203_at   821955
 8  257582_at   841494
 9  258807_at   819558
 10 261509_at   843504
 11 265050_at   841636
 12 265672_at   817757

但Iam不确定如何为群集产生的长列表列表执行此操作,并将其另存为ENTREZ ID列表而不是探测ID:

例如:

[[1]]
247964_at   248684_at   249126_at   249214_at   250223_at   253620_at   254907_at   259897_at   261256_at 267126_s_at 
28          40          44          45          54          95          108         152         171       229 

[[2]]
248230_at 250869_at 259765_at 265948_at 266221_at 
33        64        151       216       221 

[[3]]
245385_at   247282_at   248967_at   250180_at   250881_at   251073_at  53874_at     256093_at   257054_at   260007_at 
5           22          42          52          65          67         101           117         125         155 
261868_s_at   263136_at   267497_at 
181           195         232 

应该是

[[1]]
"835761","834904","834356","834281","831256","829175","826721","843479","837084","816891","816892"

和其他列表列表类似。

0 个答案:

没有答案