Fix/modification writing - #3
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request introduces UniMod modification reannotation support, improves CLI usability by making config files optional, updates model paths, and enhances decoy handling. The implementation adds a new unimod module that parses the UniMod XML database and converts mass-bracket notation to UniMod accession notation in output files.
Changes:
- Added UniMod modification reannotation with embedded database support and custom XML file loading
- Made JSON config file optional for CLI execution, with sensible defaults when omitted
- Updated default pretrained model paths from nested to flatter directory structure
- Enhanced decoy handling by consistently prefixing decoy tags to protein IDs, UniProt IDs, and gene names
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| easypqp-core/src/unimod.rs | New module implementing UniMod XML parsing and mass-bracket-to-UniMod reannotation |
| easypqp-core/src/lib.rs | Added four new configuration parameters for UniMod reannotation with defaults |
| easypqp-core/Cargo.toml | Added quick-xml dependency for XML parsing |
| easypqp-cli/src/runner.rs | Integrated UniMod database initialization with graceful error handling |
| easypqp-cli/src/output.rs | Applied UniMod reannotation, N-terminal dash cleanup, and decoy tag prefixing to both TSV and Parquet outputs |
| easypqp-cli/src/input.rs | Made config file optional, added UniMod parameter overrides, updated default model paths |
| easypqp-cli/src/main.rs | Changed parameters argument from required to optional in CLI |
| easypqp-py/src/lib.rs | Extended Python binding signature with four new UniMod-related parameters |
| README.md | Documented new UniMod parameters, updated supported architectures, added decoy handling section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces several enhancements and usability improvements to the in-silico peptide query parameter generation tool, with a focus on support for UniMod modification reannotation, improved configuration flexibility, and clearer decoy handling. It also updates documentation and model architecture references to reflect these changes.
Major new features and improvements:
UniMod modification reannotation:
[+57.0215]) to UniMod accessions (e.g.,(UniMod:4)) using an embedded or custom UniMod XML database. New parameters includeunimod_annotation,max_delta_unimod,enable_unannotated, andunimod_xml_pathfor fine control over this behavior. [1] [2] [3] [4] [5] [6] [7]Configuration and CLI usability:
Model architecture and pretrained model paths:
rt_cnn_lstmandccs_cnn_lstminstead of older LSTM/Transformer models).Decoy handling improvements:
decoy_tag(default:"DECOY_") consistently prefixed toProteinId,UniprotId, andGeneNamefields in both TSV and Parquet outputs, making decoy entries easy to identify in downstream analysis. [1] [2] [3] [4] [5]Other enhancements:
These changes collectively improve the tool’s flexibility, output clarity, and ease of use.