GithubHelp home page GithubHelp logo

pta's Introduction

pta

A phylogeny-taxonomy alignment service for the Open Tree project.

The general idea is that the service receives a tree with leaves mapped to Open Tree Taxonomy (OTT) ids, and returns json data required for rendering the alignment of the tree as an interactive d3 graphic, e.g.:

http://reelab.net/phylografter/graph/view_ott/1

Installing

pta is a web2py app. This repo can be cloned directly into web2py's applications directory.

Requirements

(These may be tricky to install if you are not using Ubuntu.)

Usage

Start the server, which will listen on localhost port 8000 by default:

python ./web2py.py

As a web app

Basic functionality is available by visiting http://localhost:8000/pta

As a web service

Currently the service expects an entire study nexson file to be POSTed in a data parameter. For example to submit a file called ot_20.json:

curl --data-urlencode data@ot_20.json http://localhost:8000/pta/default/index.json

The response will be json data object with a key treeids mapping to a list (possibly empty) of tree id values corresponding to trees in the nexson file that were processed. The phylogeny-taxonomy alignment data for each tree can be retrieved from the json object using these tree ids as keys.

Caveats

  • At present little if any sanity checking is done and informative error messages are nonexistent.

  • Please note, the app process will use about 1.8 GB of RAM, because it keeps the entire Open Tree Taxonomy in memory. After launching the app, the first request to the service will be a bit slow as this is loaded.

pta's People

Contributors

jimallman avatar rhr avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jimallman

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.