Closed 07Chengran closed 1 month ago
It sounds like the otu matrix needs to be transposed. SPIEC-EASI assumes a samples (rows) by features (columns) format, which is more standard in the statistics field
On Sat, Aug 10, 2024, 9:33 AM 刘澄蔚然 @.***> wrote:
Closed #268 https://github.com/zdk123/SpiecEasi/issues/268 as completed.
— Reply to this email directly, view it on GitHub https://github.com/zdk123/SpiecEasi/issues/268#event-13827970038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUD2RASOAHA6NXVQW2HU7LZQYQFDAVCNFSM6AAAAABMJO5JM6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTHAZDOOJXGAYDGOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thank you very much for your reply!I have transposed the matrix and the results seem well.
Dear Zach,
I'm really sorry that I met some problems again. I'm currently constructing a cross-domain network using metagenomic sequencing data that includes bacteria and fungi. I've encountered a couple of issues and would greatly appreciate your assistance.
Covariance Values: I've observed that the covariance values in my data are consistently very small, ranging from (10^{-11}) to (10^{-3}). Here’s the code I’m using with Spiec-Easi:
spiec.gl.out = spiec.easi(
list(otus.f.bac, otus.vir),
method = "glasso",
icov.select.params = list(rep.num = 20),
lambda.min.ratio = 0.01,
nlambda = 100,
pulsar.params = list(thresh = 0.1)
)
Is it normal for covariance values to be this small? If not, what might be causing this issue?
Warning Message: Additionally, I receive the following warning message:
Warning message:
In spiec.easi.list(list(otus.f.bac, otus.vir), method = "glasso", :
input list contains data of mixed classes.
Could you help me understand what this warning means and how I can resolve it?
Thank you very much for your assistance!
Dear Zach, Thank you very much for your packages!
I’m currently working on constructing a gut microbiota ecological network for a specific species using Spiec-Easi. I have 10 samples, and I retained only those taxa present in at least 5 samples, resulting in 109 taxa.
Here’s the problem I’m encountering: I experimented with different values for $lambda$ (0.001, 0.01, 0.1), set
rep.num
to 20, and used 100 values fornlambda
. However, I ran into an issue when constructing the adjacency matrix.Detailed Observations:
When
lambda.min.ratio
was set to 0.1 and 0.01, the$select$start$summary
for both scenarios looked similar to the following:Despite these settings, the final adjacency matrix (
spiec.gl.out$refit$stars
) only contained 10 taxa. I suspect that the network might be overly sparse due to a large $lambda$, so I adjustedlambda.min.ratio
accordingly.When
lambda.min.ratio
was set to 0.001, I received the following message:The summary results were still quite similar, but the problem persisted with only 10 taxa being retained in the adjacency matrix.
thresh
value to 0.1 withlambda.min.ratio
set to 0.01. While the$select$start$summary
appeared as:The final adjacency matrix still contained only 10 taxa.
My Question:
What could be causing this significant reduction in the number of taxa in the adjacency matrix? Is it possible that the data itself is problematic, or is there something inherent in the Spiec-Easi model parameters that might be leading to this loss of nodes? Could the choice of $lambda$ or
lambda.min.ratio
be influencing this, and if so, how should I adjust them to retain more taxa in the network?Any insights or suggestions would be greatly appreciated.
Thank you for your assistance.