sartorlab / methylSig

R package for DNA methylation analysis
17 stars 5 forks source link

MethylSig DSS test function #36

Closed rcavalcante closed 4 years ago

rcavalcante commented 4 years ago

Function call

diff_dss_fit(bs, design, formula) diff_dss_test(bs, diff_fit, contrast, methylation_group_column = NA, methylation_groups = NA)

Description

Split tests into fit and test stages to work more like edgeR (for example) and allow users to examine the design matrix prior to making the contrast matrix.

Arguments

Values

A GRanges object with the following columns always:

And optionally the following columns, depending on presence of methylation_group_column and methylation_groups are given:

Tests

Test for correct return type.

rcavalcante commented 4 years ago

It would be nice, for continuous covariate tests, to return the methylation rates for the samples that have the top 25% and bottom 25% values for that covariate.