The goal of mixHMM is to detect differential peaks from ChIP-seq data of multiple conditions with replicates (under development).
You can install the released version of mixHMM from this repository with:
devtools::install_github("plbaldoni/mixHMM")
# Loading example dataset
data(H3K36me3)
# ChIP read counts, as well as the model offset, group indicator, and number of mixtures.
ChIP = assay(H3K36me3)
offset = ZIMHMM::createOffset(ChIP,method = 'loess',span = 1)
group = rep(1:3,each=3)
B = 2^(length(unique(group)))-2
# Calling peaks
peakcall = mixHMMConstr(ChIP = ChIP,offset = offset,group = group,B = B,control = controlPeaks(rep(1e-6,4)))
# Plotting peak calls
plotPeaks(peakcall,ranges = c(which.min(abs(start(rowRanges(H3K36me3))-17800000)),which.min(abs(end(rowRanges(H3K36me3))-17910000))),
ChIP = ChIP,group = group,offset = offset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.