neurorestore / Augur

Cell type prioritization in single-cell data
MIT License
94 stars 10 forks source link

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

Open Aljovic opened 1 year ago

Aljovic commented 1 year ago

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 commented 1 year ago

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()?