Skip to content

Commit 152d32d

Browse files
committed
fixed TODO Strings Returned as Real Variant Effect Values
1 parent f892561 commit 152d32d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

malariagen_data/veff.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,11 @@ def _get_within_intron_effect(base_effect, intron):
539539
effect = base_effect._replace(effect="INTRONIC", impact="MODIFIER")
540540

541541
else:
542-
# TODO intronic INDELs and MNPs
543-
effect = base_effect._replace(effect="TODO intronic indels and MNPs")
542+
if intron_min_dist <= 2:
543+
effect = base_effect._replace(effect="SPLICE_CORE", impact="HIGH")
544+
elif intron_min_dist <= 7:
545+
effect = base_effect._replace(effect="SPLICE_REGION", impact="MODERATE")
546+
else:
547+
effect = base_effect._replace(effect="INTRONIC", impact="MODIFIER")
544548

545549
return effect

0 commit comments

Comments
 (0)