Description Usage Arguments Value Author(s) Examples
windowAnalysis Returns a vector of integers representing the counts of reads in a moving window.
1 2 | windowAnalysis(reads, strand = "*", windowSize = stepSize,
stepSize = windowSize, chrom = NULL)
|
reads |
GenomicRanges object representing the position of reads mapping in the genome. |
strand |
Takes values of "+", "-", or "*". "*" denotes collapsing reads on both strands. Default: "*". |
windowSize |
Size of the moving window. Either windowSize or stepSize must be specified. |
stepSize |
The number of bp moved with each step. |
chrom |
Chromosome for which to return data. Default: returns all available data. |
Returns a list object, each element of which represents a chromosome.
Charles G. Danko and Minho Chae
1 2 3 4 5 | library(GenomicAlignments)
S0mR1 <- as(readGAlignments(system.file("extdata", "S0mR1.bam",
package="groHMM")), "GRanges")
## Not run:
# Fp <- windowAnalysis(S0mR1, strand="+", windowSize=50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.