-
-
Notifications
You must be signed in to change notification settings - Fork 157
Description
Hello,
I am trying to run rm_corr on multiple columns of a dataframe (gene expression data), and while the function works well on many column pairs (and match the expected output from the R rmcorr function) one pair of columns throws an error LinAlgError: SVD did not converge
. However, this pair of columns has no trouble running in the R rmcorr implementation. Therefore, I am curious what the difference between the two implementations is, and whether it is possible to get this to converge in python? I would prefer to continue to use your implementation as it seems to be much faster (I am in the midst of benchmarking how both implementations scale, so as a side note if you have any data on that I would very much appreciate it!).
I am using Pingouin v.0.5.5. I have attached a minimal dataframe to recreate my error, along the with the code below:
# load dataframe as dataframe
import pingouin as pg
pg.rm_corr(data = dataframe, x = "Gene1", y = "Gene2", subject = "Subject")
Dataframe:
df_pingouin_fail.csv
Thanks so much for your help!
Best,
Sophie