Run scMalignantFinder cancer cell state scoring
Source:R/RunscMalignantFinder.R
RunscMalignantStates.RdScore cancer cell state gene sets with scMalignantFinder AUCell utilities
and append the resulting activity scores to Seurat metadata.
Arguments
- srt
A Seurat object.
- adata
Optional Python AnnData object.
- h5ad
Optional path to an
.h5adfile.- assay
Assay used when
srtis supplied. Default is"RNA".- layer
Layer used when
srtis supplied. Default is"counts".- cells
Optional cells to run. If supplied with
srt, results are appended to these cells and other cells receiveNA.- gene_sets
Path to a
.gmtfile containing cancer cell state gene sets, such asMalignant_MPs.Gavish_2023.gmtfrom the scMalignantFinder resources.- norm_type
Passed to
scMalignantFinder. UseTRUEfor raw counts that should be library-size normalized; useFALSEfor already normalized input. IfNULL, defaults toTRUEonly for Seurat counts input.- prefix
Optional prefix for output metadata columns. Default preserves the original
scMalignantFindercolumn names.- return_seurat
Whether to return a Seurat object when
srtis supplied. IfFALSE, returns a data frame of predictions.- verbose
Whether to print the message. Default is
TRUE.- backend
State-scoring backend.
"cpp"uses a compiled sparse AUCell implementation for Seurat input."python"retains the official scMalignantFinder path and is used for AnnData or h5ad input.