Description Usage Arguments Value Author(s) Examples
Split a GRanges
of reads (as example, the reads from
a chromosome) in a list
of smaller GRanges
sot that the
rjmcmc
function can be run on each segments.
1 | segmentation(reads, zeta = 147, delta, maxLength)
|
reads |
a |
zeta |
a positive |
delta |
a positive |
maxLength |
a positive |
a GRangesList
containing all the segments.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 | ## Load synthetic dataset of reads
data(syntheticNucleosomeReads)
## Use dataset of reads to create GRanges object
sampleGRanges <- GRanges(seqnames = syntheticNucleosomeReads$dataIP$chr,
ranges = IRanges(start = syntheticNucleosomeReads$dataIP$start,
end = syntheticNucleosomeReads$dataIP$end),
strand = syntheticNucleosomeReads$dataIP$strand)
# Segmentation of the reads
segmentation(reads = sampleGRanges, zeta = 147, delta = 50,
maxLength = 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.