Skip to content

Commit 7d58df4

Browse files
author
Taavi Päll
committed
Merge branch 'master' of github.com:avilab/vs
2 parents 6fe65a2 + c859d7c commit 7d58df4

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[![Travis-CI Build Status](https://travis-ci.org/<USERNAME>/<REPO>.svg?branch=master)](https://travis-ci.org/<USERNAME>/<REPO>)
33

4-
The goal of this repo is to more reproducibly recreate [VirusSeeker Virome workflow](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5326578/). Original code is available on github.com/guoyanzhao.
4+
The goal of this repo was to more reproducibly recreate [VirusSeeker Virome workflow](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5326578/). Original perl code is available on github.com/guoyanzhao.
55

66

77
## Setup environment and install prerequisites
@@ -71,9 +71,11 @@ snakemake -n
7171
snakemake --dag | dot -Tsvg > graph/dag.svg
7272
```
7373

74-
### Real run
74+
### Run workflow
7575

76-
This workflow is meant to be run in cluster.
76+
This workflow is designed to be run in cluster. `cluster.json` configuration file may need some customisation, for example partition name. Memory nad maximum runtime limits are optimised for 100 splits. Number of splits can be specified in `config.yaml` file with n_files option (currently n_files is 2). Installation of software dependencies is taken care by conda, hence there is software installation overhead when you run this workflow for the first time in new environment.
77+
78+
Example workflow submission script for slurm cluster, where values for job name, cluster partition name, time and memory constraints, and slurm log path (output) are taken from cluster.json:
7779
```
7880
snakemake -j --use-conda --cluster-config cluster.json \
7981
--cluster "sbatch -J {cluster.name} \
@@ -83,14 +85,16 @@ snakemake -j --use-conda --cluster-config cluster.json \
8385
--output {cluster.output}"
8486
```
8587

86-
All possible [snakemake execution](https://snakemake.readthedocs.io/en/stable/executable.html) options can be printed by calling `snakemake -h`.
87-
88+
You may want to use also following flags when running this workflow in cluster:
8889
```
89-
--max-jobs-per-second 1 --max-status-checks-per-second 10 --rerun-incomplete
90+
--max-jobs-per-second 1 --max-status-checks-per-second 10 --rerun-incomplete --keep-going
9091
```
9192

93+
All other possible [snakemake execution](https://snakemake.readthedocs.io/en/stable/executable.html) options can be printed by calling `snakemake -h`.
94+
9295
### Exit/deactivate environment
9396

97+
Conda environment can be closed with the following command when work is finished:
9498
```
9599
source deactivate
96100
```

0 commit comments

Comments
 (0)