stefpeschel / NetCoMi

Network construction, analysis, and comparison for microbial compositional data
GNU General Public License v3.0
143 stars 24 forks source link

Cross domain interactions #115

Closed TeeratatK closed 4 months ago

TeeratatK commented 4 months ago

It is a short question. Is it practical for cross domain interactions as SpiecEasi package?

stefpeschel commented 4 months ago

You can generate the association matrix using SpiecEasi and use NetCoMi for network analysis and plotting as described here.

TeeratatK commented 4 months ago

Thank you for replying to my question. I'm working with 2 phyloseq objects that contain ITS data and Metabolite data, and I merged them into one object named "fun.bac.merge.renamed". I would like to ask you if I pass association matrix creation using SpiecEasi and use "measure = measure = "spieceasi" " instead. What is the different result that will be compared to the above tutorial?

net_genus <- netConstruct(fun.bac.merge.renamed, measure = "spieceasi", #Association measures measurePar = list(nlambda=10, lambda.min.ratio = 1e-2), normMethod = "clr", zeroMethod = "none", sparsMethod = "none", thresh = 0.3, #Defult verbose = 2 )

stefpeschel commented 4 months ago

Passing the association matrix to netConstruct() and setting measure to "spieceasi" won't work, because that would mean you are estimating associations from an association matrix, which doesn't make sense.

You have two options:

The latter won't work if you want to do a cross-domain analysis, so I recommend following my tutorial, which covers exactly your use-case.