An internal function that filters tumor cells from a Seurat object based on metadata column values. This function identifies tumor cells using pattern matching on cell type labels and creates a subset containing only tumor cells. It also records dimension information before and after filtering for traceability.
Value
A Seurat object containing only tumor cells, with the following
attributes stored in @misc:
self_dim: Dimensions of the filtered objectraw_dim: Original dimensions before filteringcolumn2only_tumor: The column name used for filtering
If column2only_tumor is NULL or the specified column is not found,
returns the original object unchanged.
See also
Other single_cell_preprocess:
FindRobustElbow(),
Pattern2Colname(),
QCPatternDetect(),
RegisterSeuratMethod(),
SCAnnotate(),
SCIntegrate(),
SCPreProcess(),
SCPreProcessStrategy,
compatible_with_3.0.2()