Skip to content

Commit

Permalink
Add --max-mnp-distance input argument to vc-gatk4-hc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellevstek committed Dec 10, 2024
1 parent 9170a0e commit 46c6576
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Added
-----
- Add filtering ``Variant`` by ``VariantExperiment`` and ``VariantCall``
- Add ``--bam-output`` input argument to ``vc-gatk4-hc``
- Add ``--max-mnp-distance`` input argument to ``vc-gatk4-hc``

Changed
-------
Expand Down
8 changes: 8 additions & 0 deletions resolwe_bio/processes/variant_calling/gatk4_hc.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ class Advanced:
],
disabled="!bam_out",
)
max_mnp_distance = IntegerField(
label="Max MNP distance",
default=0,
description="Two or more phased substitutions separated by this distance or less are merged into MNPs. "
"Set 0 to disable.",
)

advanced = GroupField(Advanced, label="Advanced options")

Expand Down Expand Up @@ -180,6 +186,8 @@ def run(self, inputs, outputs):
inputs.stand_call_conf,
"--tmp-dir",
TMPDIR,
"--max-mnp-distance",
inputs.advanced.max_mnp_distance,
]

if inputs.advanced.soft_clipped:
Expand Down

0 comments on commit 46c6576

Please sign in to comment.