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 16, 2024
1 parent 1aac953 commit 18015ca
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 @@ -17,6 +17,7 @@ Added
- Use generic permission filters when filtering variants by related models
- Return only distinct ``VariantExperiment`` objects
- Add ``--bam-output`` input argument to ``vc-gatk4-hc``
- Add ``--max-mnp-distance`` input argument to ``vc-gatk4-hc``


===================
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 18015ca

Please sign in to comment.