cansysbio / ConsensusTME

ConsensusTME Gene Sets and R Script
GNU General Public License v3.0
38 stars 17 forks source link
bioinformatics-pipeline cancer-genomics consensus-algorithm deconvolution immune tumour-microenvironment

ConsensusTME: Tumour microenvironment cell estimation

The ConsensusTME package provides a integrative tool for R that uses a consensus approach to generating cancer specific signatures for multiple cell types found within the tumour microenvironment.

These consensus gene sets are then used within a ssGSEA framework to provide normalised enrichment scores for each of the cell types representing the relative abundance of cell types across multiple samples.

Installation

The recommended installation for the R package is to use the install_github function from the devtools package.

install.packages("devtools")
devtools::install_github("cansysbio/ConsensusTME")

Usage

Cell Type Estimation

library(ConsensusTME)

bulkExpMatrix <- as.matrix(read.delim(bulkGeneExpression.txt, row.names = 1))

ConsensusTME::consensusTMEAnalysis(bulkExpMatrix, cancer = "OV", statMethod = "ssgsea")

Example shows running ConsensusTME for ovarian samples where bulkExpMatrix is a numerical matrix with HUGO gene symbols as row names.

Currently ConsensusTME can be run for the following TCGA cancer types viewable through ConsensusTME::cancerAll:

ACC BLCA BRCA CESC CHOL COAD DLBC ESCA GBM HNSC KICH KIRC KIRP LGG LIHC LUAD
LUSC MESO OV PAAD PCPG PRAD READ SARC SKCM STAD TGCT THCA THYM UCEC UCS UVM

The statMethod argument gives the option to run ConsensusTME gene sets with the following statistical frameworks:

ssgsea singScore gsva plage plage zscore

Further information can be found in the documentation ?consensusTMEAnalysis

Run Gene Set Enrichment Separately

To use the same statistical framework as ConsensusTME with a chosen signature from the consensus compendium.

bindeaGeneSet <- ConsensusTME::methodSignatures$Bindea

ConsensusTME::geneSetEnrichment(bulkExpMatrix, bindeaGeneSet)

Generate ConsensusTME Gene Sets

ConsensusTME gene sets can be generated for other uses. N.B. These gene sets are curated to be good signatures for immune cells within the tumour microenvironment. For immune cells in a different biological context other signatures may be more appropriate.

Pre-processed ConsensusTME gene sets can be accessed with ConsensusTME::consensusGeneSets

rawMethodSignatures <- ConsensusTME::methodSignatures

matchedSigs <- ConsensusTME::matchGeneSigs(rawMethodSignatures)

ConsensusTME::buildConsensusGenes(matchedSigs)

Notes

Publication

A manuscript is currently under consideration for publication, to cite currently please refer to the bioRxiv preprint:

https://www.biorxiv.org/content/early/2018/10/11/437533