-
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.
feat: clean-up manta. TODO: enable exome & rna
- Loading branch information
1 parent
5d11f31
commit ef6c75a
Showing
8 changed files
with
300 additions
and
55 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
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
6 changes: 6 additions & 0 deletions
6
snappy_wrappers/wrappers/manta/ignore_chroms/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,6 @@ | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- nodefaults | ||
dependencies: | ||
- htslib |
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,22 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Wrapper for running Manta in somatic variant calling mode on WGS data""" | ||
|
||
import os | ||
|
||
from snappy_wrappers.simple_wrapper import SimpleWrapper | ||
from snappy_wrappers.tools.genome_windows import ignore_chroms | ||
|
||
__author__ = "Eric Blanc" | ||
__email__ = "[email protected]" | ||
|
||
args = snakemake.params.get("args", {}) | ||
|
||
bed = str(snakemake.output.callRegions).replace(".gz", "") | ||
|
||
with open(bed, "wt") as f: | ||
for contig, length in ignore_chroms(str(snakemake.input.reference), set(args["ignore_chroms"]), return_ignored=False): | ||
print(f"{contig}\t0\t{length}", file=f) | ||
|
||
cmd=f"bgzip {bed} ; tabix {snakemake.output.callRegions}" | ||
|
||
SimpleWrapper(snakemake, cmd).run_bash() |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ channels: | |
- bioconda | ||
- nodefaults | ||
dependencies: | ||
- manta==1.5.0 | ||
- manta==1.6.0 | ||
- boost-cpp==1.85 |
Oops, something went wrong.