calcGCContent: Calculate GC content over genomic ranges

View source: R/content-plots.R

calcGCContentR Documentation

Calculate GC content over genomic ranges

Description

Given a reference genome as a BSgenome object and some ranges on that reference, this function will return a vector of the same length as the granges object, with percent of Cs and Gs.

Usage

calcGCContent(query, ref)

Arguments

query

A GenomicRanges or GenomicRangesList object with query regions.

ref

Reference genome BSgenome object.

Value

A numeric vector of list of vectors with the GC percentage of the query regions.

Examples

## Not run: 
bsg = loadBSgenome('hg19')
gcvec = calcGCContent(vistaEnhancers, bsg)

## End(Not run)

databio/GenomicDistributions documentation built on April 30, 2024, 4:34 a.m.