Description Usage Arguments Details Value Author(s) References Examples
View source: R/mixZIHMMConstr.R
This function fits a three-state HMM with mixture model of Zero-Inflated Negative Binomials (ZINB) and Negative Binomials (NB) for differential peaks across conditions with replicates. The emission distribution of the HMM component associated with background counts follows a ZINB distribution. The emission distribution of the HMM component associated with enrichment counts in consensus follows a NB distribution. Only five parameters are associated with the emission distributions of this three-state HMM: zero-inflation probability, mean and dispersion of background counts, and mean and dispersion of enrichment counts.
1 | mixZIHMMConstr(ChIP, Control = NULL, offset, group, control)
|
ChIP |
M*N matrix of ChIP read counts, where M is the number of windows in the analyzed genome and N is the number of conditions*replicates. |
Control |
M*N matrix of log-transformed Control read counts (not yet implemented) |
offset |
M*N matrix of offsets. If no offset is used, use offset = matrix(0,nrow=M,ncol=N) |
group |
vector of length N with condition (numeric) labels (e.g. c(1,1,2,2,3,3) for three conditions and two replicates each) |
control |
list of control arguments from controlPeaks() |
For ChIP, Control, and offset matrices, columns should be ordered by condition and replicates, respectively. For instance, the first column should have data from the first replicate of the first condition, the second column should have data from the second replicate of the first condition, and so on. The same applies for the elements of group.
A list with components
Pedro L. Baldoni, pedrobaldoni@gmail.com
https://github.com/plbaldoni/mixHMM
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.