Skip to content

Commit

Permalink
Update psm_conversion.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daichengxin committed Jul 16, 2024
1 parent 1246727 commit d34ee73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/psm_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@


def mods_position(peptide):
if peptide.startswith("."):
peptide = peptide[1:]
pattern = re.compile(r"\((.*?)\)")
original_mods = pattern.findall(peptide)
peptide = re.sub(r"\(.*?\)", ".", peptide)
Expand Down

0 comments on commit d34ee73

Please sign in to comment.