Skip to content

Commit

Permalink
code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ACEnglish committed Jan 11, 2024
1 parent 521e01b commit fbfba13
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion truvari/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ def write_match(self, match):
Writer is responsible for handling FPs between sizefilt-sizemin
"""
box = self.stats_box
skip = False
if match.base:
box["base cnt"] += 1
annotate_entry(match.base, match, self.n_headers['b'])
Expand Down
2 changes: 1 addition & 1 deletion truvari/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def entry_is_filtered(entry, values=None):
def entry_is_present(entry, sample=None, allow_missing=True):
"""
Checks if entry's sample genotype is present and is heterozygous or homozygous (a.k.a. present)
If allow_missing, just check for a 1 in the genotype. Otherwise, a missing ('.') genotype isn't
If allow_missing, just check for a 1 in the genotype. Otherwise, a missing ('.') genotype isn't
considered present
:param `entry`: entry to check
Expand Down
2 changes: 1 addition & 1 deletion truvari/consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def parse_vcf(fn, no_dups=False):
is_dup = key in seen
if no_dups and is_dup:
continue
elif is_dup:
if is_dup:
key += f".{str(seen[key])}"
seen[key] += 1
yield key
Expand Down

0 comments on commit fbfba13

Please sign in to comment.