Skip to content

Commit

Permalink
fix: GenotypesTR to properly load repeat count instead of GT (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlamkin7 authored May 16, 2023
1 parent 3740ec1 commit 93a4eb2
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 441 deletions.
4 changes: 2 additions & 2 deletions haptools/clump.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ def ComputeExactLD(candidate_gt, index_gt, log):

def _FilterGts(candidate_gt, index_gt, log):
"""
Filter invalid values from gts which is 255 since uint8 encodes -1 as 255
Filter invalid values from gts which is 254 since uint8 encodes -2 as 254
"""
valid_gts = (candidate_gt < 255) & (index_gt < 255)
valid_gts = (candidate_gt < 254) & (index_gt < 254)
candidate_gt = candidate_gt[valid_gts]
index_gt = index_gt[valid_gts]

Expand Down
Loading

0 comments on commit 93a4eb2

Please sign in to comment.