Skip to content

Commit

Permalink
removing warning
Browse files Browse the repository at this point in the history
It pops up too much
  • Loading branch information
ACEnglish committed Feb 2, 2025
1 parent 3fdeeef commit 72a530b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions truvari/phab.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,9 @@ def make_haplotypes(sequence, entries, o_samp, ref, start, sample):
Given a reference sequence, set of entries to incorporate, sample name, reference key, and reference start position
Make the two haplotypes
"""
unphased_warn = False
haps = (list(sequence), list(sequence))
correction = [-start, -start]
for entry in entries:
if not unphased_warn and not entry.samples[sample].phased:
logging.warning("Harmonizing unphased variants may have undesired behavior!!")
unphased_warn = True
if entry.samples[sample]['GT'][0] == 1:
correction[0] = incorporate(haps[0], entry, correction[0])
if len(entry.samples[sample]['GT']) > 1 and entry.samples[sample]['GT'][1] == 1:
Expand Down

0 comments on commit 72a530b

Please sign in to comment.