Giter Site home page Giter Site logo

iupmbayes's People

Contributors

artpoon avatar rouxcil avatar

Watchers

 avatar  avatar

iupmbayes's Issues

Data parsing issue

The data.pars function currently produces the following error if run on the packaged data:

Error in $<-.data.frame(*tmp*, "Variant", value = integer(0)) :
replacement has 0 rows, data has 180

This is due to a difference between the heading labels in the data file and those hard code in the script, specifically:
Variant # or Variant index vs. Variant and,
Presence of variant vs. Presence of Variant

This error can be fixed by:

  1. Fixing the documentation and the packaged data to match the script.
  2. Mapping the documented heading to those required by editing the script.
    a. Just fixing these two issues. (opting for this one)
    b. Build a more elaborate heading mapping function.

Default parameter settings fail

When running the Metropolis-Hastings sampling the code fails with the following error:

Error in mh(data, max.steps = 1e+05, skip.console = 1000, skip.log = 100) :
(list) object cannot be coerced to type 'integer'

The issue is in determining the number of variants per region here:

m <- lapply(data, function(sub) ncol(sub$wells)) and,
regions <- names(m)

The first level of this list is the Patient ID so above code returns NULL.

Fixing code to:

m <- lapply(data[[1]], function(sub) ncol(sub$wells))

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.