Skip to content

Commit

Permalink
Do not allow single char modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
wukevin committed Sep 10, 2024
1 parent 31661f6 commit 7fae6b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chai_lab/data/parsing/input_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def constituents_of_modified_fasta(x: str) -> list[str] | None:
elif letter == ")":
if current_modified is None:
return None # closed without opening
if len(current_modified) == 0:
return None # empty modification: ()
if len(current_modified) <= 1:
return None # empty modification: () or single (K)
constituents.append(current_modified)
current_modified = None
else:
Expand Down

0 comments on commit 7fae6b7

Please sign in to comment.