This repository contains code that processes data for the biannual DepMap data release. State of the pipeline for each release can be found under the "Releases" tab in this repo.
The processing pipeline relies on the following tools:
git clone http://github.com/BroadInstitute/depmap_omics.git && cd depmap_omics
pip install -e .
Some important data and code from the genepy Library.
Use the instructions in the genepy page to install the package.
You will need to install jupyter notetbooks and google cloud sdk
gcloud auth application-default login
in the terminal, and follow the instrucion to log in.and GSVA for ssGSEA in R R
run R -e 'if(!requireNamespace("BiocManager", quietly = TRUE)){install.packages("BiocManager")};BiocManager::install(c("GSEABase", "erccdashboard", "GSVA", "DESeq2"));'
For Python use the requirements.txt file pip install -r requirements.txt
__ccle_tasks/__ Contains a notebook for each of the different additional processing that the CCLE team has to perform as well as one-off tasks run by the omics team
data/ Contains important information used for processing, including terra workspace configurations from past quarters
depmapomics/ Contains the core python code used in the pipeline and called by the processing jupyter notebooks
*_pipeline/ Contains some of the workflows' wdl files and script files used by these workflows
temp/ Contains the temp file that can get removed after processing (should be empty)
documentation/ Contains some additional files and diagrams for documenting the pipelines
tests/ Contains automated pytest functions used internally for development
jupyter notebooks: RNA_CCLE.ipynb
contains the DepMap processing pipelines for Expression and Fusion (from RNAseq data), and WGS_CCLE.ipynb
contains the DepMap processing pipelines for Copy number and Mutations (from WGS/WES data)
The processing pipelines are encapsulated in two jupyter notebooks (RNA_CCLE.ipynb
and WGS_CCLE.ipynb
). Each is divided into four steps: uploading, running Terra pipelines, local postprocessing, and uploading. Here is a detailed walkthrough (_Note that the steps that are "internal only" are run as part of DepMap's data processing, but not meant for external users to reproduce due to various dependencies that are unique to our team at the Broad. The "internal only" functions below can be found in the depmap_omics_upload repo_):
Currently, sequenced data for DepMap is generated by the Genomics Platform (GP) at the Broad who deposits them into several different Terra workspaces. Therefore, the first step of this pipeline is to look at these workspaces and
We are using Dalmatian to send requests to Terra, so before running this part, external users need to make sure that the dalmatian WorkspaceManager
object is initialized with the right workspace and that the functions are taking the correct workflow names as inputs.
You can then run the RNAseq and/or WGS pipelines on your samples.
For a more in-depth documentation on what our pipelines contain, including the packages, input references, and parameters, please refer to this summary of DepMap processing pipeline.
This step will do a set of tasks:
The main postprocessing steps for each pipeline are as followed:
copynumbers.py
contains the main postprocessing function postProcess()
responsible for postprocessing segments and creating gene-level (relative and absolute) CN files and genomic feature table. Gene mapping information is retrieved from BioMart version nov2020
. The function also applies the following filters to segment and CN data:
_Internal only: dm_omics.cnPostProcessing()
calls the above function on both WES and WGS data, merges them, renames the indices into ProfileIDs, and upload them to taiga._
Note: to get the exact same results as in DepMap, be sure to run genecn = genecn.apply(lambda x: np.log2(1+x))
to the genecn dataframe in the CNV pipeline
mutations.py
contains postProcess()
, the function responsible for postprocessing aggregated MAF files, genotyped mutation matrices (hot spot and damaging), binary guide mutation matrices, and structural variants (SVs).
_Internal only: dm_omics.mutationPostProcessing()
calls the above function on both WES and WGS data, merges them, renames the indices into ProfileIDs, removes genes whose hugo symbol is not in biomart, generates individual mutation datasets for variant types, and uploads them to taiga. It also generates and uploads a binary matrix for germline mutations._
expressions.py
contains the main postprocessing function responsible for postprocessing aggregated expression data from RSEM, which removes duplicates and QC failures, renames genes, filters and log transforms values, and generates transcrip-level, gene-level, and protein-coding gene-level expression data files. Gene mapping information is retrieved from BioMart version nov2020
. Optionally, in addition, it also generates Single-sample GSEA (ssGSEA) data.
_Internal only: dm_omics.expressionPostProcessing()
is a wrapper for the above function. It renames the indices into ProfileIDs and uploads the files to taiga._
Functions that postprocess aggregated fusion data can be found in fusions.py
. We want to apply filters to the fusion table to reduce the number of artifacts in the dataset. Specifically, we filter the following:
_Internal only: dm_omics.fusionPostProcessing()
is a wrapper for the above function. It renames the indices into ProfileIDs and uploads the data to taiga._
We then perform the following QC tasks for each dataset:
Once the CN files are saved, we load them back in python and do some validations, in brief:
Compare to previous release (broad only)
We compare the results to the previous releases MAF. Namely:
Overall the filters applied after the CGA pipeline are the following:
We remove everything that:
Once the expression files are saved, we do the following validations:
After QC, data is uploaded to taiga for all portal audiences according to release dates in Gumbo.
@jkobject @gkugener @gmiller @5im1z @__BroadInsitute
If you have any feedback or run into any issues, feel free to post an issue on the github repo.