-
Notifications
You must be signed in to change notification settings - Fork 441
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 to 1.10, preparing for GTA #6162
Conversation
@pavanvidem not sure if you have seen it, but we also need a rebase here. |
mnnpy conda recipe needs update |
Please rebase this PR |
What do you mean with mnnoy update? What is broken? |
All tests pass now :D |
I removed
|
Try using numpy <2.0. Maybe that helps. |
my package versions are these:
|
I did rebase and resolved conflicts locally but still, here it said there was a conflict :( I reset back to my last commit. |
and update the other plotting params
The tests added from #6113 need a proper input file I guess.
|
Please don't merge. I'll add h5 assert. |
Co-authored-by: Pavankumar Videm <[email protected]>
I added the h5 assert. |
in filter.xml, the real output of |
What is wrong with the link? It was the same error with the previous link. |
No idea, but the preprint is published by now and you should link the final paper https://www.nature.com/articles/nbt.4314 |
Yes, it is is. Good catch! It also updates the anndata but tabular file is the actual output to test. Thanks! |
Yes, all those functions only update the count matrix, not the annotations. If we don't want to save the test data then check whether .X exists which should be there. I don't know what is a good test here. |
I added test for those. Is it good? |
<token name="@CMD_ANNDATA_WRITE_OUTPUTS@"><![CDATA[ | ||
adata.write_h5ad('anndata.h5ad', compression='gzip') | ||
with open('anndata_info.txt','w', encoding='utf-8') as ainfo: | ||
print(adata, file=ainfo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we are writing anndata info to a file and then to stdout. So for all tests where there are no changes in the annotations, you can also check the matrix size in stdout. Something like:
<assert_stdout>
<has_text_matching expression="336 × 11"/>
</assert_stdout>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean instead of the min() max() ...
?
But for those functions the matrix size does not change.
Only the values of adata.X is changed.
I used this assert for filter_cells/genes
and downsample
that the data size changes
@pavanvidem @bgruening |
Can you please check if this was fixed? #6302 Otherwise, good to merge. |
Actually, I didn't understand what was the issue there. Did the config file have a problem? or the adata was not defined? |
So many things have changed, I guess we can proceed. |
Almost all functions use this variable. I guess we don't have any problems with that. |
Agree. Let's proceed. The error was in the plot tool. None of the functions in the plot tool change the anndata object. So it should not affect the analysis. The worst thing that can happen is that no plot is generated which we can investigate later. |
Awesome! |
Thanks, @nilchia and @bgruening for helping out!! |
FOR CONTRIBUTOR: