The first step in the workflow, prior to analysis in R, is to correct the raw count matrices for ambient RNA contamination. This is performed using CellBender (Fleming et al. 2023)
Environment Setup
The exact conda environment used in this run can be installed using this yml file using conda env create -f cellbender.yml
Alternatively you can create the environement as follows
The following shell script is submitted to a high-performance computing (HPC) cluster as a SLURM job array to process each of the 48 samples in parallel.
The script pulls a cellbender_manifest.txt file from data directory with at two columns: sample_id and cellranger_output path for each sample as follow
Fleming, Stephen J, Mark D Chaffin, Alessandro Arduini, et al. 2023. “Unsupervised Removal of Systematic Background Noise from Droplet-Based Single-Cell Experiments Using CellBender.”Nature Methods 20 (9): 1323–35.