geneTrack: track from TxDb

View source: R/geneTrack.R

geneTrackR Documentation

track from TxDb

Description

Generate a track object from TxDb by given gene ids

Usage

geneTrack(ids, txdb, symbols, type = c("gene", "transcript"), asList = TRUE)

Arguments

ids

Gene IDs. A vector of character. It should be keys in txdb.

txdb

An object of TxDb.

symbols

symbol of genes.

type

Output type of track, "gene" or "transcript".

asList

Output a list of tracks or not. Default TRUE.

Value

An object of track

Examples

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)


jianhong/trackViewer documentation built on Nov. 10, 2024, 10:33 a.m.