geneTrack {trackViewer} | R Documentation

## track from TxDb

### Description

Generate a track object from TxDb by given gene ids

### Usage

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

### Arguments

`ids` | Gene IDs. A vector of character. It should be keys in txdb.
`txdb` | An object of `TxDb`
`type` | Output type of track, "gene" or "transcript".

### Value

An object of track

### Examples

    library(TxDb.Hsapiens.UCSC.hg19.knownGene)
    geneTrack(c("3312", "3313"), TxDb.Hsapiens.UCSC.hg19.knownGene)

[Package trackViewer version 1.22.1 Index]