-
Notifications
You must be signed in to change notification settings - Fork 46
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
Error in validateInputs #38
Comments
Without a simple, reproducible example, I can't offer much help. Can you simplify your script down to something like the plots in the It also may help to draw out on a whiteboard the particular case that you're trying to plot. Does the nesting of samples make sense? If you annotate your drawing with fractions, is it an impossible situation (one where the fraction of all the clones doesn't "fit" into the 100% that can possibly be taken up by a tumor? |
Hi again, Sorry for the messy question. I can remember rushing last week to ask this question before going home. Basically I looked into things a bit further and found that when fix.missing.clones=TRUE it adds in small numbers instead of 0s (as it says in your documentation). However, this is causing failure in the ValidateInputs function. So for clones at the same nest levels they add up to 100.0000002 causing the error. This also causes the sum of clones at the same nest level to become marginally larger than the parent also causing an error. I was wondering if there's a simple fix for this? All the best, |
Ah, that makes sense. Fishplot is qualitative, not completely quantitative, as it's inferring data between the timepoints to make things look pretty. The easy solution would be to just subtract a very small amount from your input numbers to offset the very small amount being added. A more comprehensive solution would be to update the section that adds the small numbers such that it subtracts a corresponding amount from the parent clone. I'd welcome a pull request to that effect, or will add it to my to do list. Sorry that it's created some confusion, and thanks for chasing down the problem! |
No problem, I have changed some of my samples to fix this problem. How long is your to do list? I could have a go at implementing a solution if you want me to open a request. |
Always longer than I'd like 😆 If you want to take a stab at it, that would be the most expedient way, and I'm happy to take a look at a proposed solution for merging! |
Yeah i'll give it a crack. I tried to open a request but no luck. If you could allow me I'll try make the changes :). |
To do that, I think you need to fork the project to your own github, make some changes and commit them, then open a PR. If that doesn't work, let me know and we can try to troubleshoot. Thanks! |
hi I just wanted to know is it possible to build fisplots on the genes and frequency basis, I don't have information about the cluster ids or clones to generate parents' vector. Could you please help me with that.. |
Hi there,
I'm currently trying something really niche with fishplot. I'm trying to make fishplots from the output of pairtree. I have formatted the data according to what is specified. My samples drop to 0 across timepoints but this is expected with what i'm working with and fix.missing.clones=TRUE is selected in the settings.
The main error is:
Error in eval(ei, envir) : clones with same nest level cannot have values that sum to more than 100%: Problem is in clusters 2,5,10,11,13
I went into the source code and built the validateInput function (the part where it's failing anyway) into my code then corrected the sample where it was going wrong. The frac.table at this point has been corrected (when originally 101% the clustered added to 100%). The error still occurs though.
Apologies for the scrappy code, i've been trying just about everything to get it to work. It's frankensteined together from some issues on the pairtree github :D so credit goes to them. I can send the files over if necessary.
All the best,
Lewis
The text was updated successfully, but these errors were encountered: