Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

74 Commits

Folders and files

Repository files navigation

Evaluate cfClone in-silico mixtures of cfDNA bams

A Snakemake workflow that generates in-silico mixtures from inputted bam files and runs cfclone to perform tumour fraction estimation and tumour deconvolution.

Getting started

This pipeline requires that conda and Snakemake be installed; the Bioconda package channel must also be configured.

Dependencies

Environment

  1. Ensure that you have a working conda installation, you can do this by installing Miniforge.
  2. 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
    
  3. Install Snakemake:
    conda create -c conda-forge -c bioconda --name snakemake snakemake'>=9.12'
    

Workflow

  1. Create a working directory for the workflow:
    mkdir -p path/to/project-workdir
    cd path/to/project-workdir
    
  2. Clone the workflow repository through git:
    git clone --depth 1 https://github.com/Roth-Lab/cfclone-bams-mix-smk.git
    

Usage

Configuration

For a full description of all available pipeline options, please refer to the pipeline schema. Modify the configuration file, config.yaml to suit your dataset.

Run Workflow

  1. Navigate to the project directory and activate the snakemake environment:
    cd path/to/project-workdir/cfclone-bams-mix-smk
    conda activate snakemake
    
  2. Run a dry-run of the pipeline to confirm the ruleset and outputs are as you expect:
    snakemake --cores <number-of-CPU-cores-to-use> --configfile <path/to/config-file> -n 
    
  3. Run the pipeline:
    snakemake --cores <number-of-CPU-cores-to-use> --configfile <path/to/config-file>
    

Output

The main outputs of the pipeline are posterior distributions on tumour fraction and clone prevalences. More on the contents of these output files can be found in the cfClone repository.

Example workflow output folder structure:

<out-dir>
out-dir/
├── cfclone/
│   └── coverage_{coverage_id}/
│       └── mixture_{mixture_id}/
│           └── proportion_{proportion_id}/
│               └── data_seed_{data_seed}/
│                   └── out_dir/
│                       ├── config.yaml
│                       ├── evidence.tsv
│                       ├── restart_{model_seed}/
│                       │   ├── fit/
│                       │   │   ├── full
│                       │   │   ├── full.h5
│                       │   │   ├── normal
│                       │   │   └── normal.h5
│                       │   └── tables/
│                       │       ├── evidence.tsv
│                       │       ├── summary.tsv
│                       │       └── tumour_content.tsv
│                       ├── summary.tsv
│                       └── tumour_content.tsv
├── config.yaml
├── mixed_bams_summary.tsv
└── summary.tsv

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages