Giter Club home page Giter Club logo

Comments (5)

stefpeschel avatar stefpeschel commented on September 17, 2024

Hi Alex,

Could you please provide me with the complete code you used for network construction? The arguments passed to netConstruct() and netAnalyze() might help to solve the problems. From the output of netCompare() I cannot tell where exactly the error occurred because nrow() is called quite often within the function. I can try to reproduce the error if you send me your code.

As for the node sizes: I could imagine that the degree values are normalized. Then the values for two nodes with the same number of edges might be different between networks.

from netcomi.

alexmsalmeida avatar alexmsalmeida commented on September 17, 2024

Hi,

Thanks for the quick reply. I did a bit of digging and realized that both issues were related with the fact I had some taxa in network2 missing from network1. Once I filtered those everything looks ok now.

One last issue that I encountered though after plotting the diffnet() results from this is that I am getting most of the edges with a dark blue colour (not cyan). The legend does not include this colour in the descriptor. Any idea on how to interpret this?

from netcomi.

stefpeschel avatar stefpeschel commented on September 17, 2024

Glad to hear that you could solve the other issues.

In diffnet, the colors depend on the method used and on whether or not the correlation matrix contains any zeros.
The blue colors correspond to the case "cor1=0, cor2>0", but only if there are correlations equal to zero. However, the legend should always include all colors used in the network plot.
Could you please post the diffnet code? Maybe I can reproduce the issue.

from netcomi.

alexmsalmeida avatar alexmsalmeida commented on September 17, 2024

Ah that makes sense then. I do have quite a few more correlations in cor2 compared to cor1. This is the code I am using:

# construct networks
net.construct = netConstruct(data = as.matrix(entero_no), data2 = as.matrix(entero_yes),
                          dataType = "correlation", sparsMethod = "none", seed = 1234)

# identify differentially associated taxa
diff.res = diffnet(x=net.construct, diffMethod="fisherTest", adjust = "lfdr", n1=1960, n2=3145)

Thanks for the help!

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.