galaxyproject / tools-iuc Public
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
Update scanpy filter, fixes crashes on scanpy tutorial data #3485
Conversation
This reverts commit 78492c9.
Fix scapy normalize tests
|
Minor hiccup in scanpy plot should be fixed in theislab/scanpy#1654. I should be able to patch that in. |
Otherwise this falls back to the last plotted layout, which is not a good thing for reprodcubility or transparency.
This likely corrects a fixed bug in the anndata version that produced this file. See theislab/scanpy#1656 (comment)
|
Alright, at this point only scanpy plot fails, which should be fixed in theislab/scanpy#1654, theislab/scanpy#1669 and theislab/scanpy#1655 |
|
@mvdbeek thanks for all the fixes, it really looks like you've improved the upstream too. I'm free this weekend and a little bit of next week to help here if needed. Is this PR just waiting for 1669 to merge before it is complete, or is there more to do? |
|
Can I help on anything with this as well? We have a need for this for a training that we have on the second half of April. Thanks! |
|
Thanks @pcm32 for pushing this forward! |
|
Okay, so the last error that I'm stuck with is: This one is theislab/scanpy#1669 and is probably specific to anndata objects without .raw attributes. I don't know enough to judge how common this is. If it is not common we can exchange the test data (the pbmc68k dataset does not have this problem), but it seems like this is supposed to work. @mtekman @pcm32 do you know what's up with the .raw attributes ? |
|
I think it can be fairly common not to have .raw, but what you often see in these cases where .raw is not available is that people copy data into .raw before. So we could check for that and do that copy if .raw is not available, maybe with a checkbox in the UI for "Copy data to .raw if .raw is not available?" and maybe handling the error to provide a more explicit explanation that the .raw is missing. I will ask some people to chip in who know more. |
|
I'm hearing from others who use AnnData more than I do that they would find surprising not to find a .raw, in case it helps. |
|
Yeah raw is definitely mentioned in the tutorials, and I use it a lot too |
I suppose that's not just |
|
Sorry, it is |
|
It's And yep, happy to drop the rank genes plot for now -- for the PBMC tutorial above (use in the training), it's not that useful |
|
OK, both didn't work, so going with disabling the plot now. |
|
This sounds good! I think there is usually a .raw, I couldn't actually tell you how to make it not exist, and also that's not the most useful plot in the world so binning it for now seems solid |
The code changes are fantastic, cannot thank you enough.
The h5ad files for the recipes seem to be empty, which I can live with -- but I am wondering about the the empty files for the violin and UMAP plots
|
Thanks @mvdbeek for all these improvements! For reference on the
|
|
Thanks @pcm32. I think theislab/scanpy#1669 is in the right thing to do. It's an issue in scanpy that is not specific to anndata without |
Are you sure this is not the github UI being misleading ? None of the files in test-data are empty |
|
You're right -- this looks good |
|
I think it would help to @nomadscientist's training anxieties :-) if we can merge this with the missing plot and then add it later once the base scanpy issue is fixed and released. Unless that we see this affecting other parts of the plotting or tools in this PR (but I don't see it at least). |
|
there is a workshop on thursday which will need these, second that |
|
Thanks, everyone! |
Fixes
... which you can only see if you remove the stderr redirect.
I didn't touch the stderr redirect, but this should probably be either removed or replaced with tee.FOR CONTRIBUTOR:
The text was updated successfully, but these errors were encountered: