Skip to content

no extra anndata #179

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

Open
wants to merge 8 commits into
base: ig/seruat_compat
Choose a base branch
from
Open

no extra anndata #179

wants to merge 8 commits into from

Conversation

flying-sheep
Copy link
Member

@flying-sheep flying-sheep commented Jun 16, 2025

This still needs some checking, I did this mostly blindly (where I didn’t you see that I modified the text)

I also didn’t verify that setting non-HVGs to nan and then doing regression is

  1. necessary, or
  2. yields the expected results

once we know, maybe we can e.g. add a mask to regress_out.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@flying-sheep flying-sheep requested a review from ilan-gold June 16, 2025 15:39
@ilan-gold
Copy link
Contributor

necessary

What do you mean by this? It seems necessary in so far as the results match and means we don't need a separate object.

Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

ilan-gold commented on 2025-06-17T08:02:41Z
----------------------------------------------------------------

Would rename the layer something like "scaled_hvg" just to make it crystal clear what's going on


@flying-sheep
Copy link
Member Author

flying-sheep commented Jun 17, 2025

It seems necessary in so far as the results match and means we don't need a separate object.

I meant that I didn't actually check if the regression yields different results without the kludgy "masking" I'm doing here.

I'll do that!

@ilan-gold
Copy link
Contributor

I'll do that!

Ok, can't hurt, But visually the results look the same so I was going on that. Good on you for being thorough haha :)

@flying-sheep
Copy link
Member Author

flying-sheep commented Jun 17, 2025

OK, setting the nans is not actually necessary.

and with rank_genes_groups' parameter mask_var, this should work perfectly!

Copy link

review-notebook-app bot commented Jun 17, 2025

View / edit / reply to this conversation on ReviewNB

ilan-gold commented on 2025-06-17T11:22:36Z
----------------------------------------------------------------

Why use the mask here and below, but not above? I would think they should all be the same


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants