Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Coupled MCMC for Beast2

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING
NotificationsYou must be signed in to change notification settings

sclipman/CoupledMCMC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing the CoupledMCMC package

CoupledMCMC is aBEAST 2 package, which you can install through thepackage manager that comes with BEAST.ChooseCoupledMCMC from the list of packages.

How to set up your BEAST2 analysis to run with coupled MCMC/parallel tempering

By using the conversion app

After you installed theCoupledMCMC package (version 0.1.5 or better), theMCMC2CoupledMCMC app becomes available in the app launcher.

  1. Create MCMC analysis in BEAUti with any of the available templates, save asmcmc.xml

Now there are 2 ways to proceed:

2a. from a terminal, run

/path/to/beast/bin/applauncher MCMC2CoupledMCMC -xml mcmc.xml -o mc3.xml

This creates a filemc3.xml containing a CoupledMCMC analysis with the same model/operators/loggers etc as themcmc.xml analysis.

2b. from BEAUti, use menuFile > Launch apps, selectMCMC to Coupled MCMC converter from the available apps, fill in form and click OK

By editing an XML file in a text editor

In order to set up a pre-prepared xml to run with coupled MCMC, open the*.xml and change the MCMC line in the xml.

To do so, go to the line with:

<run spec="MCMC" chainLength="....." numInitializationAttempts="....">

To have a run with coupled MCMC, we have to replace that one line with:

<run spec="beast.coupledMCMC.CoupledMCMC" chainLength="100000000" storeEvery="1000000" deltaTemperature="0.025" chains="2" resampleEvery="10000">
  • chainLength="100000000" defines for how many iterations the chains is run
  • deltaTemperature="0.025" defines the temperature difference between the chainn and chainn-1. This value should be changed such that the acceptance probability of a swap is between 0.25 and 0.6
  • chains="2" defines the number of parallel chains that are run. The first chain is the one that explores the posterior just like a normal MCMC chain. All other chains are what's calledheated. This means that MCMC moves of those chains have a higher probability of being accepted. While these heated chains don't explore the posterior properly, they can be used to propose new states to the one cold chain.

Citation

Parallel Metropolis coupled Markov chain Monte Carlo for Bayesian phylogenetic inferencehttps://academic.oup.com/bioinformatics/article/20/3/407/186341

About

Coupled MCMC for Beast2

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java100.0%

[8]ページ先頭

©2009-2025 Movatter.jp