Jain-Joyce-Labs/snakemake-chipseq

Pipeline for processing ChIP-seq experiments. CURRENTLY IN ALPHA. Not ready for prime time.

Overview

Topics:

Latest release: None, Last update: 2022-12-15

Linting: linting: failed, Formatting: formatting: failed

Deployment

Step 1: Install Snakemake and Snakedeploy

Snakemake and Snakedeploy are best installed via the Mamba package manager (a drop-in replacement for conda). If you have neither Conda nor Mamba, it is recommended to install Miniforge. More details regarding Mamba can be found here.

When using Mamba, run

mamba create -c conda-forge -c bioconda --name snakemake snakemake snakedeploy

to install both Snakemake and Snakedeploy in an isolated environment. For all following commands ensure that this environment is activated via

conda activate snakemake

Step 2: Deploy workflow

With Snakemake and Snakedeploy installed, the workflow can be deployed as follows. First, create an appropriate project working directory on your system and enter it:

mkdir -p path/to/project-workdir
cd path/to/project-workdir

In all following steps, we will assume that you are inside of that directory. Then run

snakedeploy deploy-workflow https://github.com/Jain-Joyce-Labs/snakemake-chipseq . --tag None

Snakedeploy will create two folders, workflow and config. The former contains the deployment of the chosen workflow as a Snakemake module, the latter contains configuration files which will be modified in the next step in order to configure the workflow to your needs.

Step 3: Configure workflow

To configure the workflow, adapt config/config.yml to your needs following the instructions below.

Step 4: Run workflow

The deployment method is controlled using the --software-deployment-method (short --sdm) argument.

To run the workflow using apptainer/singularity, use

snakemake --cores all --sdm apptainer

Snakemake will automatically detect the main Snakefile in the workflow subfolder and execute the workflow module that has been defined by the deployment in step 2.

For further options such as cluster and cloud execution, see the docs.

Step 5: Generate report

After finalizing your data analysis, you can automatically generate an interactive visual HTML report for inspection of results together with parameters and code inside of the browser using

snakemake --report report.zip

Configuration

The following section is imported from the workflow’s config/README.md.

Describe how to configure the workflow (using config.yaml and maybe additional files). All of them need to be present with example entries inside of the config folder.

Linting and formatting

Linting results

 1Lints for snakefile /tmp/tmpaob1qfux/workflow/Snakefile:
 2    * Absolute path "/home/rabdill/snakemake-chipseq/resources/bowtie_ref/GRCh38/GRCh38_noalt_as.1.bt2" in line 154:
 3      Do not define absolute paths inside of the workflow, since this renders
 4      your workflow irreproducible on other machines. Use path relative to the
 5      working directory instead, or make the path configurable via a config
 6      file.
 7      Also see:
 8      https://snakemake.readthedocs.io/en/latest/snakefiles/configuration.html#configuration
 9    * Absolute path "/home/rabdill/snakemake-chipseq/resources/bowtie_ref/GRCh38/GRCh38_noalt_as.1.bt2" in line 176:
10      Do not define absolute paths inside of the workflow, since this renders
11      your workflow irreproducible on other machines. Use path relative to the
12      working directory instead, or make the path configurable via a config
13      file.
14      Also see:
15      https://snakemake.readthedocs.io/en/latest/snakefiles/configuration.html#configuration
16    * Absolute path "/home/rabdill/snakemake-chipseq/resources/bwa_ref/Homo_sapiens.GRCh38.dna_rm.primary_assembly.fa.gz" in line 195:
17      Do not define absolute paths inside of the workflow, since this renders
18      your workflow irreproducible on other machines. Use path relative to the
19      working directory instead, or make the path configurable via a config
20      file.
21      Also see:
22      https://snakemake.readthedocs.io/en/latest/snakefiles/configuration.html#configuration
23    * Absolute path "/home/rabdill/snakemake-chipseq/resources/bwa_ref/Homo_sapiens.GRCh38.dna_rm.primary_assembly.fa.gz" in line 210:
24      Do not define absolute paths inside of the workflow, since this renders
25      your workflow irreproducible on other machines. Use path relative to the
26      working directory instead, or make the path configurable via a config
27      file.
28      Also see:
29      https://snakemake.readthedocs.io/en/latest/snakefiles/configuration.html#configuration
30    * Absolute path "/home/rabdill/snakemake-chipseq/resources/ssp/genometable.txt" in line 255:
31      Do not define absolute paths inside of the workflow, since this renders
32      your workflow irreproducible on other machines. Use path relative to the
33      working directory instead, or make the path configurable via a config
34      file.
35      Also see:
36      https://snakemake.readthedocs.io/en/latest/snakefiles/configuration.html#configuration
37    * Absolute path "/home/rabdill/snakemake-chipseq/resources/ssp/mptable.txt" in line 256:
38      Do not define absolute paths inside of the workflow, since this renders
39      your workflow irreproducible on other machines. Use path relative to the
40      working directory instead, or make the path configurable via a config
41      file.
42      Also see:
43      https://snakemake.readthedocs.io/en/latest/snakefiles/configuration.html#configuration
44    * Absolute path "/home/rabdill/snakemake-chipseq/resources/hg38-blacklist.v2.bed" in line 288:
45      Do not define absolute paths inside of the workflow, since this renders
46      your workflow irreproducible on other machines. Use path relative to the
47      working directory instead, or make the path configurable via a config
48      file.
49      Also see:
50      https://snakemake.readthedocs.io/en/latest/snakefiles/configuration.html#configuration

Formatting results

1[DEBUG] 
2[DEBUG] In file "/tmp/tmpaob1qfux/workflow/Snakefile":  Formatted content is different from original
3[INFO] 1 file(s) would be changed 😬
4
5snakefmt version: 0.7.0