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

can I use the fold change values of metabolites as the effect size? #21

Open
Wenyang1218 opened this issue Jul 19, 2024 · 6 comments
Open

Comments

@Wenyang1218
Copy link

Hello, I am running ChemRich analysis in R using the script chemrich_chemical_classes.R. Can I use the fold change values of metabolites between two groups as the effect size? When I use fold change values as the effect size, many sets have cluster p-values from the KS test equal to 0.000000e+00. What could be causing this?

@barupal
Copy link
Owner

barupal commented Jul 19, 2024

You can use FC values as effect sizes. But the KS test p-value does not depend on FC values, it only need the raw p-values. The zero values mean it was lower than the minimum value in R.

@Wenyang1218
Copy link
Author

Does a KS test p-value of 0 mean that the set is the most significantly changed? When handling cluster.pvalues[which(cluster.pvalues == 0)] <- 2.2e-20, should I set the p-value to the minimum value instead of 2.2e-20?

@barupal
Copy link
Owner

barupal commented Jul 19, 2024

If there is only one p-value==0, then that set is the most significant one. Yes, you can set the ks-test p-value to the minimum value returned.

@Wenyang1218
Copy link
Author

Thank you very much!But I have several sets with p-value==0,What should I do in this case?

@barupal
Copy link
Owner

barupal commented Jul 19, 2024

.Machine You can try lowering the double.eps if that returns smaller p-values.

@Wenyang1218
Copy link
Author

thank you very much!But I still haven't solved it.

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