-
Notifications
You must be signed in to change notification settings - Fork 5
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
DAregion fails with confusing error message if no cells are DA #4
Comments
Some follow up. Replacing the line Replacing it with
|
Hi @HectorRDB, thank you so much for your interest in DAseq. Your tests are highly appreciated and I will update the code accordingly. |
Hi @JunZhao1990 Although this is an old thread and you addressed Hector's comment, I'd like to revisit the issue of running getDAregion() when there turn out to be no DA regions. I am running getDAregion() in a loop over several contrasts. My issue is that getDAregion() fails with an "Error: Must request at least one colour from a hue palette." when no DA regions are found. I'd like to catch that error so that the loop can continue to run over the remaining contrasts. I see two ways to address this:
Would you have a suggestion for how to handle this? Especially, how to determine from the getDAcells() results whether getDAregion() will fail or not? Thank you for any input - and for the DAseq package in the first place! Best regards, Anton |
Hi,
Thanks a lot for the tool! However, I found that the following fails
with error message
Error in
[<-(
tmp, ii, , value = getDAscore(cell.labels = cell.labels, : subscript out of bounds
. It was quite hard to troubleshoot what is going on simulations.Although I understand you would want users to check the output of
getDAcells
, it might be nice to just return a warning and an object with no da regions or something more informative.Best
The text was updated successfully, but these errors were encountered: