Giter Club home page Giter Club logo

Comments (4)

stefpeschel avatar stefpeschel commented on August 14, 2024

Dear Danning,

have you set hubPar to only a single value, e.g. to "eigenvector", and lnormFit = FALSE?
Then, you should get some hub nodes.
Otherwise, could you please provide me with your netAnalyze() code and the dimension of the adjacency matrix (can be accessed via dim(net$adjaMat1) and dim(net$adjaMat2), where net is your constructed network object)?

Best,
Stefanie

from netcomi.

danningwang avatar danningwang commented on August 14, 2024

Dear Stefanie,
I did not set hubPar as I thought the default value of hubPar is 'eigenvector', and I also set lnormFit=T. My adjacency matrix is 322 x 322.
The following is my code for net construction and analysis.

treatment.net = netConstruct(t(rs.otuTab.lp),
measurePar = list(nlambda=40, lambda.min.ratio=1e-1, pulsar.params = list(rep.num=99)),
sparsMethod = "none",
seed = 1245356, verbose = 3)
treatment.analyze <- netAnalyze(treatment.net,
centrLCC = FALSE,
#avDissIgnoreInf = TRUE,
sPathNorm = FALSE,
clustMethod = "cluster_fast_greedy",
hubQuant = 0.95,
lnormFit = TRUE,
normDeg = FALSE)

Thanks,
Danning

from netcomi.

stefpeschel avatar stefpeschel commented on August 14, 2024

Dear Danning,
Thanks for the code and explanations.

If lnormFit = TRUE, a log-normal distribution is fitted to the centrality values and the 95% quantile of the fitted distribution is taken for identifying the hubs. So, in this case, you won't necessarily find any hub nodes.

If, on the other hand, lnormFit is set to FALSE, the empirical distribution function of the centralities is used and the number of hubs is predefined.

Best,
Stefanie

from netcomi.

danningwang avatar danningwang commented on August 14, 2024

Many thanks, Stefanie.
I see.

Best regards,
Danning

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.