Skip to content

Commit 81e9b60

Browse files
committed
fixed bug in control-sample truncation
1 parent a6964f2 commit 81e9b60

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

samplot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env python
2-
__version__ = "1.0.20"
2+
__version__ = "1.0.21"

samplot/samplot_vcf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,9 @@ def vcf(parser):
599599
for i, gt in enumerate(gts)
600600
if len(gt) == 2 and gt[0] == 0 and gt[1] == 0
601601
]
602+
602603
if len(hom_ref_idxs) > 3:
603604
random.shuffle(hom_ref_idxs)
604-
hom_ref_idxs = hom_ref_idxs[:3]
605605

606606
hom_ref_samples = []
607607
for i in hom_ref_idxs:

0 commit comments

Comments
 (0)