Skip to content

Commit

Permalink
Update jabba.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxinye committed Jul 8, 2024
1 parent 6a9ce91 commit cfc5ec1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fABBA/jabba/jabba.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def symbolsAssign(clusters, alphabet_set=0):
'w', 'x', 'y', 'z']

elif isinstance(alphabet_set, list):
alphabets = alphabet_set
if len(clusters) <= len(alphabet_set):
alphabets = alphabet_set
else:
raise ValueError("Please ensure the length of ``alphabet_set`` is greatere than ``clusters``.")

else:
alphabets = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
Expand Down

0 comments on commit cfc5ec1

Please sign in to comment.