Keep the original SingleCellExperiment object and only replace the colData() and add experiment_info to the metadata(). This ensures that other slots, such as altExps() or prior metadata() are retained.
Other minor additions:
Added a check in test-prepSCE for the presence of metadata()$experiment_info
Documentation of prepSCE: added link to SingleCellExperiment class documentation and now uses scuttle::mockSCE() in the example
The example using scuttle::mockSCE() shows the effect: the input sce contains an altExp(), which would have been removed before by prepSCE(). Now it remains:
Keep the original SingleCellExperiment object and only replace the
colData()
and addexperiment_info
to themetadata()
. This ensures that other slots, such asaltExps()
or priormetadata()
are retained.Other minor additions:
test-prepSCE
for the presence ofmetadata()$experiment_info
prepSCE
: added link to SingleCellExperiment class documentation and now usesscuttle::mockSCE()
in the exampleThe example using
scuttle::mockSCE()
shows the effect: the inputsce
contains analtExp()
, which would have been removed before byprepSCE()
. Now it remains: