Skip to content

Commit 55bd4be

Browse files
tdayristdayrisjohanneskoestergithub-actions[bot]snakedeploy-bot[bot]
authored andcommitted
docs: Documentation update (snakemake#1295)
<!-- Ensure that the PR title follows conventional commit style (<type>: <description>)--> <!-- Possible types are here: https://github.com/commitizen/conventional-commit-types/blob/master/index.json --> ### Description Follow up on snakemake#392 I finally have time to continue this. This is a new chunk of 9 meta.yaml updated to explicitly give IO parameters names (if any) and updated notes. ### QC <!-- Make sure that you can tick the boxes below. --> Wrappers have not been changed. The only changes are in meta.yaml files. Most of the QC steps below do not apply here. * [X] I confirm that: For all wrappers added by this PR, * there is a test case which covers any introduced changes, * `input:` and `output:` file paths in the resulting rule can be changed arbitrarily, * either the wrapper can only use a single core, or the example rule contains a `threads: x` statement with `x` being a reasonable default, * rule names in the test case are in [snake_case](https://en.wikipedia.org/wiki/Snake_case) and somehow tell what the rule is about or match the tools purpose or name (e.g., `map_reads` for a step that maps reads), * all `environment.yaml` specifications follow [the respective best practices](https://stackoverflow.com/a/64594513/2352071), * wherever possible, command line arguments are inferred and set automatically (e.g. based on file extensions in `input:` or `output:`), * all fields of the example rules in the `Snakefile`s and their entries are explained via comments (`input:`/`output:`/`params:` etc.), * `stderr` and/or `stdout` are logged correctly (`log:`), depending on the wrapped tool, * temporary files are either written to a unique hidden folder in the working directory, or (better) stored where the Python function `tempfile.gettempdir()` points to (see [here](https://docs.python.org/3/library/tempfile.html#tempfile.gettempdir); this also means that using any Python `tempfile` default behavior works), * the `meta.yaml` contains a link to the documentation of the respective tool or command, * `Snakefile`s pass the linting (`snakemake --lint`), * `Snakefile`s are formatted with [snakefmt](https://github.com/snakemake/snakefmt), * Python wrapper scripts are formatted with [black](https://black.readthedocs.io). * Conda environments use a minimal amount of channels, in recommended ordering. E.g. for bioconda, use (conda-forge, bioconda, nodefaults, as conda-forge should have highest priority and defaults channels are usually not needed because most packages are in conda-forge nowadays). --------- Co-authored-by: tdayris <tdayris@gustaveroussy.fr> Co-authored-by: tdayris <thibault.dayris@gustaveroussy.fr> Co-authored-by: Johannes Köster <johannes.koester@uni-due.de> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: snakedeploy-bot[bot] <115615832+snakedeploy-bot[bot]@users.noreply.github.com> Co-authored-by: Felix Mölder <felix.moelder@uni-due.de> Co-authored-by: Christopher Schröder <christopher.schroeder@tu-dortmund.de>
1 parent 765897c commit 55bd4be

File tree

9 files changed

+74
-12
lines changed

9 files changed

+74
-12
lines changed

bio/bazam/meta.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ url: https://github.com/ssadedin/bazam
44
authors:
55
- Christopher Schröder
66
input:
7-
- BAM/CRAM file
8-
- reference genome
7+
- bam: Path to mapping file (BAM/CRAM formatted)
8+
- reference: Optional path to reference genome sequence (FASTA formatted). Required for CRAM input.
99
output:
10-
- fastq file
10+
- reads: Path to realigned reads (single-ended or interleaved) (FASTQ formatted) *OR*
11+
- r1: Path to upstream reads (FASTQ formatted) *AND*
12+
- r2: Path to downstream reads (FASTQ formatted)
13+
params:
14+
- extra: Optional parameters passed to `bazam`
15+
note: |
16+
* Output files include either paths to both `r1` and `r2`, or a single path to `reads`.
17+
* This wrapper/tool does not handle multithreading.
18+
* The `java_opts` param allows for additional arguments to be passed to the java compiler (not for `-XmX` or `-Djava.io.tmpdir`, since they are handled automatically).

bio/bedtools/bamtobed/meta.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ url: https://bedtools.readthedocs.io/en/latest/content/tools/bamtobed.html
55
authors:
66
- Filipe G. Vieira
77
input:
8-
- BAM file
8+
- BAM file, this must be the first file in the input file list
99
output:
10-
- BED file
10+
- BED file, this must be the first file in the output file list
11+
params:
12+
- extra: additional program arguments (except `-i`)
1113
notes: |
12-
* The `extra` param allows for additional program arguments.
14+
* This program/wrapper does not handle multi-threading.

bio/bedtools/complement/meta.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ url: https://bedtools.readthedocs.io/en/latest/content/tools/complement.html
55
authors:
66
- Antonie Vietor
77
input:
8-
- BED/GFF/VCF files
9-
- genome file
8+
- in_file: interval files (BED/GFF/VCF)
9+
- genome: genome file
1010
output:
1111
- complemented BED/GFF/VCF file
12+
params:
13+
- extra: additional program arguments (except `-i` and `-g`)
14+
notes: |
15+
* This program/wrapper does not handle multi-threading.

bio/bedtools/coveragebed/meta.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@ description:
44
url: https://bedtools.readthedocs.io/en/latest/content/tools/coverage.html
55
authors:
66
- Patrik Smeds
7+
input:
8+
- a: Path to the feature file (BAM/BED/GFF/VCF). This file is compared to `b` (see below)
9+
- b: Path or list of paths to file(s) (BAM/BED/GFF/VCF).
10+
output:
11+
- Path to the coverage file.
12+
params:
13+
- extra: additional program arguments (except `-a` and `-b`)
14+
notes: |
15+
* This program/wrapper does not handle multi-threading.

bio/bedtools/genomecov/meta.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,13 @@ authors:
77
input:
88
- BED/GFF/VCF files grouped by chromosome and genome file (`genome file format <https://bedtools.readthedocs.io/en/latest/content/general-usage.html#genome-file-format>`_) OR
99
- BAM files sorted by position.
10+
- ref: Path to genome file, this must come after the other files
1011
output:
1112
- genomecov (.genomecov)
13+
params:
14+
- extra: additional program arguments
15+
note: |
16+
* If user provides a BAM file, then no need to provide a reference genome file
17+
* If user provides a BED file, then reference genome file is required
18+
* BAM/GFF/VCF/BED files *must* come first. Input file order matters in this wrapper.
19+
* This program/wrapper does not handle multi-threading.

bio/bedtools/intersect/meta.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@ description: Intersect BED/BAM/VCF files with bedtools.
33
url: https://bedtools.readthedocs.io/en/latest/content/tools/intersect.html
44
authors:
55
- Jan Forster
6+
input:
7+
- left: Path to the left region file. Each feature in left region file is compared to right region(s) file(s) in search of overlaps. (BAM/BED/GFF/VCF formatted)
8+
- right: Path or list of paths to region(s) file(s) (BAM/BED/GFF/VCF formatted)
9+
output:
10+
- Path to the intersection.
11+
params:
12+
- extra: additional program arguments (except `-a` (left) and `-b` (right))
13+
note: |
14+
* This program/wrapper does not handle multi-threading.

bio/bedtools/merge/meta.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ description: Merge entries in one or multiple BED/BAM/VCF/GFF files with bedtool
33
url: https://bedtools.readthedocs.io/en/latest/content/tools/merge.html
44
authors:
55
- Jan Forster
6+
input:
7+
- Path or list of paths to interval(s) file(s) (BED/GFF/VCF/BAM)
8+
output:
9+
- Path to merged interval(s) file.
10+
params:
11+
- extra: additional program arguments (except for `-i`)
12+
notes: |
13+
* Warning: If multiple files are provided in input, then this wrapper requires exactly 3 threads. Else, it requires exactly one thread.

bio/bedtools/slop/meta.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,13 @@ description: Increase the size of each feature in a BED/BAM/VCF by a specified f
33
url: https://bedtools.readthedocs.io/en/latest/content/tools/slop.html
44
authors:
55
- Jan Forster
6+
input:
7+
- Path to an interval file (BED/GFF/VCF)
8+
output:
9+
- Path to the expanded intervals file
10+
params:
11+
- genome: Path to a genome file
12+
- extra: additional program arguments (except for `-i` or `-g`)
13+
notes: |
14+
* Extra parameters requires either `-b` or (`-l` and `-r`)
15+
* This program/wrapper does not handle multi-threading.

bio/bedtools/sort/meta.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ url: https://bedtools.readthedocs.io/en/latest/content/tools/sort.html
55
authors:
66
- Antonie Vietor
77
input:
8-
- BED/GFF/VCF files
9-
- optional a tab separating file that determines the sorting order and contains the chromosome names in the first column
10-
- optional a fasta index file
8+
- in_file: Path to interval file (BED/GFF/VCF formatted)
9+
- genome: optional a tab separating file that determines the sorting order and contains the chromosome names in the first column
10+
- faidx: optional a fasta index file
1111
output:
12-
- sorted BED/GFF/VCF file
12+
- Path to the sorted interval file (BED/GFF/VCF formatted)
13+
params:
14+
- extra: additional program arguments (except for `-i`, `-g`, or `--faidx`)
15+
notes: |
16+
* This program/wrapper does not handle multi-threading.

0 commit comments

Comments
 (0)