-
Notifications
You must be signed in to change notification settings - Fork 28
changed threshold of 4 to 15 #688
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -548,7 +548,7 @@ public void SetMS2RawSpectrumIDs2ChromatogramPeakFeature(ChromatogramPeakFeature | |||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| public List<ChromatogramPeakFeature> GetBackgroundSubtractedPeaks(List<ChromatogramPeakFeature> chromPeakFeatures, IReadOnlyList<IChromatogramPeak> peaklist) { | ||||||||||||||||||
|
||||||||||||||||||
| public List<ChromatogramPeakFeature> GetBackgroundSubtractedPeaks(List<ChromatogramPeakFeature> chromPeakFeatures, IReadOnlyList<IChromatogramPeak> peaklist) { | |
| public List<ChromatogramPeakFeature> GetBackgroundSubtractedPeaks(List<ChromatogramPeakFeature> chromPeakFeatures, IReadOnlyList<IChromatogramPeak> peaklist) { | |
| // `counter` counts how many local spike pairs have noise (0.5 * |spikeMax - spikeMin|, scaled by 3) | |
| // comparable to or larger than the peak amplitude difference (`ampDiff`). Peaks with too many such | |
| // high-noise events are treated as background and removed. The threshold of 15 was chosen empirically | |
| // to suppress peaks originating from highly noisy chromatographic regions, at the cost of slightly | |
| // reduced sensitivity for very small peaks. Lowering this value will retain more peaks (more sensitive | |
| // but more noise), while increasing it will make the background subtraction more stringent. |
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.
The threshold change from 4 to 15 creates an inconsistency with the similar implementation in MsdialImmsCore/Algorithm/PeakSpotting.cs which uses a constant SPIKE_COUNT_THRESHOLD set to 4. Consider whether both implementations should use the same threshold value, or if the difference is intentional due to different processing requirements. If the values should differ, consider adding comments explaining why.