Coder Social home page Coder Social logo

mcmctree_tree_prep's Introduction

Overview

mcmctree_tree_prep is a tool to prepare input tree files for mcmctree in the PAML package. This program allows to introduce fossil constraints in a command-line interface for the divergence time estimation subsequently done by mcmctree. This script has been tested with PAML 4.9 and supports:

  • Lower bound
  • Upper bound
  • Pair bound
  • Point estimate

Parameters such as tail probability can be specified. See PAML MANUAL for details.

Input file

  • A rooted tree in the newick format. The input tree can contain support values and branch lengths, which will be removed from the output to be compatible with mcmctree.

Dependency

Usage

See complete options by typing mcmctree_tree_prep.py -h after downloading the script.

Example

You can use pipes to add multiple constraints. --add_header should be specified only in the final step.

python mcmctree_tree_prep.py \
--left_species Populus_trichocarpa \
--right_species Arabidopsis_thaliana \
--lower_bound 100 \
--upper_bound 120 \
--tree input.nwk \
| python mcmctree_tree_prep.py \
--left_species Aquilegia_coerulea \
--right_species Arabidopsis_thaliana \
--lower_bound 130 \
--upper_bound 130 \
--tree - \
--add_header \
> output.nwk

input.nwk

(Aquilegia_coerulea:0.23566,((Arabidopsis_thaliana:0.366634,Populus_trichocarpa:0.167905)100:0.0447481,Vitis_vinifera:0.139353)99:0.0680463)1:0;

output.nwk

4 1
(Aquilegia_coerulea,((Arabidopsis_thaliana,Populus_trichocarpa)'B(100, 120, 0.025, 0.025)',Vitis_vinifera))'@130';

Licensing

This program is BSD-licensed (3 clause). See LICENSE for details.

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.