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

Precision is undefined in this case, and NA will be returned. #25

Open
Aljovic opened this issue May 25, 2023 · 2 comments
Open

Precision is undefined in this case, and NA will be returned. #25

Aljovic opened this issue May 25, 2023 · 2 comments

Comments

@Aljovic
Copy link

Aljovic commented May 25, 2023

Hello,

I try to run Augur on my Seurat data:

augur = calculate_auc(merged.cx3cr1_soupx, cell_type_col = "Cluster_Name", label_col = "Type")

However, I get the following error.
Caused by warning:
! While computing binary precision(), no predicted events were detected (i.e. true_positive + false_positive = 0).
Precision is undefined in this case, and NA will be returned.
Note that 6 true event(s) actually occured for the problematic event level, 'Ctrl'.Warning: There was 1 warning in mutate().
ℹ In argument: metrics = pred %>% map(metric_fun).

I have in total around 35K cells, 12 clusters, and each cluster has more than 20 cells. I'm probably missing something simple here. Would really appreciate your help.

All best!

@skinnider
Copy link
Collaborator

Hi @Aljovic - not sure what could be going wrong here off the top of my head. Can you provide a reproducible example or else send me a subset of your data that produces this error? Can you also provide the output of sessionInfo()?

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

3 participants
@skinnider @Aljovic and others