Skip to content

Code for reproducing results presented in the BEANIE paper

License

Notifications You must be signed in to change notification settings

vanallenlab/beanie-analysis

Repository files navigation

BEANIE

Dissecting tumor cell programs through group biology estimation in clinical single-cell transcriptomics

Preprint | AACR Oral Presentation

This repository contains data and code for reproducing analysis presented in the paper. To use the BEANIE method for your own analysis, please see installation instructions on this github repo.

Main Findings

With the growth of clinical cancer single-cell RNA sequencing (scRNA-seq) studies, robust differential expression methods for case/control analyses (e.g., treatment responders vs. non-responders) using gene signatures are pivotal to nominate hypotheses for further investigation. However, current commonly used methods for these analyses present multiple challenges for interpretation: (i) they produce a large number of false positives; (ii) they do not adequately represent the patient-specific hierarchical structure of clinical scRNA-seq data—a problem especially prominent for the tumor compartment due to the higher patient specificity exhibited by tumor cells; and (iii) they do not account for sample-driven confounders that arise from the variability in the number of recovered cells per sample and patient biology. Here, we present a novel nonparametric statistical method, BEANIE, to address these issues for investigating differential expression of gene signatures between clinically relevant groups within scRNA-seq data.

  1. We benchmark BEANIE's performance relative to conventional methods used in differential gene signature expression analysis scRNA-seq datasets using simulated datasets, and find superior sensitivity-specificity trade-off.
  2. We demonstrate BEANIE's use in real-world clinical datasets in breast cancer, lung cancer and melanoma.
  3. Overall, BEANIE provides a methodological strategy to inform biological insights into unique and shared differentially expressed gene signatures across different tumor states, with utility in single-study, meta-analysis, and cross-validation across cell types.

Reproducing Results

The main code files are organized as follows in this repository.

beanie-analysis/
	├── analysis
    		├── brca
    		├── luad
    		└── mel
	├── resource_utilization
    		├── results
    		└── scripts
	├── simulations/scripts
    		├── create_simulations.py
    		├── simulation_baseline.py
    		├── simulation_benchmark.py
    		└── simulation_perturbation.py
	└── process_list_autogen.csv

Setup Instructions

To reproduce the analysis, re-create the conda environment.

conda env create --file=environment.yml

Reproducing Results

Simulations : Run scripts in the following order (replace the location of seed dataset file in create_simulations.py with your own seed data to be used).

python create_simulations.py
python simulation_baseline.py
python simulation_perturbation.py
python_benchmark.py

Results : Jupyter notebooks are available in the analysis folder, within each cancer type subfolder, to use the raw data, identify tumor states and run analysis. Each folder is organized as follows-

├── brca
    ├── inputs --> contains data files for each of the tumor states in the analysis.
    ├── supplementary tables --> consolidated results presented in the supplementary tables of the paper.
    ├── outputs --> individual full result files from beanie analysis and benchmark methods.
        ├── ts1_beanie_de.csv --> BEANIE results for DE analysis on tumor state 1.
        ├── ts1_benchmark_de.csv --> Benchmark methods results for DE analysis on tumor state 1.
        ├── ts1_noise_benchmark_de.csv --> Immune cell surface marker results for DE analysis on tumor state 1 using benchmark methods
        ├── ts1_noise_de.csv --> Immune cell surface marker results for DE analysis on tumor state 1 using BEANIE
        ├── ts1_sig_scores.csv --> signature scores  
        └── ...
    └── ... --> Jupyter notebooks for identifying tumor states from processed data.

Issues

Please open new issue threads specifying the issue with the codebase or report issues directly to [email protected].

License and Terms of use

The source code is licensed under the GPL-2.0 license, which can be found under the LICENSE file.

Citation

If you find this work useful, please cite our paper -

Johri S., Bi K., Titchen B., Fu J., Conway J., Crowdis J., Vokes N., Fan Z, Fong L., Park J., Liu D., He MX., Van Allen E. (2021) Dissecting tumor cellprograms through group biology estimation in clinical single cell transcriptomics. biorxiv.

About

Code for reproducing results presented in the BEANIE paper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages