geneTrack {trackViewer} | R 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)

[Package trackViewer version 1.26.2 Index]