Code Monkey home page Code Monkey logo

Comments (7)

richelbilderbeek avatar richelbilderbeek commented on August 19, 2024

Requested for use case on simple data. I have only inexact ideas what combined chains are.

from babette.

richelbilderbeek avatar richelbilderbeek commented on August 19, 2024

@thijsjanzen will try to create a simple usecase 👍

from babette.

thijsjanzen avatar thijsjanzen commented on August 19, 2024

I have a simple user case here.
Surprisingly, it appears to work as intended, no problems here. Darn. That means that in my previous analysis, I did something wrong, rather than blaming poor babette!

`#devtools::install_github("richelbilderbeek/babette")

library(babette)
library(beastier)

#beastier::install_beast2()

setwd("/Users/janzen/MEGAsync/CARL/test_beast/")

all_chains <- c()
found_ESS <- c()
for(i in 1:5) {
cat(i, "\n")
bbt_run(
fasta_filenames = get_babette_path("anthus_aco.fas"),
mcmc = create_mcmc(chain_length = 2000000, store_every = 5000),
rng_seed = i,
beast2_output_log_filename = paste0("log_",i,".log"),
cleanup = FALSE
)

beast_log_full <- parse_beast_log(paste0(getwd(),"/log_",i,".log"))
beast_log <- remove_burn_ins(beast_log_full,
burn_in_fraction = 0.1)

found_ESS[i] <- calc_ess(beast_log$posterior, sample_interval = 5000)
all_chains <- c(all_chains, beast_log$posterior)
}

this should be (following tracer on the log files)

1362, 1285, 1618, 1345, 1546

found_ESS

and this should be:

7502

calc_ess(all_chains, sample_interval = 5000)
`

from babette.

richelbilderbeek avatar richelbilderbeek commented on August 19, 2024

Happy to hear. I do test babette to have exactly the same results as Tracer, but not on combined chains. But well, if it all works correctly, there is no need to add a test.

Thanks for confirming babette also works as intended on combined chains!

from babette.

richelbilderbeek avatar richelbilderbeek commented on August 19, 2024

Will close this Issue, unless @thijsjanzen has some concluding words of wisdom 🌈 ?

from babette.

thijsjanzen avatar thijsjanzen commented on August 19, 2024

Always provide a solid user case!

from babette.

richelbilderbeek avatar richelbilderbeek commented on August 19, 2024

👍

from babette.

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.