list_genes_in_region: finds genes within one chromosome interval

View source: R/gene_lookups.R

list_genes_in_regionR Documentation

finds genes within one chromosome interval

Description

finds genes within one chromosome interval

Usage

list_genes_in_region(cnr, at, show.columns = NULL, identifier = "hgnc.symbol")

Arguments

cnr

a cnr bundle

at

character, coordinate string

show.columns

subset of columns from gene.index to output. default is NULL, which shows all columns

identifier

name of column with gene identifiers

Value

Returns the subset of the gene.index within the coordinates specified. By default all columns are returned, with the option to select a subset using show.columns.

Examples


data(cnr)

list_genes_in_region(cnr, at = "12:58,000,000-59,000,000")

list_genes_in_region(cnr, at = "12:58,000,000-59,000,000",
           show.columns = c("hgnc.symbol", "gene_biotype"))



SingerLab/gac documentation built on March 23, 2024, 5:15 a.m.