
Check that cached artefacts still match the object's state
check_sc_state.RdReturns TRUE when every requested artefact is fresh, otherwise a message
describing the first problem. An artefact that is absent, or that predates
provenance stamping, passes: unknown provenance is not the same as known
bad.
Named in snake case rather than the checkXxx camel case of the other
checkmate extensions in this package, because it validates object state
rather than a params_*() list and sits alongside get_sc_cache_status().
Arguments
- x
SingleCells,SingleCellsSubset,MetaCellsorSingleCellsMultiModalclass.- artefacts
Character vector. Artefacts to check, either an artefact kind (
"pca","knn","snn","magic") or an embedding name ("umap"). May be modality qualified ("adt:pca").- modality
String. Modality to resolve unqualified names against. One of
c("rna", "adt", "atac", "wnn").