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

significant associations of output and boxplot? #157

Open
pandaqiuqiu opened this issue Oct 23, 2024 · 3 comments
Open

significant associations of output and boxplot? #157

pandaqiuqiu opened this issue Oct 23, 2024 · 3 comments

Comments

@pandaqiuqiu
Copy link

pandaqiuqiu commented Oct 23, 2024

Hi,

After I used:
res = seu |>
sccomp_estimate(formula_composition = ~ type,
.sample = sample,
.cell_group = cell_group,
bimodal_mean_variability_association = TRUE) |>
sccomp_test()

the result for res is as follows:

image

According to the results, c_FDR for the cancer factor is 0.603. However, the boxplot generated by res |>
sccomp_boxplot(factor = "type")
shows a significant difference with a red box.

image

I would like to ask:
Isn't the definition of significant difference indicated by c_FDR < 0.05? Why is my result c_FDR = 0.603, yet the boxplot is red?

Thanks!

@stemangiola
Copy link
Collaborator

I think something to do with visualisation. Would you mind send me the count dataset (anonimised if needed) so I will be able to replicate your scenario and fix it?

Thanks.

@pandaqiuqiu
Copy link
Author

I think something to do with visualisation. Would you mind send me the count dataset (anonimised if needed) so I will be able to replicate your scenario and fix it?

Thanks.

The count data is here. Thanks for your rapid response.
sccomp--.csv

@stemangiola
Copy link
Collaborator

stemangiola commented Oct 23, 2024

Hello,

you might have an old version of sccomp (btw, now the default fold change used for testing is 0.1, before was 0.2, as we deemed more appropriate).

Please reinstall sccomp from github

You still not have significance. The plot reflects this

    read_csv("~/Downloads/sccomp--.csv") |>
    mutate(count = count |> as.integer()) |> 
    sccomp_estimate(formula_composition = ~ Group0,
                    .sample = Sample,
                    .cell_group = cell_group,.abundance = count, inference_method = "hmc",
                    bimodal_mean_variability_association = TRUE) |>
    sccomp_remove_outliers(inference_method = "hmc") |> 
    sccomp_test() |> 
        sccomp_boxplot("Group0")

image

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