ChemRICH icon indicating copy to clipboard operation
ChemRICH copied to clipboard

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

Open Wenyang1218 opened this issue 1 year ago • 6 comments

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?

Wenyang1218 avatar Jul 19 '24 13:07 Wenyang1218

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.

barupal avatar Jul 19 '24 14:07 barupal

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?

Wenyang1218 avatar Jul 19 '24 14:07 Wenyang1218

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.

barupal avatar Jul 19 '24 14:07 barupal

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

Wenyang1218 avatar Jul 19 '24 14:07 Wenyang1218

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

barupal avatar Jul 19 '24 15:07 barupal

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

Wenyang1218 avatar Jul 20 '24 01:07 Wenyang1218