Skip to content

Intensity Less Than and Greater Than actually working#254

Open
mwang87 wants to merge 4 commits intomasterfrom
intensity-percentage
Open

Intensity Less Than and Greater Than actually working#254
mwang87 wants to merge 4 commits intomasterfrom
intensity-percentage

Conversation

@mwang87
Copy link
Owner

@mwang87 mwang87 commented Mar 13, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to make MassQL intensity qualifiers respect comparator operators (>, <, =) end-to-end by parsing the operator in the parser and applying it consistently in the engine’s intensity filtering.

Changes:

  • Extend the parser to capture the qualifier comparator operator (equal, greaterthan, lessthan).
  • Introduce _get_intensity_mask() and replace legacy “minimum intensity” filtering with comparator-aware masking across MS1/MS2 filtering paths.
  • Add a development-oriented test that exercises >, <, and = intensity queries on an MGF fixture.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
tests/test_agent_dev.py Adds a development test for GT/LT/EQ intensity comparator behavior on MGF data.
massql/msql_parser.py Captures the comparator operator for qualifier leaves into the parsed JSON.
massql/msql_engine_filters.py Adds comparator-aware intensity masking and applies it to MS1/MS2 filtering paths.
massql/msql_engine.py Switches variable-query filtering and MS2 execution filtering to use _get_intensity_mask().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

)

# Equality should usually be narrower than broad threshold matching.
assert scans_eq != scans_gt or scans_eq != scans_lt
Comment on lines +153 to +154
else:
qualifier_dict[qualifier_type]["comparator"] = "equal"
mwang87 and others added 3 commits March 12, 2026 21:36
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants