Open Xuyifei-NAU opened 3 years ago
Actually in this case lambda.min.ratio is too low (most of the networks in the lambda path are completely connected). The optimal graph at a threshold of .05 is actually between the first two values of lambda, so you need to sample between those two values.
Hello Zach,
Thank you for this great package!
I'm trying to construct a network including bacterial and fungal communities with an ASV table.
I got an empty network and a warning message
Optimal lambda may be larger than the supplied values
after running the following codes.I changed the
lambda.min.ratio
(0.1, 0.01, 0.001 and 0.0001)andnlambda'(10, 50, 100, 200), the warning was still here and the output of
sp.ea.pb$select$stars$summary` was similar to the followed.I figured out a pattern of the output of
sp.ea.pb$select$stars$summary
, the first value is 0, and the second value directly exceedsthresh
which was set as 0.05 by default, the following values are distributed around 0.314.Could you help me figure out the reason for these data distribution patterns and solve that?
Due to that pattern, I set the
thresh
up to 0.3, it worked and did not show any warnings. And is that suitable to set thethresh
to a large value to avoid the warning ofOptimal lambda may be larger than the supplied values
?