ConcatMat: Wrangling function: Takes different cell types from a histone...

View source: R/SimulationFunctions.R

ConcatMatR Documentation

Wrangling function: Takes different cell types from a histone mark X SimulateChICseq and concatenates them together

Description

Wrangling function: Takes different cell types from a histone mark X SimulateChICseq and concatenates them together

Usage

ConcatMat(ctype.sim.counts.lst, ctypes, jmark)

Arguments

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.

Value

mat.mark1 Matrix of counts, rows are bins, columns are cells.

Examples

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")

jakeyeung/scChIX documentation built on May 7, 2023, 9:14 a.m.