Closed yxwucq closed 3 months ago
Sry, I've check the result, p-values 'statistical_analysis_pvalues.txt' are round to 1e-5 float as expected. The problem is in ploting library kpy.plot_cpdb function which automatically round result to 1e-3 scale when encountering 0. In https://github.com/zktuong/ktplotspy/blob/master/ktplotspy/plot/plot_cpdb.py
for i in df.index:
if df.at[i, "pvals"] < alpha:
df.at[i, "x_means"] = np.nan
if df.at[i, "pvals"] == 0:
df.at[i, "pvals"] = 0.001
I'm not sure, but assume that the p-value is caculated from random permutation. But when I increase the permutation times like set iterations to 100000, the output minimum is still 1e-3 in the file 'statistical_analysis_pvalues.txt'.