Skip to content

Commit 9ed4741

Browse files
authored
Merge pull request #1046 from ZiadXI/GH1045-non-synonymous-start-stop
Clarify comment: NON_SYNONYMOUS_START/STOP already covered by existing effects
2 parents 79c38ce + 9cf73b2 commit 9ed4741

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

malariagen_data/veff.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,15 @@ def _get_within_cds_effect(ann, base_effect, cds, cdss):
356356
effect = base_effect._replace(effect="STOP_GAINED", impact="HIGH")
357357

358358
else:
359-
# TODO NON_SYNONYMOUS_START and NON_SYNONYMOUS_STOP
360-
361359
# variant causes a codon that produces a different amino acid
362360
# e.g.: Tgg/Cgg, W/R
361+
# N.B. NON_SYNONYMOUS_START and NON_SYNONYMOUS_STOP from the SnpEff
362+
# taxonomy do not require separate handling here. Any start codon
363+
# mutation that changes the amino acid is already classified as
364+
# START_LOST (when ref_aa == "M"). Any stop codon mutation that
365+
# changes the amino acid is already classified as STOP_LOST or
366+
# STOP_GAINED. There is no reachable case that falls through to here
367+
# with ref or alt at a start or stop codon position.
363368
effect = base_effect._replace(
364369
effect="NON_SYNONYMOUS_CODING", impact="MODERATE"
365370
)

0 commit comments

Comments
 (0)