Skip to main content

Balanced parentheses

Project description

Improved Octo Waddle

An implementation of the balanced parentheses tree structure as described by Cordova and Navarro.

Install notes

Installation is a two step procedure right now due to the chicken and egg problem of requiring numpy and cython for setup.py to execute. The package is named iow in pypi as "bp" was taken at time of registration.

$ conda create --name bp python=3.8
$ conda activate bp
$ conda install numpy cython
$ pip install iow

Developer notes

If pulling the source, please note that we use a submodule and Github does not by default bring it down. After a clone, please run:

$ git submodule update --init --recursive

Fragment insertion

BP supports the jplace format. Fragments can be inserted using either fully-resolved or multifurcation mode to resolve multiple placements to the same edge. In fully resolved, the edge placed against is broken N times where N is the number of fragments on the edge. In multifurcation, a new node is constructed as the average of the distal length for the N fragments, and a separate multifurcation node is added which encompasses the placed fragments.

Important: the multifurcation mode support is GPL licensed code. Support for that mode is in a fork of this repository, see improved-octo-waddle-gpl.

Insertions can be handled by the command line following install:

$ bp placement --help
Usage: bp placement [OPTIONS]

Options:
  --placements PATH               jplace formatted data  [required]
  --output PATH                   Where to write the resulting newick
                                  [required]

  --method [fully-resolved|multifurcating]
                                  Whether to fully resolve or multifurcate
                                  [required]

  --help                          Show this message and exit.

Note that the multifurcating support relies on GPL code derived from the Genesis project. To use this method, please install iow-gpl.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iow-1.0.7.tar.gz (1.2 MB view details)

Uploaded Source

File details

Details for the file iow-1.0.7.tar.gz.

File metadata

  • Download URL: iow-1.0.7.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for iow-1.0.7.tar.gz
Algorithm Hash digest
SHA256 149219bf78b2d5ae076fa85822c73a39e17b982233d6710c250295e9803388ed
MD5 dedcba8015f71309ddec6a74fca483a4
BLAKE2b-256 e05045457484fdc4f521ca9f5d141fd9c2bdfa5b164bff283040940f3f842b71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page