Skip to content

Commit b0bd0ba

Browse files
committed
merge change to extract_haplotype_read_counts.py from development branch
1 parent 0ce63eb commit b0bd0ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CHT/extract_haplotype_read_counts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ def set_snp_counts(data_files, region_list, snps, test_snp, options):
376376
snp.ref_hap_count = alt_count
377377
snp.alt_hap_count = ref_count
378378
else:
379-
raise ValueError("expected haplotype to be defined")
379+
# haplotypes are undefined at this position
380+
snp.ref_hap_count = 0
381+
snp.alt_hap_count = 0
380382

381383

382384

0 commit comments

Comments
 (0)