Skip to content

phyloref/phylo2owl

Repository files navigation

phylo2owl - convert phylogenies to OWL ontologies

Build Status

phylo2owl is a tool that takes a phylogeny as input and converts it into an OWL ontology, using several ancillary ontologies (such as CDAO, Phyloref) to express relationships (edges) between entities (vertices).

Converting phylogenies into OWL ontologies is one of the foundational steps in using an OWL reasoner to resolve a phyloreference expression (which is a series of OWL axioms) against a phylogeny.

Synopsis

phylo2owl [input.(tre|nex|xml|...)] [-f format] [-o output.owl]

Command line options

  • Default: read a Newick tree from standard input, write an OWL representation of the tree to standard output.
  • Input files: Tree files to convert.
  • Output (-o): Where the output ontology should be written. The base name of this file (e.g. 'output' in 'output.owl') is used as the short prefix for nodes in this ontology in the output file.
  • Output name (-n or --name): A short name for the ontology. Defaults to the name of the output file.
  • Format (-f or --format): Currently, 'newick', 'nexus' and 'nexml' are supported.
  • Help (-h or --help): Describes the usage of the program and every command line option.

Requirements

  • Read single tree in Newick format
    • Read multiple trees in Newick format?
  • Should be easy to modify outputs -- we’re going to spend a lot of time iterating on the best way to represent trees in OWL!
  • Phyloreferences will not be represented at this stage: we’ll write another tool to write phyloreferences in OWL, and then a third tool to query a phyloreference (in OWL) on a tree (in OWL).
    • A separate test suite will test the outputs. Alternatively, we could include a owl2phylo file, and then test to see if we can convert files in one direction and then the other.

Algorithm

Testing

We use the py.test testing framework. You can run the tests by running py.tests tests from this directory.

Library options

We currently use DendroPy. Some other libraries we considered include:

About

Tool to convert phylogenies to OWL ontologies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published