Skip to content

Commit

Permalink
emit warning if synal matching fails
Browse files Browse the repository at this point in the history
  • Loading branch information
lrauschning committed Jun 27, 2024
1 parent fc89fc6 commit c58af6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions msyd/pyxfiles/pansyn.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ def match_synal(syn, aln, ref='a'):
alnr = next(alniter)[1]
except StopIteration:
break

if len(ret) <= 0.1*len(syn):
logger.error("Less than 10% of syns had a matching alignment! Check that syri was run on the same alignment as was provided!")
return pd.DataFrame(list(ret))


Expand Down

0 comments on commit c58af6a

Please sign in to comment.