Muting errors that may arise from statistical tests#9
Muting errors that may arise from statistical tests#9vhorvath wants to merge 1 commit intotgac-vumc:masterfrom
Conversation
|
Hi Viktor, Thanks for reporting on this issue and suggesting a solution. To be honest, I have to brush up on my Git skills to see how and if I take over these changes. But I would also like to have a look at the errors before making any changes. So let me try to understand the problem first. Are you trying to do twosamplecompare on copynumber templates that have exactly identical values for all the bins in the segments, so that you get the "data are essentially constant" error? I suppose there is a use for twosamplecompare to just plot the two samples and not have associated tests. But if that is the case, it is perhaps more useful to add a function that is better equipped to plot multiple samples (I have some code ready for this, but did not add it to the package yet). Perhaps you can better inform me on your use case. Cheers, Jos |
|
Thanks! That is a very peculiar example! I will try to get to the bottom of it. Either way, I like your error handling, so I think I might adopt it that way. I think in terms of version bumps it might be okay since it is now applied to the devel version. Perhaps this is also a good opportunity for me to add some more recent functionality that I have been working on. Hopefully I will find the time in the next few weeks (but I have some time until the next Bioconductor release). Thanks again, and I will leave this open until I actually implement it ;-) |


Came across this useful package and as I was playing around with
cellularityparameters in thetwosamplecomparefunction I ran into a few errors, where some segments would fail thet.test()orwilcox.test().The error is that the values these tests are supposed to be ran on are technically identical and therefore the tests throw an error. However, this prevents the tests from completing, the function has no error handling for this scenario.
This PR provides a way to silence these errors. Since errors may arise from other sources than feeding improper data, and R does not provide a formal mechanism for testing for a specific error with these tests a toggle is provided so that the errors can be inspected for debugging purposes.
Note this is a quick fix and should be evaluated on more datasets, the man page has also been updated accordingly.