-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7257f85
commit 8910805
Showing
5 changed files
with
384 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
snappy_wrappers/wrappers/gcnv/call_cnvs_case_mode/environment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../environment.yaml |
27 changes: 27 additions & 0 deletions
27
snappy_wrappers/wrappers/gcnv/call_cnvs_case_mode/wrapper.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from snakemake.shell import shell | ||
|
||
print("snakemake.input =", vars(snakemake.input)) | ||
|
||
shell( | ||
r""" | ||
set -x | ||
set -euo pipefail | ||
export TMPDIR=$(mktemp -d) | ||
trap "rm -rf $TMPDIR" ERR EXIT | ||
export MKL_NUM_THREADS=16 | ||
export OMP_NUM_THREADS=16 | ||
export THEANO_FLAGS="base_compiledir=$TMPDIR/theano_compile_dir" | ||
gatk GermlineCNVCaller \ | ||
--run-mode CASE \ | ||
--input {snakemake.input.tsv} \ | ||
--contig-ploidy-calls $(dirname {snakemake.input.ploidy})/ploidy-calls \ | ||
--model $(dirname {snakemake.input.interval_list_shard})/ploidy-model \ | ||
--output $(dirname {snakemake.output.done}) \ | ||
--output-prefix cnv_calls | ||
""" | ||
) |
Oops, something went wrong.