View source: R/content-plots.R
calcGCContent | R Documentation |
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.
calcGCContent(query, ref)
query |
A GenomicRanges or GenomicRangesList object with query regions. |
ref |
Reference genome BSgenome object. |
A numeric vector of list of vectors with the GC percentage of the query regions.
## Not run:
bsg = loadBSgenome('hg19')
gcvec = calcGCContent(vistaEnhancers, bsg)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.