View source: R/HMMtBroadPeak.R
HMMtBroadPeak | R Documentation |
Call very broad peaks for data such as LAD domains, NAD domains. Reads will be count by each bins. Only bins with at least given reads (defined by background parameter) for all samples (pool all reads for each bin) will be subsequently normalized. These bins will be first normalized to CPM (count per million) reads and then do log2 transform for the ratio over control with a pseudocount. The peaks were defined by running a hidden markov model over the normalized values (using the R-package HMMt).
HMMtBroadPeak(
treatment,
control,
binSize = 5000,
background = 10,
pseudocount = 1,
gapwidth = binSize,
...
)
treatment , control |
Bam file of treatments and controls. Make sure the index file keep same prefix name with bam file. |
binSize |
The size of bins for count |
background |
Only bins with at least background reads (pool all reads) will be subsequently normalized. |
pseudocount |
default 1. |
gapwidth |
The Ranges of peaks separated by a gap less than gapwith positions will be merged. |
... |
parameters passed to BaumWelchT except m (fixed to 2). |
a list with elements counts and peaks. Bothe counts and peaks are GRanges objects.
treatment <- system.file("extdata", "LB1.KD.chr1_1_5000000.bam",
package = "HMMtBroadPeak",
mustWork = TRUE)
## call peak without control
res <- HMMtBroadPeak(treatment)
## call peak with control
control <- system.file("extdata", "LB1.WT.chr1_1_5000000.bam",
package = "HMMtBroadPeak",
mustWork = TRUE)
called <- HMMtBroadPeak(treatment, control)
called$peaks
plotPeaks(called, seqname="chr1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.