Skip to content

Commit

Permalink
Fixed datatype mismatch in multiple_alleles func
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskiil committed Dec 12, 2024
1 parent f02900f commit 8e8a5e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bifrost_chewbbaca/datadump.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ def call_percent(calls):


def multiple_alleles(calls):
return round(
len([x for x in calls if x.startswith("NIPH") or x.startswith("NIPHEM")])
)
multi_allele_codes = set("NIPH","NIPHEM")
return len([x for x in calls if x in multi_allele_codes])

def schema_digest(locus_names, alg=md5):
hash = alg("\t".join(locus_names).encode())
Expand Down

0 comments on commit 8e8a5e7

Please sign in to comment.