A Snakemake pipeline for running cfClone.
Important
Pipeline requires snakemake v9.4 or greater
This pipeline requires that conda and Snakemake be installed; the Bioconda package channel must also be configured.
- Ensure that you have a working
condainstallation, you can do this by installing Miniforge. - Configure the Bioconda channel and set strict channel priority:
conda config --add channels bioconda conda config --add channels conda-forge conda config --set channel_priority strict - Install Snakemake:
conda create -c conda-forge -c bioconda --name snakemake snakemake'>=9.4'
- Adjust the configuration file to suit your dataset.
- The following fields are required:
out_dir: path the output directoryclonal_cn_bed: path to the input (phased) clonal copy number profiles, in .bed formatclone_tree_newick: path to the clone phylogenetic tree, in newick (.nwk) formatsample_tsv: Path to bulk sample paths .tsv file, must contain the following columns:sample_id: populated with sample IDspath: populated with fully resolved paths to the input bulk sample data files
- For a full description of all available pipeline options, please refer to the schema
- The remaining configuration options have been named to mirror the options cfClone, to read more on the available options and their use cases:
A slurm workflow-profile has been created: here
Adjust as needed.
To run this pipeline using the slurm workflow-profile:
- Ensure that the required snakemake plugins are installed.
- SSH onto the cluster
- On the login node start a screen session:
screen -S cfclone
- From the screen session, activate your snakemake conda environment:
conda activate snakemake
- From the screen session, launch the pipeline using the slurm workflow-profile:
snakemake --workflow-profile profiles/slurm --configfile <path/to/config-file>
Tip
Might be a good idea to launch a dry-run of the pipeline to ensure the ruleset and output are as you expect: snakemake --workflow-profile profiles/slurm -n -q rules
Please ensure the following plugin is available in your snakemake conda environment:
The plugin is available through the Bioconda package channel:
- Slurm Plugin
conda install snakemake-executor-plugin-slurm