subsetMOCHAObjectsubsetMOCHAObject subsets a tileResults-type object (from
callOpenTiles), or a SummarizedExperiment-type object (from
getSampleTileMatrix), either by cell type or sample metadata.
subsetMOCHAObject(
Object,
subsetBy,
groupList,
removeNA = TRUE,
subsetPeaks = TRUE,
verbose = FALSE
)Object the input Object, filtered down to either the cell type or samples desired.
A MultiAssayExperiment or RangedSummarizedExperiment,
The variable to subset by. Can either be 'celltype', or a column from the sample metadata (see `colData(Object)`).
the list of cell type names or sample-associated data that should be used to subset the Object
If TRUE, removes groups in groupList that are NA. If FALSE, keep groups that are NA.
If `subsetBy` = 'celltype', subset the tile set to tiles only called in those cell types. Default is TRUE.
Set TRUE to display additional messages. Default is FALSE.