Skip to content

Conversation

bspratt
Copy link
Member

@bspratt bspratt commented Feb 5, 2025

The feature finding code uses spectral libraries in an unconventional manner - entries don't have any fragments, just the precursor info. This tripped up the AutoManage code, specifically the use of TransitionSettings.Libraries.MinIonCount. Now we treat libraries with score type ScoreType.HARDKLOR_IDOTP as being immune to that particular filter.

I can't help but wonder if there isn't a more general way to deal with this, though

…ries in an unconventional manner - entries don't have any fragments, just the precursor info. This tripped up the AutoManage code, specifically the use of TransitionSettings.Libraries.MinIonCount. Now we treat libraries with score type ScoreType.HARDKLOR_IDOTP as being immune to that particular filter.
Copy link
Contributor

@brendanx67 brendanx67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally good. Little bit of cleanup.

@brendanx67
Copy link
Contributor

Also, there should be a test that confirms the new code works as expected.

@bspratt
Copy link
Member Author

bspratt commented Feb 6, 2025

Also, there should be a test that confirms the new code works as expected.

Right - a small modification to the existing test should take care of that, thanks

…es.MinIonCount to a nonzero value to demonstrate that the fix works.

Improve a couple of comments in the code per Brendan review.
Tweak the language around "no features detected" per Brendan review.
@bspratt
Copy link
Member Author

bspratt commented Feb 6, 2025

@brendanx67 This should be good to go now. Probably worth backporting to release, too.

@brendanx67
Copy link
Contributor

Looks like your new code may cause a NRE in TestSrmTutorialLegacy. Check the TeamCity log for Tutorials and Perf tests.

@bspratt
Copy link
Member Author

bspratt commented Feb 10, 2025

Yeah, it's hitting a null value for nodeGroup.LibInfo.ScoreType - certainly I can add a null check here, but would it be better to handle that at the LibInfo constructor and set it to ScoreType.UNKNOWN when null is proposed?

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.

3 participants