Skip to content

Commit 5ce552c

Browse files
snakedeploy-bot[bot]fgvieira
authored and
Vito Zanotelli
committed
perf: autobump bio/rasusa (snakemake#2967)
Automatic bump of bio/rasusa. --------- Co-authored-by: snakedeploy-bot[bot] <115615832+snakedeploy-bot[bot]@users.noreply.github.com> Co-authored-by: Filipe G. Vieira <[email protected]>
1 parent 920e8a1 commit 5ce552c

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

bio/rasusa/environment.linux-64.pin.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# platform: linux-64
44
@EXPLICIT
55
https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2#d7c89558ba9fa0495403155b64376d81
6-
https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.2.0-h807b86a_3.conda#7124cbb46b13d395bdde68f2d215c989
6+
https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.2.0-h77fa898_7.conda#abf3fec87c2563697defa759dec3d639
77
https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2#73aaf86a425cc6e73fcf236a5a46396d
8-
https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.2.0-h807b86a_3.conda#23fdf1fef05baeb7eadc2aed5fb0011f
9-
https://conda.anaconda.org/bioconda/linux-64/rasusa-0.8.0-h031d066_0.tar.bz2#0e86b97fdc0c8ea60b8e5b7b5725eb04
8+
https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.2.0-h77fa898_7.conda#72ec1b1b04c4d15d4204ece1ecea5978
9+
https://conda.anaconda.org/bioconda/linux-64/rasusa-2.0.0-h031d066_0.tar.bz2#59ca5054e6ec09ee5e7ec23c8b010a14

bio/rasusa/environment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ channels:
33
- bioconda
44
- nodefaults
55
dependencies:
6-
- rasusa =0.8.0
6+
- rasusa =2.0.0

bio/rasusa/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ params:
1919
Alternatively, a FASTA/Q index file can be provided and the genome size will be set
2020
to the sum of all reference sequences. |nl|
2121
If ``bases`` is not provided, this option and ``coverage`` are required
22-
options: >
23-
Any other options as listed in `the docs <https://github.com/mbhall88/rasusa#usage>`_.
22+
extra: >
23+
Additional program arguments.

bio/rasusa/wrapper.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@
66

77
from snakemake.shell import shell
88

9-
10-
options = snakemake.params.get("options", "")
9+
log = snakemake.log_fmt_shell(stdout=True, stderr=True)
10+
extra = snakemake.params.get("extra", "")
1111

1212
bases = snakemake.params.get("bases")
13-
if bases is not None:
14-
options += " -b {}".format(bases)
13+
if bases:
14+
extra += f" --bases {bases}"
1515
else:
1616
covg = snakemake.params.get("coverage")
1717
gsize = snakemake.params.get("genome_size")
1818
if covg is None or gsize is None:
1919
raise ValueError(
2020
"If `bases` is not given, then `coverage` and `genome_size` must be"
2121
)
22-
options += " -g {gsize} -c {covg}".format(gsize=gsize, covg=covg)
22+
extra += f" --genome-size {gsize} --coverage {covg}"
2323

24-
shell("rasusa {options} -i {snakemake.input} -o {snakemake.output} 2> {snakemake.log}")
24+
shell(
25+
"rasusa reads {extra} --output {snakemake.output[0]} --output {snakemake.output[1]} {snakemake.input} {log}"
26+
)

0 commit comments

Comments
 (0)