Skip to content
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

Skyline/work/20230710 add refine with shape correlation #2663

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

NateMG4
Copy link
Collaborator

@NateMG4 NateMG4 commented Jul 14, 2023

Added 2 parameters to the consistency tab of the RefineDlg. IncludedCutoff removes all transitions with a shape correlation below the cutoff value. QuantizationCutoff marks all transitions with a shape correlation below the value as non-quantitative.

image

@NateMG4 NateMG4 requested a review from nickshulman July 14, 2023 21:40
@brendanx67
Copy link
Contributor

brendanx67 commented Jul 17, 2023 via email

Copy link
Contributor

@nickshulman nickshulman left a comment

Choose a reason for hiding this comment

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

It looks like you've added a bunch of files (.sky, .blib, etc) in "TestData\Refine".
Usually we would put all these sorts of files inside of one .zip file.

pwiz_tools/Skyline/CommandArgs.cs Outdated Show resolved Hide resolved
pwiz_tools/Skyline/CommandArgUsage.resx Outdated Show resolved Hide resolved
pwiz_tools/Skyline/EditUI/RefineDlg.cs Outdated Show resolved Hide resolved
{
if (type == ComparisonType.min)
{
comparisonValue = chromInfos.Min(c => c.PeakShapeValues?.ShapeCorrelation);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this will end up doing the wrong thing if any of the shape correlation values are null.
For the purposes of "Min", "null" is considered lower than any other number.
However, in terms of "<" or ">", comparison of null to a number is always false.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for pointing this out. I changed the method to now check if shape correlation values are above the cutoff. If the method returns false the transition will be removed. Now when the comparison value is null the method will return false and the transition will be removed.

@nickshulman nickshulman self-assigned this Nov 27, 2023
Nicholas Shulman and others added 6 commits December 27, 2023 18:29
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