Skip to content

Commit

Permalink
allow for multiple tmt mods
Browse files Browse the repository at this point in the history
  • Loading branch information
WassimG committed Nov 5, 2024
1 parent a4074cd commit e61be40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oktoberfest/predict/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _prepare_alignment_df(
groups = ["RAW_FILE"]

hcd_targets = library.obs.query("(FRAGMENTATION == 'HCD') & ~REVERSE)")
hcd_targets = hcd_targets[hcd_targets["MODIFIED_SEQUENCE"].str.match(r"^(?:[^U]*(?:\[UNIMOD:737\])?[^U]*)$")]
hcd_targets = hcd_targets[hcd_targets["MODIFIED_SEQUENCE"].str.match(r"^(?!.*UNIMOD(?!:737)).*$")]

hcd_targets = hcd_targets.sort_values(by="SCORE", ascending=False).groupby(groups)
if len(hcd_targets)<2000:
Expand Down

0 comments on commit e61be40

Please sign in to comment.