Skip to content

Commit eac0dc5

Browse files
committed
Update incorrect ref allele test case. Refresh expected VCFs
1 parent 3e121be commit eac0dc5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed
283 Bytes
Binary file not shown.
283 Bytes
Binary file not shown.

tests/extras/test_annotate_vcf.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,17 @@ def test_annotate_vcf_rle(vcf_annotator: VcfAnnotator, vcr_cassette):
265265
assert "VRS_RepeatSubunitLengths" in deletion_variant.info
266266

267267
# Expected values for deletion RLE
268-
# REF should have length=2, repeatSubunitLength=1
269-
# ALT should have length=1, repeatSubunitLength=1
268+
# REF: AA uses RLE with length=2, repeatSubunitLength=2
269+
# ALT: A uses RLE with length=1, repeatSubunitLength=1
270270
vrs_lengths = deletion_variant.info["VRS_Lengths"]
271271
vrs_repeat_lengths = deletion_variant.info["VRS_RepeatSubunitLengths"]
272272
assert len(vrs_lengths) == 2 # REF and ALT
273273
assert len(vrs_repeat_lengths) == 2
274274
assert vrs_lengths == (2, 1) # REF: AA (length 2), ALT: A (length 1)
275-
assert vrs_repeat_lengths == (1, 1) # Both are single-base repeats
275+
assert vrs_repeat_lengths == (
276+
2,
277+
1,
278+
) # REF: AA as repeat unit of length 2, ALT: A as repeat unit of length 1
276279

277280
# Test variant 2: Duplication (CTTT>CTTTCTTT)
278281
# Expected: length=8, repeatSubunitLength=4
@@ -288,8 +291,8 @@ def test_annotate_vcf_rle(vcf_annotator: VcfAnnotator, vcr_cassette):
288291
assert "VRS_RepeatSubunitLengths" in duplication_variant.info
289292

290293
# Expected values for duplication RLE
291-
# REF should have length=4, repeatSubunitLength=4
292-
# ALT should have length=8, repeatSubunitLength=4
294+
# REF: CTTT uses RLE with length=4, repeatSubunitLength=4
295+
# ALT: CTTTCTTT uses RLE with length=8, repeatSubunitLength=4
293296
vrs_lengths = duplication_variant.info["VRS_Lengths"]
294297
vrs_repeat_lengths = duplication_variant.info["VRS_RepeatSubunitLengths"]
295298
assert len(vrs_lengths) == 2 # REF and ALT

0 commit comments

Comments
 (0)