getb0.biseq: compute b0, projection matrix, given methylation counts

Description Usage Arguments Value Examples

View source: R/withDoc.R

Description

compute b0, projection matrix, given methylation counts

Usage

1
getb0.biseq(methmat, design, sigg = NULL)

Arguments

methmat

a matrix of counts with rows corresponding to methylation sites and columns. Columns are: chr start end strand coverage1 numCs1 numTs1 coverage2 numCs2 numTs2 ....

design

design matrix, output of model.matrix

sigg

predetermined signature CpG sites. Format sites as chromosome name, chromosome location, strand: chrN_position(+/-). For example, chr1_906825-

Value

b0 projection matrix. Coefficients are beta.

Examples

1
2
3
4
5
## Not run: 
data("data_celltypes_rrbs") 
b0.rrbs = getb0.biseq(methmat, design.rrbs, sigg=NULL)

## End(Not run)

rosedu1/deconvSeq documentation built on Aug. 19, 2020, 7:10 p.m.