-
Notifications
You must be signed in to change notification settings - Fork 64
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
ENH Remove count DataFrame from calculate_cooks #292
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
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.
Hi @asistradition , thanks a lot for this PR. I was wondering how important it was to you that we put _mu_LFC
and _hat_diagonals
in the obsm
and not in the layers. I agree it makes sense not to store useless nan values. However, fundamentally, these matrices are more layers than simply obsm
(we always have this issue between objects restricted to non zero genes and objects defined on all genes, ideallly we would like to have a layers field restricted to non zero genes but we don't). However, if you experience significant memory differences by keeping it in the layers, I will accept !
The main advantage to using As those keys are only used in |
for more information, see https://pre-commit.ci
Also includes an optional |
Thanks @asistradition for this PR! I agree with @umarteauowkin that on principle storing |
What does your PR implement? Be specific.
calculate_cooks
castsnormed_counts
into a pandas DataFrame forrobust_method_of_moments_disp
. This is memory inefficient for large data.robust_method_of_moments_disp
has been refactored to accept an ndarray directly and the DataFrame has been removed. There is no numerical change as a result.