-
Notifications
You must be signed in to change notification settings - Fork 47
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
Optional Digestion Count Output #2460
Merged
nbollis
merged 19 commits into
smith-chem-wisc:master
from
nbollis:DigestionCountsInOutput
Feb 4, 2025
Merged
Optional Digestion Count Output #2460
nbollis
merged 19 commits into
smith-chem-wisc:master
from
nbollis:DigestionCountsInOutput
Feb 4, 2025
Conversation
This file contains 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
Added a generic Increment method to DictionaryExtensions.cs that increments the value of a specified key or initializes it to one if the key does not exist. Included XML documentation for the method. Updated DictionaryExtensionsTests.cs with unit tests covering various scenarios for the Increment method.
Added IsNullOrEmpty method to DictionaryExtensions.cs to check if a dictionary is null or empty. Included XML documentation for the method. Added unit tests in DictionaryExtensionsTests.cs to verify the method's behavior for null, empty, and non-empty dictionaries.
Introduced functionality to track and write digestion product counts for proteins during a search task. Key changes include: - Made `DigestionCountDictionary` a public readonly field in `ClassicSearchEngine.cs` and adjusted the constructor accordingly. - Added an internal property `DigestionCountDictionary` in `PostSearchAnalysisTask.cs` and implemented methods to write counts to .tsv files. - Modified `SearchTask.cs` to initialize and pass `digestionCountDictionary` to `PostSearchAnalysisTask`. - Added tests in `PostSearchAnalysisTaskTests.cs` to verify the correct writing of digestion counts and histograms.
2f089fc
to
4429039
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2460 +/- ##
========================================
Coverage 93.89% 93.90%
========================================
Files 146 147 +1
Lines 22206 22320 +114
Branches 3059 3076 +17
========================================
+ Hits 20851 20960 +109
- Misses 906 909 +3
- Partials 449 451 +2
|
I don't understand the figures shown. If the max is 1024, how does the x-axis go out to 2000 or 3000? |
Alexander-Sol
requested changes
Jan 29, 2025
Alexander-Sol
requested changes
Jan 30, 2025
Updated `DigestionCountDictionary` to track by protein accession and base sequence. Modified `PostSearchAnalysisTask` and `SearchTask` to use the new type. Updated file output logic to include primary sequence and added checks for `WriteDecoys` parameter. Enhanced unit tests to reflect these changes and added new tests for decoy handling.
Alexander-Sol
approved these changes
Feb 3, 2025
RayMSMS
approved these changes
Feb 4, 2025
zhuoxinshi
approved these changes
Feb 4, 2025
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.
PR Summary
New feature to track and output the number of digestion products from each protein during a classic search.
The number of digestion products that are generated per protein accession is a function of MaxModifiedIsoforms, MaxModsPerPeptide, Initiator Methionine behavior, and splice variants.
Detailed Changes
Introduced functionality to track and write digestion product counts, including GUI updates and new methods for output files.
ClassicSearchEngine
: Added tracking of digestion counts and methods to retrieve and increment counts.SearchTaskWindow.xaml
: Added checkbox for enabling digestion count tracking.PostSearchAnalysisTask
: Added methods to write digestion counts and histograms to.tsv
files.DictionaryExtensions
: Created extension methods for dictionary operations.PostSearchAnalysisTaskTests.cs
andSearchEngineTests.cs
for new features.Figures
These output files will only be generated when the option is checked deep in the advanced parameters of the search task window.