-
Notifications
You must be signed in to change notification settings - Fork 270
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
oncoprint - allow adding gaps to string-valued clinical tracks #2926
Conversation
c906aee
to
fdc8748
Compare
Nice! Could you connect the issue and use closing keywords in the comment. |
For this query, if you sort by Sex and then Show gaps, the gap is not in the right place. |
@jjgao fixed the issue. It was an interesting bug: I determine the position of each column in the shader, part of this is a binary search which checks the list of gap locations to figure out how many gaps are before a column. Here's where it gets tricky - the shader language does not allow while loops. So instead I was using a for loop and estimating the number of loops I would need, at maximum, to fully execute the binary search. I made an error there and so the binary search was terminating too early in this case and not computing the right offset. I fixed it by rewriting the for loop like this |
In most languages for is just syntactic sugar for while
equals
So any while-true-loop can be written as I am wondering about the |
@Sjoerd-van-Hagen the issue is that webgl shader language has very specific rules, including that |
b33a3cf
to
1e3028c
Compare
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <[email protected]>
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <[email protected]>
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <[email protected]>
closes cBioPortal/cbioportal#3336