inst/examples/examples_ScpModel-DataCorrection.R

data("leduc_minimal")
scpModelFormula(leduc_minimal)

reconstructed <- scpKeepEffect(leduc_minimal, effects = "SampleType")
batchCorreced <- scpRemoveBatchEffect(
    leduc_minimal, effects = c("Channel", "Set", "MedianIntensity")
)
## The two approaches are identical
identical(reconstructed, batchCorreced)
UCLouvain-CBIO/scp documentation built on Oct. 12, 2024, 2:37 a.m.