-
Notifications
You must be signed in to change notification settings - Fork 5
Update for plexDIA #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e656e55
fix test_commands.py
yueqixuan 0f09dd0
feat: enrich PyPI metadata with keywords and project URLs
ypriverol 541c426
fix: mTRAQ label
yueqixuan 330260c
update
yueqixuan 2469363
Merge pull request #79 from yueqixuan/main
ypriverol 9fb4d1e
Merge pull request #80 from yueqixuan/dev
ypriverol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 92
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 312
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 46
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 4163
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 1731
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 4533
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 279
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 46
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 168
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 933
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 633
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 1577
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 1640
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 46
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 1636
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 871
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 1521
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 46
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 1338
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 102
🏁 Script executed:
Repository: bigbio/quantms-utils
Length of output: 3222
Case-sensitive replacement will silently no-op for mTRAQ labels once multiplex support is enabled.
The multiplexing code (lines 185-199) currently appears unreachable:
dianncfg.py(line 106) marks multiplex support as a TODO and explicitly rejects multiplexed experiments (mTRAQ, TMT, iTRAQ, Dimethyl modifications) with an error message. However, the bug is real and will manifest once this feature is implemented.When enabled,
labels_lowerholds the lowercased values (for detection), but bothdf["Label"].replace(silac_dict)anddf["Label"].replace(mtraq_dict)match against the original casing ofdf["Label"]."SILAC light"/"SILAC medium"/"SILAC heavy"match the SDRF convention exactly — works only when the upstream file uses that exact casing."MTRAQ0"/"MTRAQ4"/"MTRAQ8"are all-caps, but the standard notation used throughout the codebase (e.g.,dianncfg.py) is"mTRAQ"(lowercasem). Once multiplex support is added and design files contain"mTRAQ0", the replacement will silently no-op — detection triggers, replacement fails to match,df["Label"]retains"mTRAQ0", and the downstream merge against DIA-NN'sChannelvalues ("0"/"4"/"8") produces all-NaN rows that are dropped, yielding an empty MSstats output.Fix: run the replacement on
labels_lower(already lowercase) using lowercase dict keys to ensure case-insensitive matching.🐛 Proposed fix
labels_lower = df["Label"].astype(str).str.lower() if labels_lower.str.contains("silac").any(): silac_dict = { - "SILAC light": "L", - "SILAC medium": "M", - "SILAC heavy": "H", + "silac light": "L", + "silac medium": "M", + "silac heavy": "H", } - df["Label"] = df["Label"].replace(silac_dict) + df["Label"] = labels_lower.map(silac_dict).fillna(df["Label"]) if labels_lower.str.contains("mtraq").any(): mtraq_dict = { - "MTRAQ0": "0", - "MTRAQ4": "4", - "MTRAQ8": "8", + "mtraq0": "0", + "mtraq4": "4", + "mtraq8": "8", } - df["Label"] = df["Label"].replace(mtraq_dict) + df["Label"] = labels_lower.map(mtraq_dict).fillna(df["Label"])Using
labels_lower.map(dict).fillna(df["Label"])performs case-insensitive lookup while preserving the original value for labels that do not match any key.🤖 Prompt for AI Agents