Description Usage Arguments Value Author(s) Examples
View source: R/windowAnalysis.R
Supports parallel processing using mclapply in the 'parallel' package. To change the number of processors, set the option 'mc.cores'.
1 2 | windowAnalysis(reads, strand = "*", windowSize = stepSize,
stepSize = windowSize, chrom = NULL, limitPCRDups = FALSE, ...)
|
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 avaliable data. |
limitPCRDups |
Counts only one read mapping to each start site. NOTE: If set to TRUE, assumes that all reads are the same length (don't use for paired-end data). Default: FALSE. |
... |
Extra argument passed to mclapply |
Returns a list object, each element of which represents a chromosome.
Charles G. Danko and Minho Chae
1 2 3 4 | 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.