View source: R/SimulationFunctions.R
ConcatMat | R Documentation |
Wrangling function: Takes different cell types from a histone mark X SimulateChICseq and concatenates them together
ConcatMat(ctype.sim.counts.lst, ctypes, jmark)
ctype.sim.counts.lst |
Output from SimulateChICseq which contains different cell types across different histone mark conditions. |
ctypes |
Vector of name of cell types to be concatenated together. |
jmark |
Name of histone mark from which cell types will be extracted. |
mat.mark1 Matrix of counts, rows are bins, columns are cells.
ctype.sim.counts.lst <- lapply(ctypes, function(jctype){
SimulateChICseq(ctype.name = jctype,
jseed = ctype.params.lst[[jctype]]$jseed,
shuffle.rows.seed = ctype.params.lst[[jctype]]$shuffle.rows.seed,
frac.mutual.excl = ctype.params.lst[[jctype]]$frac.mutual.excl)
})
mat.mark1 <- ConcatMat(ctype.sim.counts.lst, ctypes, jmark = "mark1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.