Skip to content

This is a snakemake pipeline to run miptools analysis without jupyter. It's based off of Ozkan's analysis_template_with_qual.ipynb

Notifications You must be signed in to change notification settings

bailey-lab/miptools_analysis_no_jupyter

Repository files navigation

miptools_analysis_no_jupyter

This is a snakemake pipeline for running a modified analysis_template_with_qual notebook (from miptools analysis). It consists of three parts:

  • setup_run: creates a singularity profile for running remaining steps
  • check_run_stats: checks which samples and mips worked and at what levels
  • variant_calling: calls variants and generates output tables

Currently each step requires that the previous steps have run - you can't check run stats without setting up the singularity profile, and you can't run the variant calling step without setting up the run and checking run stats.

Installation

mamba create -c conda-forge -c bioconda -n snakemake snakemake
conda activate snakemake

Setup your environment:

  • Change directory to a folder where you want to run the analysis
  • Download the files of this repository into that folder

Usage:

  • Edit the miptools_analysis_no_jupyter.yaml file to point to your files. Use a text editor that outputs unix line endings (e.g. vscode, notepad++, gedit, micro, emacs, vim, vi, etc.)
  • If snakemake is not your active conda environment, activate snakemake with:
conda activate snakemake
  • To setup your singularity environment, use:
snakemake -s setup_run.smk --cores 4
  • To check run stats, use:
snakemake -s check_run_stats.smk --profile singularity_profile
  • To run variant calling, use:
snakemake -s variant_calling.smk --profile singularity_profile
  • to run all three steps at once, use:
bash run_all_steps.sh

About

This is a snakemake pipeline to run miptools analysis without jupyter. It's based off of Ozkan's analysis_template_with_qual.ipynb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published