Skip to content

Conversation

nickshulman
Copy link
Contributor

A user had a document where Skyline was not detecting the peak which was clearly the absolute largest one visible, and which also did not overlap with any of the other candidate peaks:
https://skyline.ms/announcements/home/support/thread.view?rowId=68758

The problem is that Skyline first decides how many peaks to keep based on how many peaks are significantly larger than the rest of the detected peaks. Skyline decided to keep 3 peaks.
Then, Skyline sorts all of the detected peaks by "Combined Score".
One of the smaller peaks that was slated to be rejected ended up with a higher Combined Score than the largest peak that had been detected.
There was code to make sure that any peak with a higher combined score than the initially big peaks would be kept, but I am pretty sure there was supposed to be a "+ 1" in there so that all of the peaks which were initially the largest are also kept, because otherwise this thing ends up happening.

Also, when writing the unit test I ran into the problem that the "has_midas_spectra" attribute is declared on the wrong element in the .xsd files.
This does not cause a failure in the MIDAS tests because a method called "UnflagFiles" ends up removing that attribute before the end of the test. I'll try to figure out what is going on with that.

@nickshulman nickshulman requested a review from brendanx67 March 26, 2025 17:45
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.

1 participant