View source: R/SimulatePeaks.R
SimulatePeaks | R Documentation |
This function generates a GRanges object with randomly chosen ranges in the genome.
SimulatePeaks(nSites, peak.widths, chromosomeSizes)
nSites |
Integer scalar giving the number of desired output ranges. |
peak.widths |
A numeric vector of the length given in |
chromosomeSizes |
A table with two columns: chromosome name, length of the chromosome. This defines the search space for choosing random regions. |
This function can be used to shuffle peak regions of your ChIP data to random locations in the mouse genome. These random peaks can be used as control regions for further analysis, for example, when testing the overlap of your peaks with genomic annotations (genes, repeats,...).
A GRanges object of randomly chosen genomic ranges of length nSites
with widths peak.widths
.
SimulatePeaks(1000,rep(100,1000),chromosomeSizes=
system.file("extdata", "chrNameLength_mm10_chr11.txt", package = "MiniChip"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.