Giter Club home page Giter Club logo

Comments (3)

stefpeschel avatar stefpeschel commented on September 17, 2024

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

from netcomi.

TeeratatK avatar TeeratatK commented on September 17, 2024

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
)

from netcomi.

stefpeschel avatar stefpeschel commented on September 17, 2024

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:

  • Estimate the association matrix in advance with SpiecEasi and pass the matrix to netConstruct() as explained in the tutorial.
    Here you have to set dataType to "condDependence" (or just "correlation"; there's currently no difference).
  • Pass your phyloseq object to netConstruct() and set measure to "spieceasi" so that associations are estimated within netConstruct(). In this case, the dataType must be "counts".

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.

from netcomi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.