GithubHelp home page GithubHelp logo

bes's Introduction

BES

Branch Estimation Synthesizer

This is a program designed to do concordance informed branch length. In short this means that given a set of gene trees and a species tree to map to, the program will identify edges that are concordant with the species tree and use a variety of stats behind the edges to calculate what the branch lengths should be. This provides an extremely fast way to add branch lengths to a species tree, and makes sure that the only thing informing the species tree branch lengths is concordant relationships. Both species tree and gene trees must be unrooted! Currently this is under active development but to run:

BES.py -m SpeciesTree -t FileOfGeneTrees -s [optional support value] -o [optional outfile]

The output

The output will either be printed to your screen in which case is will be 7 trees, or it will be printed to the file names you've specified in which case there will be a *.tre file with the same 7 trees that would go to output and a *.verbose.csv where all values of all concordant edges are printed. In the .tre file the trees are as follows:

Tree 1: The mean of the concordant branches

Tree 2: The median of the concordant branches

Tree 3: The minimum value of any concordant branch

Tree 4: The maximum value of any concordant branch

Tree 5: The lower limit of the 95% CI

Tree 6: The upper limit of the 95% CI

Tree 7: The number of edges that are concordant with a particular relationship

Giving it a boost with cython

There should not be any dependencies required, this is just to make it less of a hassle to get it going. But if you want to speed it up a bit you can compile with cython. For the test dataset the computer I'm running it on takes about 8 seconds but if you switch to cython it's usually about 5, so it can save quite a bit of time on larger datasets.

Once you have installed cython on your computer you just enter the source folder and run: python conf.py build_ext --inplace

After it has compiled open the file called "run_cython.py" and change the variable use_cython from False to True.

Origin of the name

The name comes from an exhibit I saw in the British natural history museum on the egyptian god Bes, credit to Robyn Phillips for pointing it out. Having never seen a picture of Bes before I thought it was necessary to draw some attention to the coolest looking egyptian god of all. If you search Bes you'll probably just find things related to the utility company so google searches need to be specific.

bes's People

Contributors

jfwalker avatar

Stargazers

Miao Sun avatar

Watchers

 avatar

Forkers

angilram

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.