Usage¶
Input: /path/to/samples.csv provided by the user.
Output: 1) An output config file summarizing 2) the MAGs generated by MetaBAT2 and CONCOCT.
/path/to/work/dir/binning/final_reports/samples.csvfor ingestion by the next module (ex. quality-checking)/path/to/work/dir/binning/*/sample_name/, where*is either1_metabat2or2_concoct, the directories containing FastAs (*.fa) of MAGs inferred by MetaBAT2 and CONCOCT respectively
Structure:
└── workflow
├── Snakefile
├── binning.py
├── utils.py
└── __init__.py
workflow/binning.py: Click-based CLI that wraps thesnakemakeand unit test generation commands for clean management of parameters, resources, and environment variables.workflow/Snakefile: Thesnakemakepipeline.workflow/utils.py:
- Make your own
samples.csvbased on the template inconfigs/samples.csv. Sample test data can be found in.tests/unit/map_sort/data/work_dir/tmp/. samples.csvrequires absolute paths to Illumina reads (currently,ingest_samplesinworkflow/utils.pyexpects FastQs) and de novo assembled contigs.
- Make your own
Update the relevant
metabat2andconcoctparameters inconfigs/parameters.yaml.Update the computational resources available to the pipeline in
resources/*.yamlwhere*is either ‘slurm’ or ‘bash’.
4. To run CAMP on the command line, use the following, where /path/to/work/dir is replaced with the absolute path of your chosen working directory, and /path/to/samples.csv is replaced with your copy of samples.csv.
python /path/to/camp_binning/workflow/binning.py \
-w /path/to/camp_binning/workflow/Snakefile \
-d /path/to/work/dir \
-s /path/to/samples.csv
Note: This setup allows the main Snakefile to live outside of the work directory.
- To run CAMP on a job submission cluster (for now, only Slurm is supported), use the following.
--slurmis an optional flag that submits all rules in the Snakemake pipeline assbatchjobs.
- ::
sbatch -j jobname -e jobname.err.log -o jobname.out.log << “EOF” #!/bin/bash python /path/to/camp_binning/workflow/binning.py –slurm
-w /path/to/camp_binning/workflow/Snakefile -d /path/to/work/dir -s /path/to/samples.csv
EOF