Workflow to perform KAS-seq analysis
This is the template for a new Snakemake workflow. Replace this text with a comprehensive description, covering the purpose and domain.
Insert your code into the respective folders, i.e. scripts
, rules
and envs
. Define the entry point of the workflow in the Snakefile
and the main configuration in the config.yaml
file.
The workflow is written using Snakemake.
Dependencies are installed using Bioconda where possible.
-
Clone workflow into working directory
git clone <repo> <dir> cd <dir>
-
Download input data
Copy data from URL to
data
directory -
Edit config as needed
nano config.yaml
-
Install dependencies into isolated environment
conda env create -n <project> --file environment.yaml
-
Activate environment
source activate <project>
-
Execute workflow
snakemake -n
-
Investigate results
After successful execution, you can create a self-contained interactive HTML report with all results via:
snakemake --report report.html
This report can, e.g., be forwarded to your collaborators.
snakemake --cluster-config cluster_config.cetus.yaml \
--drmaa " --cpus-per-task={cluster.n} --mem={cluster.memory} --qos={cluster.qos}" \
--use-conda -w 60 -rp -j 1000
The following recipe provides established best practices for running and extending this workflow in a reproducible way.
- Fork the repo to a personal or lab account.
- Clone the fork to the desired working directory for the concrete project/run on your machine.
- Create a new branch (the project-branch) within the clone and switch to it. The branch will contain any project-specific modifications (e.g. to configuration, but also to code).
- Modify the config, and any necessary sheets (and probably the workflow) as needed.
- Commit any changes and push the project-branch to your fork on github.
- Run the analysis.
- Optional: Merge back any valuable and generalizable changes to the upstream repo via a pull request. This would be greatly appreciated.
- Optional: Push results (plots/tables) to the remote branch on your fork.
- Optional: Create a self-contained workflow archive for publication along with the paper (snakemake --archive).
- Optional: Delete the local clone/workdir to free space.
Tests cases are in the subfolder .test
. They should be executed via continuous integration with Travis CI.