Giter Site home page Giter Site logo

gabe-foley-thesis / ancestral_agreement Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.72 MB

Calculate the level of agreement between two ancestral reconstructions from differing tools

Dockerfile 0.08% Python 84.76% CSS 5.14% JavaScript 6.97% HTML 3.05%

ancestral_agreement's Introduction

Ancestral Agreement

Ancestral Agreement is a method, inspired by Bland-Altman plots, for comparing the agreement between two sets of predicted biological ancestral sequences.

Each pair of ancestral protein sequences between two sets are converted into quantitative predictions for a range of metrics and the differences between sets are plotted against the evolutionary age of each ancestor. Results are easily interpretable and highlight whether particular methods consistently disagree, whether specific nodes are inconsistently inferred, and specific evolutionary times beyond which methods start to diverge.

Installation

  1. Install MongoDB

https://docs.mongodb.com/manual/installation/

You can set the name of the database you want to create in aa/configs/mongoconfig.py and then when you run the application it will create the database for you.

  1. Clone the repository
git clone github.com/gabe-foley-thesis/ancestral_agreement
cd ancestral_agreement
  1. Install requirements

Recommended to do this within a conda or virtual environment

pip install -r requirements.txt

Running the program

python aa/routes.py

You can now open a web browser and go to http://localhost:5000 -

This gives you the upload form which you can enter your data into.

Inputs required are a phylogenetic tree labelled with ancestral node positions (Newick format) and two sets of ancestor sequences from different prediction methods / settings that correspond to the labelled ancestral node positions (FASTA format).

See /files/test_6_1.aln, test_6_2.aln, and test_6.nwk for the expected format.

Viewing the example data

There is an example data set for a CYP2U1 ancestral reconstruction using either GRASP or FastML. It gets loaded automatically into the Mongo database when you run the app.

If you just want to view the example data then navigate to http://localhost:5000/dash and it will load automatically. Just select the two data sets from the dropdown menus.

Notes

After you're loaded the files you need to select the data sets you're interested in viewing from the drop down menu.

Currently the phylogenetic tree must be identical for each method.

ancestral_agreement's People

Contributors

gabefoley avatar gabe-foley-thesis avatar imgbotapp avatar

Watchers

 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.