geneTrack | R Documentation |
Generate a track object from TxDb by given gene ids
geneTrack(ids, txdb, symbols, type = c("gene", "transcript"), asList = TRUE)
ids |
Gene IDs. A vector of character. It should be keys in txdb. |
txdb |
An object of |
symbols |
symbol of genes. |
type |
Output type of track, "gene" or "transcript". |
asList |
Output a list of tracks or not. Default TRUE. |
An object of track
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
library(org.Hs.eg.db)
ids <- c("3312", "390259", "341056", "79827")
symbols <- mget(ids, org.Hs.egSYMBOL)
geneTrack(ids, TxDb.Hsapiens.UCSC.hg19.knownGene, symbols)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.