Giter Site home page Giter Site logo

Comments (4)

SansMorel avatar SansMorel commented on August 17, 2024

I think the error might be caused by the default value of cluster_values parameter in testCV. If cluster_values is set to a cluster that doesn't exist (for example through using the default parameter) the error seems to occur.
Perhaps an error message could be displayed if cluster_values is set to a nonexistent cluster?

from cytonorm.

tomashhurst avatar tomashhurst commented on August 17, 2024

@SansMorel I came up with the same error. After pulling the function apart, the first problem comes up in this part of testCV, at the end of the function:

res <- named.list(pctgs, cvs, meta_cl) if(plot){ PlotOverviewCV(fsom, res) }

and specifically: PlotOverviewCV(fsom, res) returns:

Error in rep(NA, (width - length(x))) : invalid 'times' argument

So the issues is in the PlotOverviewCV function, which is defined just below it. The issue comes up here:

cv_matrix <- do.call(rbind, lapply(cvs[as.character(cluster_values)], function (x) { c(x, rep(NA, (width - length(x)))) }))

from cytonorm.

tomashhurst avatar tomashhurst commented on August 17, 2024

So yes, it carries the cluster_values value the whole way through to that point. If you change it fro c(5, 10, 15) to c(5, 10) then it works fine.

from cytonorm.

SofieVG avatar SofieVG commented on August 17, 2024

@SansMorel @tomashhurst
I just pushed a fix for this issue, thanks for pointing it out and figuring out where it went wrong! Let me know if you still run into any related problems.

from cytonorm.

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.