Skip to content

Commit

Permalink
truvari anno trf compatible with adotto v1.2.1
Browse files Browse the repository at this point in the history
Looks for 'motif' and 'repeat' key from json
  • Loading branch information
ACEnglish committed Oct 24, 2024
1 parent a1521c1 commit 0817fab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified repo_utils/test_files/beds/repeats.adotto.bed.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion truvari/annotations/trf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self, region, reference, motif_similarity=0.90, buf=5):
self.region = region
self.reference = reference
self.motif_similarity = motif_similarity
self.known_motifs = {_["repeat"]: _["copies"]
self.known_motifs = {_["repeat"] if "repeat" in _ else _["motif"]: _["copies"]
for _ in self.region["annos"]}
self.buffer = buf

Expand Down

0 comments on commit 0817fab

Please sign in to comment.