diff_dss_fit {methylSig} | R Documentation |
This function is a wrapper for DSS::DMLfit.multiFactor
.
diff_dss_fit(bs, design, formula)
bs |
a |
design |
a |
formula |
a formula for the linear model. It should refer to column names from |
A list
object with:
a GRanges
object with loci fit.
the data.frame
input as the experimental design.
the formula
representing the model. Can be character
or formula
.
the design matrix
used in regression based on the design
and formula
. This should be consulted to determine the appropriate contrast to use in dss_fit_test()
.
a list
with model fitting results. It has components beta
, the estimated coefficients, and var.beta
the estimated variance/covariance matrix for beta
.
data(BS.cancer.ex, package = 'bsseqData') bs = filter_loci_by_group_coverage( bs = BS.cancer.ex, group_column = 'Type', c('cancer' = 2, 'normal' = 2)) small_test = bs[1:50] diff_fit = diff_dss_fit( bs = small_test, design = bsseq::pData(bs), formula = '~ Type')