Skip to content

Commit

Permalink
Fixed bug with GOBNILP online estimate on timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Rios committed Feb 23, 2022
1 parent a4ee026 commit 26363f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/rules/algorithm_shell_commands.smk
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def alg_shell(algorithm):
echo -e gobnilp/scoring/prune = {wildcards.prune} >> {output.adjmat}.gobnilp.set
echo -e gobnilp/delimiter = \134\042,\134\042 >> {output.adjmat}.gobnilp.set
cat resources/extra_args/{wildcards.extra_args} >> {output.adjmat}.gobnilp.set
if [ {wildcards.timeout} != \"None\" ]; then
timeout --signal=SIGKILL {wildcards.timeout} bash -c '/myappdir/gobnilp/bin/gobnilp -f=dat -g={output.adjmat}.gobnilp.set {input.data}';
if [ {wildcards.timeout} != \"None\" ]; then
(timeout --signal=SIGKILL {wildcards.timeout} bash -c '/myappdir/gobnilp/bin/gobnilp -f=dat -g={output.adjmat}.gobnilp.set {input.data}' || exit 0)
else
/myappdir/gobnilp/bin/gobnilp -f=dat -g={output.adjmat}.gobnilp.set {input.data};
fi
Expand Down

0 comments on commit 26363f5

Please sign in to comment.