Compute ESTIMATE stromal, immune, combined ESTIMATE, and tumor-purity scores
from bulk or pseudo-bulk expression data. The implementation uses the
original stromal and immune ESTIMATE signatures with an in-package scoring
routine, so it does not require the external estimate package.
Usage
RunESTIMATE(
object = NULL,
count_matrix = NULL,
assay = NULL,
layer = "data",
bulk_assay = "counts",
sample.by = NULL,
group.by = NULL,
aggregate_fun = c("mean", "sum"),
platform = c("rnaseq", "affymetrix", "agilent", "illumina"),
filter_common_genes = TRUE,
min_sig_genes = 10,
purity = TRUE,
verbose = TRUE
)Arguments
- object
Optional expression matrix,
SummarizedExperiment, orSeuratobject.- count_matrix
Optional expression matrix with genes in rows and samples in columns. Used when
objectis not provided as a matrix.- assay
Assay used for
Seuratinput.- layer
Assay layer used for
Seuratinput.- bulk_assay
Assay name used for
SummarizedExperimentinput.- sample.by
Metadata column used to aggregate
Seuratcells into pseudo-bulk samples.- group.by
Optional metadata column used for grouping pseudo-bulk samples. If
sample.byis not supplied,group.byis used as the aggregation variable.- aggregate_fun
Pseudo-bulk aggregation function for
Seuratinput.- platform
Platform label stored in the result metadata.
- filter_common_genes
Whether to restrict the expression matrix to the ESTIMATE common-gene universe before scoring.
- min_sig_genes
Minimum number of observed stromal and immune signature genes required after filtering.
- purity
Whether to calculate ESTIMATE tumor purity. The purity formula was calibrated in the original ESTIMATE work primarily for Affymetrix data; for RNA-seq it is best interpreted cautiously.
- verbose
Whether to print progress messages.
Value
A result bundle for matrix input, the modified SummarizedExperiment for
SummarizedExperiment input, or the modified Seurat object for Seurat
input.
References
Yoshihara K, Shahmoradgoli M, Martínez E, et al. (2013). Inferring tumour purity and stromal and immune cell admixture from expression data. Nature Communications, 4, 2612. doi:10.1038/ncomms3612
Barbie DA, Tamayo P, Boehm JS, et al. (2009). Systematic RNA interference reveals that oncogenic KRAS-driven cancers require TBK1. Nature, 462(7269), 108-112. doi:10.1038/nature08460