Learn R Programming

diffloop (version 1.0.2)

getHumanGenes: Get protein coding gene regions

Description

getHumanGenes returns a GRanges object of all protein coding genes genome-wide or within specified chromosomes

Usage

getHumanGenes(chr, cache = TRUE)

## S3 method for class 'missing': getHumanGenes(chr, cache = TRUE)

## S3 method for class 'character': getHumanGenes(chr, cache = TRUE)

Arguments

chr
A vector of chromosomes
cache
logic variable (default = TRUE) to use genes from July.2015 freeze

Value

  • A GRanges object

Details

This function returns a GRanges object with the coordinates and gene IDs of all protein coding genes either genome-wide (by default) orspecified within a particular chromosome.

Examples

Run this code
# Grab all protein coding gene locations genome-wide
pc.genes <- getHumanGenes()
# Grab all protein coding gene loctions on chromosome 1
chr1 <- getHumanGenes(c('1'))

Run the code above in your browser using DataLab