File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 3
3
# platform: linux-64
4
4
@EXPLICIT
5
5
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
7
7
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
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ channels:
3
3
- bioconda
4
4
- nodefaults
5
5
dependencies :
6
- - rasusa =0.8 .0
6
+ - rasusa =2.0 .0
Original file line number Diff line number Diff line change @@ -19,5 +19,5 @@ params:
19
19
Alternatively, a FASTA/Q index file can be provided and the genome size will be set
20
20
to the sum of all reference sequences. |nl|
21
21
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 .
Original file line number Diff line number Diff line change 6
6
7
7
from snakemake .shell import shell
8
8
9
-
10
- options = snakemake .params .get ("options " , "" )
9
+ log = snakemake . log_fmt_shell ( stdout = True , stderr = True )
10
+ extra = snakemake .params .get ("extra " , "" )
11
11
12
12
bases = snakemake .params .get ("bases" )
13
- if bases is not None :
14
- options += " -b {}" . format ( bases )
13
+ if bases :
14
+ extra += f " --bases { bases } "
15
15
else :
16
16
covg = snakemake .params .get ("coverage" )
17
17
gsize = snakemake .params .get ("genome_size" )
18
18
if covg is None or gsize is None :
19
19
raise ValueError (
20
20
"If `bases` is not given, then `coverage` and `genome_size` must be"
21
21
)
22
- options += " -g {gsize} -c {covg}" . format ( gsize = gsize , covg = covg )
22
+ extra += f " --genome-size { gsize } --coverage { covg } "
23
23
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
+ )
You can’t perform that action at this time.
0 commit comments