GithubHelp home page GithubHelp logo

selac's People

Contributors

bomeara avatar clandere avatar dominicev avatar grahamdb avatar mikegilchrist avatar thej022214 avatar

Watchers

 avatar  avatar  avatar  avatar

selac's Issues

Error with incomplete codons

I am documenting this error here until someone (including myself) fixes this error.

Sometimes, the following error is given when the first likelihood is being calculated...

1: In mclapply(1:nsites.unique, MultiCoreLikelihoodBySite, mc.cores = n.cores.by.gene.by.site) :
  scheduled cores 2 encountered errors in user code, all values of the jobs will be affected

Exploration of the error shows that it is somehow related to the input alignment, which in my case was a codon alignment. This can be resolved by deleting codons sites for which all taxa have an incomplete codon.

How to do support region

Hessian slow. Adaptive sampling less slow. Maybe root finding? Maybe another algorithm? What cutoff for adaptive sampling (∆lnL=2?)

Create testing example

Something to make a tree and codon data, convert to codon numeric codes, make sure runs with rayDisc to get likelihood

Precision for lik.diff

Code is currently like

while(number.of.current.restarts < (max.restarts+1)){
  optimize edge lengths (one round of nloptr, in parallel) #line 3566
  optimize parameters (one round of nloptr, in parallel) #line 3577
  while (lik.diff != 0 & iteration.number<7){ #line 3592
    optimize edge lengths (one round of nloptr, in parallel) #line 3599
    optimize parameters (one round of nloptr, in parallel) #line 3613   
    lik.diff <- round(abs(current.likelihood-results.final$objective), 8) #line 3451
  }
}

but the 8 for round is hardcoded -- expose this as a fn argument.

expose optimization fn as an option

opts <- list("algorithm" = "NLOPT_LN_SBPLX", "maxeval" = max.evals, "ftol_rel" = max.tol) in SelacOptimize: expose algorithm as an argument.

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.