Skip to content

Commit

Permalink
refactor: resolve merge conflicts take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ericblanc20 committed May 3, 2024
1 parent 57f6d3a commit 376a02c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions snappy_pipeline/workflows/somatic_variant_filtration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,13 @@ def _get_input_files_run(self, wildcards):
name_pattern = "{mapper}.{var_caller}"
if self.config["has_annotation"]:
name_pattern += ".{annotator}"
name_pattern += ".dkfz_bias_filter.{tumor_library}"
tpl = os.path.join("work", name_pattern, "out", name_pattern)
tpl = (
f"work/{name_pattern}."
"dkfz_bias_filter.{tumor_library}/"
f"out/{name_pattern}."
"dkfz_bias_filter."
"{tumor_library}"
)
key_ext = {"vcf": ".vcf.gz", "vcf_tbi": ".vcf.gz.tbi"}
for key, ext in key_ext.items():
yield key, tpl.format(**wildcards) + ext
Expand Down Expand Up @@ -728,11 +733,11 @@ def _get_output_files_run(self):
if self.config["has_annotation"]:
name_pattern += ".{annotator}"
# VCF file and index
prefix = os.path.join(
prefix = (
rf"work/{name_pattern}."
r"dkfz_bias_filter.eb_filter.{tumor_library,[^\.]+}/"
rf"out/{name_pattern}."
r"dkfz_bias_filter.eb_filter.{tumor_library}",
r"dkfz_bias_filter.eb_filter.{tumor_library}"
)
key_ext = {
"vcf": ".vcf.gz",
Expand Down

0 comments on commit 376a02c

Please sign in to comment.