Skip to content

Commit

Permalink
count for tmt mod when doing the alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
WassimG committed Nov 5, 2024
1 parent e6bdead commit a4074cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oktoberfest/predict/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def _prepare_alignment_df(
else:
groups = ["RAW_FILE"]

hcd_targets = library.obs.query("(FRAGMENTATION == 'HCD') & ~REVERSE & ~(MODIFIED_SEQUENCE.str.contains('UNIMOD'))")
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.sort_values(by="SCORE", ascending=False).groupby(groups)
if len(hcd_targets)<2000:
top_n= len(hcd_targets)*0.5
Expand Down

0 comments on commit a4074cd

Please sign in to comment.