Skip to content
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

[Bug] >99% cells annotated as NaN #4

Open
pakiessling opened this issue Sep 20, 2024 · 1 comment
Open

[Bug] >99% cells annotated as NaN #4

pakiessling opened this issue Sep 20, 2024 · 1 comment

Comments

@pakiessling
Copy link

pakiessling commented Sep 20, 2024

Hi Quentin,

I just tried Novae out on my heart cohort. 46 samples ~ 2 million cells.
I used novae-human-0 with both zero_shot and fine_tune .

I used counts and let Novae handle the preprocessing

Both times almost all cells were annotated as NaN:

adata.obs["novae_domains_7"].value_counts(normalize=False,dropna=False)
novae_domains_7
NaN      1997204
D1015      12403
D1016       1755
D1012        827
D966         266
D1008        164
D993         102
D282           2

Do you know what could cause this?

Novae 0.1.0

@quentinblampey
Copy link
Contributor

quentinblampey commented Oct 21, 2024

Hi @pakiessling, sorry for the delay, I just found out that I don't receive notifications from new issues on Novae, by bad...

NaN values are given for cells that are not connected to any cells in the Delaunay graph (or too few, e.g., one). So, my guess is that your Delaunay graph was not computed properly. You can refer to this function to understand how we built the graph (read the "notes"), maybe this can help you.

Did you get a warning saying that your cells have very few neighbors? Novae should detect if something is going wrong with the graph and warn you about it.

Did you already have the key spatial_distances in obsp before using Novae? If yes, to what do these distances correspond? Otherwise, are you spatial coordinates in microns?

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

No branches or pull requests

2 participants