Giter Site home page Giter Site logo

hj1994412 / burntrees Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nylander/burntrees

0.0 1.0 0.0 183 KB

Perl scripts for manipulating output from phylogenetic MCMC software (MrBayes, BEAST, PhyloBayes, etc)

Perl 73.88% OpenEdge ABL 7.32% HTML 18.80%

burntrees's Introduction

Burntrees

Perl script for printing and manipulating MrBayes tree files (.t, .con), MrBayes parameter files (.p), or other Nexus-formatted tree files. Also tested with output from BEAST/BEAST2 (.trees, .log), and PhyloBayes (.trace, .treelist).

Written by:

Johan Nylander

Examples

(See documentaion for more)

  • Burnin 10 trees

      burntrees.pl --burnin=10 data.t > out.t
    
  • Burnin 50%

      burntrees.pl --pburnin=50 data.t
    
  • Get trees 11 to 30

      burntrees.pl --start=11 --end=30 data.t
    
  • Thin by sampling every 10th tree

      burntrees.pl --jump=10 data.t
    
  • Get trees only

      burntrees.pl --treesonly data.t
    
  • Get info on samples (after the burnin of 10)

      burntrees.pl --getinfo -b=10 data.t
    
  • Remove branch lengths from trees

      burntrees.pl --rmbrlens data.t
    
  • Remove comments from trees

      burntrees.pl --rmcomments data.t
    
  • Sample every tree with prob 0.5

      burntrees.pl --ifeellucky=0.50 data.t
    
  • Burnin 10, thin by 10, trees only, remove branch lengths

      burntrees.pl -b=10 -j=10 -t -rmb data.t
    
  • Burnin 10 from a parameter file

      burntrees.pl -b=10 data.p
    
  • Burnin 10, remove headers from a parameter file

      burntrees.pl --treesonly -b=10 data.p
    
  • Convert trees to altnexus format

      burntrees.pl --format=altnexus data.t
    
  • Convert trees to Phylip (Newick) format, save to file

      burntrees.pl -f=phylip --outfile=data.phy data.t
    
  • Get second tree from MrBayes .con.tre file in Phylip format

      burntrees.pl -f=p -b=1 data.con.tre
    
  • Change branch length format from scientific to numerical (three decimals)

      burntrees.pl --sci2norm=3 data.con.tre
    

Files:

  • burntrees.pl -- the Perl script

  • burntrees.txt -- documentation in text format

  • burntrees.html -- documentation in html format

  • catmb.pl -- Perl script for concatenating files using burntrees.pl

  • catmb.txt -- documentation in text format

  • catmb.html -- documentation in html format

  • data.t, data.p -- test data

Get started

Make sure the file burntrees.pl is executable (chmod +x burntrees.pl) and

./burntrees.pl

CatMB

Perl script for concatenating several MCMC runs.

In order for catmb.pl to work, burntrees.pl must be installed in the PATH. Alternatively, the full path to burntrees.pl can be specified by editing catmb.pl. (Then chmod +x catmb.pl) and

./catmb.pl

burntrees's People

Contributors

nylander avatar

Watchers

James Cloos avatar

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.