Closed jliu2019 closed 3 years ago
Under the hood, the semi-parametric estimator of the correlation in mixedCCA wants to estimate a positive definite correlation matrix. In your case, it seems that some of your data is too sparse, i.e., potentially when subsampling the data for stability selection, some the data only contain zeros. Would it be possible for you to maybe more aggressively filter your taxa or exclude some samples that have very few taxa in there?
Hey,
thanks @muellsen for your comment!
Before closing this issue, I would like to add a few words. It is indeed a sparsity issue as @muellsen already wrote. In a former mixedCCA version, a sparse count matrix led to an error if at least one of the subsamples (which are taken for stability selection) contained taxa with an overall sum of zero (see issue #6 ). This happened if the data contained very rare taxa, which are observed in only a few samples.
The current mixedCCA version produces a warning instead of an error if a taxon with an overall sum of zero is observed in one of the subsamples and the corresponding correlation estimate is set to zero. Nevertheless, instead of ignoring the warning it should be avoided by adapting the filters so that rare taxa are filtered out.
Best, Stefanie
Hi,
Thanks for developing this terrific package!
I got some warning messages in the netConstruct step, here is my code:
These are the warning messages:
I was wondering what is the meaning of "nearPD()' did not converge in 100 iterations", could I proceed to the next step then?
Thank a lot for your help!