All the information goes into the configuration file (YAML format). There is an example (config.yaml) with comments regarding the files' format.
There are two main R scripts:
- demux_seurat.R, performes the demultiplexing of hashtags using Seurat's MULTIseqDemux and further making sure we classify doublets correctly and rescuing barcodes labeled as negative.
- summary.R, summarises the classified data and gets the barcode names ready to merge it into an aggregated data.
The files you need to prepare are:
- Sample sheet ('samples' in the YAML file).
- Table with columns 'gex' (path), 'capture' (path), and name.
- Can be avoided if your samples have consistent names you can use to select pairs of Ab capture (CITE) and gene expression (Gex) data. Then you just indicate the Cell Ranger output folder of containing CITE and Gex folders in the 'count_info' part of config.yaml.
NOTES:
- The pipeline relies on the samples having the follwing patterns in their name:
- Gex: to use Cell Ranger's "count" routine.
- CITE: to use Cell Ranger's "count" routine and identify it as Feature Barcode.
It takes about 5 minutes with 90K cells with 20gb and 1 node/1 processor.
Clone this repository (your ~/bin folder is a good place).
git clone https://github.com/vijaybioinfo/ab_capture.git
cd ab_capture
Make sure your config template is pointing to where you have the pipeline. This will also add the run.sh script as an alias.
sh locate_pipeline.sh
After you've added the necessary information to the YAML file you can call the pipeline.
ab_capture -y /path/to/project/config.yaml