-
Notifications
You must be signed in to change notification settings - Fork 59
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
fixing rounding issue in min-max slider #1116
Conversation
…o be missing from the dynamic scatter plot
…o be missing from the dynamic scatter plot
…o be missing from the dynamic scatter plot
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.
We could also consider using floor
and ceiling
in order to round down (for the min_value) and up (for the max_value), respectively. Not sure if, for display purposes, an int number is preferred, e.g. if the min_value and max_value are displayed on the chart axes and sliders.
Yeah, @susannasiebert , I like the floor/ceiling suggestion because it looks a little cleaner on the slider. However, is the most clear option for users to set the max/min value to the actual min/max value in the dataset? So you can see the maximum and minimum values on the slider? |
I personally don't think they need to match. They can always retrieve the actual min max value by hovering over the appropriate datapoint, right? |
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.
Everything looks good to me. I agree with using floor and ceiling to have cleaner values displayed on the slider. I provided suggestions to add this
Co-authored-by: Luke Hendrickson <64616402+ldhtnp@users.noreply.github.com>
Co-authored-by: Luke Hendrickson <64616402+ldhtnp@users.noreply.github.com>
Co-authored-by: Luke Hendrickson <64616402+ldhtnp@users.noreply.github.com>
Co-authored-by: Luke Hendrickson <64616402+ldhtnp@users.noreply.github.com>
@mhoang22 encountered a problem where the dynamic scatter doesn't show all candidates for the custom module. In her pvacsplice output, there were 5 candidate groups (corresponding to 5 genes associated with the neoantigens). She expected to see 5 dots corresponding to the 5 candidate groups. However, only saw 3 candidates. When examining the ‘Overview of Neoantigen Features’ board again, it looks like the 2 candidate groups with extreme VAF values (1st candidate: gene ATG12: tumor DNA VAF 0.432 , tumor RNA VAF 0.387; 5th candidate: gene TP53: tumor DNA VAF 0.852, tumor RNA VAF 0.998) are the missing candidates. If she natural-logged transformed both x and y axis, then she could see 5 candidates. She concluded that there was a reason that candidates with edge values were being excluded.
I found that these edge cases were being missed because of the rounding that happens to create the min-max slider. The range used for the min-max slider was originally rounded and now is just set as the dataset min/max.
pVACtools/pvactools/tools/pvacview/server.R
Lines 2120 to 2121 in efc101f
So the change looks like this:
pVACtools/pvactools/tools/pvacview/server.R
Lines 2117 to 2118 in ef27b63