createGeneAnnotation: Create gene annotation object

Description Usage Arguments Value Examples

View source: R/createGeneAnnotation.R

Description

Create gene annotation object

Usage

1
2
3
4
5
createGeneAnnotation(
  window,
  TxDb = TxDb.Hsapiens.UCSC.hg19.knownGene::TxDb.Hsapiens.UCSC.hg19.knownGene,
  longest = TRUE
)

Arguments

window

GRanges object with coordinates to use for selecting the genes to plot.

TxDb

TxDb object to use for drawing the genomic annotation.

longest

Logical indicating whether to plot only the longest transcripts for each gene in the gene annotation plot.

Value

GRanges object with the gene annotation in the window.

Examples

1
2
3
4
5
6
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
window <- GRanges("chr16:11298262-11400036")
gene_anno <- createGeneAnnotation(
    window = window,
    TxDb = TxDb.Hsapiens.UCSC.hg19.knownGene
)

UMI4Cats documentation built on Dec. 31, 2020, 2:01 a.m.