Frage

I'm new to Bioconductor and trying to find the right package to be able to do what I want to..which is give a SwissProt ID and give me the Gene Symbol or vice versa.

There's a lot of packages and I don't know which one I want, anyone have a quick answer?

War es hilfreich?

Lösung

One approach you can take is to use the organism packages this:

library(org.Hs.eg.db)

Suppose my gene symbols are like the ones in keys here:

keys <- c("A1BG","A2M","A2MP1","NAT1","NAT2","AACP")

Then you can just use the select() method (this works for R-2.14 and higher).

select(org.Hs.eg.db, cols=c("SYMBOL", "UNIPROT"), keys= keys, keytype="SYMBOL")

Hope this helps!

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top