Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Feb 17, 2017
1 parent 5374fd6 commit 5211703
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Empty file added bio/pindel/__init__.py
Empty file.
4 changes: 3 additions & 1 deletion bio/pindel/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ rule pindel:
output:
"calls/pindel.vcf"
params:
"" # optional parameters (except -i, -f, -o)
# prefix must be consistent with output files
prefix="calls/pindel",
extra="" # optional parameters (except -i, -f, -o)
log:
"logs/pindel.log"
threads: 4
Expand Down
5 changes: 2 additions & 3 deletions bio/pindel/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import os
from snakemake.shell import shell


extra = snakemake.params.get("extra", "")
log = snakemake.log_fmt_shell(stdout=True, stderr=True)
prefix = os.path.dirname(snakemake.output[0])

shell("pindel {snakemake.params} -i {snakemake.input.config} -f {snakemake.input.ref} -o {prefix} {log}")
shell("pindel {snakemake.params.extra} -i {snakemake.input.config} -f {snakemake.input.ref} -o {snakemake.params.prefix} {log}")

0 comments on commit 5211703

Please sign in to comment.