FrederickHuangLin / ANCOMBC

Differential abundance (DA) and correlation analyses for microbial absolute abundance data
https://www.nature.com/articles/s41467-020-17041-7
108 stars 29 forks source link

passed_ss_ not found #248

Open cmetadea opened 9 months ago

cmetadea commented 9 months ago

Hi, I tried to ran codes similar to vignette with my data, here are my code

df_age = res_prim_cagA %>% dplyr::select(taxon, ends_with("Age")) df_fig_age = df_age %>% dplyr::filter(diff_Age == 1) %>% dplyr::arrange(desc(lfc_Age)) %>% dplyr::mutate(direct = ifelse(lfc_Age > 0, "Positive LFC", "Negative LFC"), color = ifelse(passed_ss_Age == 1, "#339900", "black")) df_fig_age$taxon = factor(df_fig_age$taxon, levels = df_fig_age$taxon) df_fig_age$direct = factor(df_fig_age$direct, levels = c("Positive LFC", "Negative LFC"))

it returned Error indplyr::mutate(): ℹ In argument:color = ifelse(passed_ss_Age == 1, "#339900", "black"). Caused by error inifelse(): ! object 'passed_ss_Age' not found Runrlang::last_trace()to see where the error occurred.

I checked the results table and there was no passed_ss column. Any idea what did I do wrong? or did it meant that I had no presentable results? Thank you

EllieS96 commented 9 months ago

Hi cmetadea, not a solution I'm afraid, I'm having the exact same problem- I'm not seeing the passed_ss column either. Do we have to adjust the code for the sensitivity analysis? Does anyone know how to fix this? Many thanks

tazmueller commented 5 months ago

Any luck? I have this problem as well, the only thing I've found is others with the same unanswered question. I made sure to set pseudo_sens = TRUE in my original code as well, which works to create most of the output but produces no ss columns.

JiaLonghao1997 commented 5 months ago

Hi, I tried to ran codes similar to vignette with my data, here are my code

df_age = res_prim_cagA %>% dplyr::select(taxon, ends_with("Age")) df_fig_age = df_age %>% dplyr::filter(diff_Age == 1) %>% dplyr::arrange(desc(lfc_Age)) %>% dplyr::mutate(direct = ifelse(lfc_Age > 0, "Positive LFC", "Negative LFC"), color = ifelse(passed_ss_Age == 1, "#339900", "black")) df_fig_age$taxon = factor(df_fig_age$taxon, levels = df_fig_age$taxon) df_fig_age$direct = factor(df_fig_age$direct, levels = c("Positive LFC", "Negative LFC"))

it returned Error indplyr::mutate(): ℹ In argument:color = ifelse(passed_ss_Age == 1, "#339900", "black"). Caused by error inifelse(): ! object 'passed_ss_Age' not found Runrlang::last_trace()to see where the error occurred.

I checked the results table and there was no passed_ss column. Any idea what did I do wrong? or did it meant that I had no presentable results? Thank you

You should update ANCOM-BC2 to 2.6.0.

tazmueller commented 5 months ago

Thank you, that fixed the problem!