Computes the cell composition differences between groups while adjusting for the provided covariates. The differences are tested for using an ANOVA through the aov function.

CCstats(
  CC = NULL,
  bs.filtered.bsseq.cc = bs.filtered.bsseq.cc,
  testCovariate = testCovariate,
  adjustCovariate = NULL,
  matchCovariate = NULL
)

Arguments

CC

A matrix from DMRichR::Houseman()

bs.filtered.bsseq.cc

Smoothed bsseq object with design matrix in pData

testCovariate

The factor to test for differences between groups

adjustCovariate

The covariate(s) to adjust for between groups

matchCovariate

Another covariate to adjust for between groups (for dmrseq compatibility)

Value

A list of tibbles with the statsitics and the values used for the tests

Details

CCstats

References

https://cran.r-project.org/web/packages/broom/vignettes/broom_and_dplyr.html