Skip to contents

Conveniently look up the region of a gene by gene symbol. The value returned by this function can be used as the region argument for trackplot functions such as trackplot_bulk() or trackplot_gene()

Usage

gene_region(
  genes,
  gene_symbol,
  extend_bp = 10000,
  gene_mapping = human_gene_mapping
)

Arguments

genes

GRanges, list, or data.frame of transcript features to plot. Required attributes are:

  • chr, start, end: genomic position

  • gene_name: Symbol or gene ID

gene_symbol

Name of gene symbol or ID

extend_bp

Bases to extend region upstream and downstream of gene

gene_mapping

Named vector where names are gene symbols or IDs and values are canonical gene symbols

Value

list of chr, start, end positions for use with , etc.