Skip to main content

For matching species databases

Project description

Phylo-Match

Phylo-Match is a package for correcting misspellings or disparate labelings in phylogenetic trees

Installation

This project was built with python v3.8 (python3). Later versions should be fine, but no guarantees for earlier. Not compatible with python 2.

Check that you have python3 installed:

python3 --version 

Output should be something like:

Python 3.7.1 

If --version does not return a version, follow Python3 installation instructions (or install Python3 your own way)

Use the package manager pip3 to install phylo-match.

Install pip:

python3 -m ensurepip --upgrade

Install Phylo-Match:

pip3 install phylo-match

Usage

phylo-match

Use the gui to select a database file (.csv), and a taxa tree (.nexus) to match the database to. Click run when you are happy with your selection.

Phylo-Match does all of its calculations and api requests upfront, so users may have to wait 10-15 minutes after run is clicked, depending on internet speed.

This time can be minimized by unchecking 'Lookup Taxa Info' - a good idea if you're very familiar with the taxa, but the project will not provide information about matches beyond the name.

Information about the DB's taxa will be on the left-hand side. All similar entries in the .nexus file will appear in the middle of the screen. Click on the name you'd like to change the entry to, manually enter a name on the bottom, or click on 'same species', or 'same genus' for additional options, if available.

Once all selections have been made, a new .csv file will be created in the same directory as the original database .csv file.

Examples:

The program (correctly) thinks my best bet to match the database taxon Aotus azarae is Aotus azarai from the tree. But if I don't like that option I can click on 'same species' to see other taxa in the tree with the species name "azarae" or 'same genus' to see other members of the genus Aotus.

Similar Example

Here's an example of the 'same species' option at work: The database has Vicunga pacos but the tree has Lama pacos. This is useful if the genus has been split up.

Species Example

Here's an example where I might want to use the "Same Genus" option. This can be useful if you don't have many taxa in that genus and it doesn't really matter which species in the genus you use: Here I have data for Cercocebus atys but that taxon isn't in the tree. I could use a different Cercocebus species as a substitute. The 'removed suggestions' in the bottom left tells me that C. agilis is already matched between the data and tree, but C. atys and C. torquatus are sister species, both equally closely related to C. agilis, so I can use C. torquatus instead.

Genus Example

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPL-3.0

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

phylo-match-0.0.9.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phylo_match-0.0.9-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file phylo-match-0.0.9.tar.gz.

File metadata

  • Download URL: phylo-match-0.0.9.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for phylo-match-0.0.9.tar.gz
Algorithm Hash digest
SHA256 422b97e5b0703f87161f6b02377c5de888c263847e50bc6c50fe744a9da5ec41
MD5 2504aec8bd948a0c04af1f8d09055253
BLAKE2b-256 fe4dc6163db68e5b172bafe59da67759ae5a80c85ad14da6387d2ff9f62dc1c3

See more details on using hashes here.

File details

Details for the file phylo_match-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: phylo_match-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for phylo_match-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d75c87ccda0c9198e0dc77db6aafc19f9610116608815bce12160b0773fb28
MD5 633a40500f553aa0602ee6e28f975d82
BLAKE2b-256 9ec5898b98842201792d598aa99a0e0834c52847a34a9b7d5ac8669dfbc6f641

See more details on using hashes here.

Supported by

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