View source: R/content-plots.R
calcDinuclFreq | R Documentation |
Given a reference genome (BSgenome object) and ranges on the reference, this function returns a data.table with counts of dinucleotides within the GRanges object.
calcDinuclFreq(query, ref, rawCounts = FALSE)
query |
A GRanges object with query sets |
ref |
Reference genome BSgenome object |
rawCounts |
a logical indicating whether the raw numbers should be displayed, rather than percentages (optional). |
A data.table with counts of dinucleotides across the GRanges object
## Not run:
bsg = loadBSgenome('hg19')
DNF = calcDinuclFreq(vistaEnhancers, bsg)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.