Skip to main content

alifedata-phyloinformatics-convert

https://img.shields.io/pypi/v/alifedata-phyloinformatics-convert.svg https://img.shields.io/travis/mmore500/alifedata-phyloinformatics-convert.svg Documentation Status

alifedata-phyloinformatics-convert helps apply traditional phyloinformatics software to alife standardized data

Built using the dendropy library.

Use it as a command line tool to convert to alife standard phylogenetics data

Usage: alifedata-phyloinformatics-convert toalifedata [OPTIONS]

  convert standard alife phylogeny data to phloinformatics format

Options:
  --input-file FILENAME           phyloinformatics data file path; default
                                  stdin
  --input-schema TEXT             phyloinformatics data format schema; options
                                  include newick, nexml, and nexus  [required]
  --output-file FILENAME          alife data file path; default stdout
  --output-format TEXT            alife data file format; default csv
  --suppress-unifurcations / --keep-unifurcations
                                  Compress sequences of nodes with single
                                  descendants
  --help                          Show this message and exit.

Use it as a command line tool to convert from alife standard phylogenetics data

Usage: alifedata-phyloinformatics-convert fromalifedata [OPTIONS]

  convert phloinformatics data to standard alife phylogeny format

Options:
  --input-file FILENAME           alife data file path; default stdin
  --input-format TEXT             alife data file format; default csv
  --output-file FILENAME          phyloinformatics data file path; default
                                  stdout
  --output-schema TEXT            phyloinformatics data format schema; options
                                  include newick, nexml, and nexus  [required]
  --suppress-unifurcations / --keep-unifurcations
                                  Compress sequences of nodes with single
                                  descendants
  --help                          Show this message and exit.

Use it as a Python module

import alifedata_phyloinformatics_convert as apc

alife_df = pd.read_csv('alifedata.csv')


# get a dendropy Tree from alife-standardized phylogeny pandas dataframe
dendropy_tree = apc.alife_dataframe_to_dendropy_tree(alife_df)

# get a alife-standardized phylogeny pandas dataframe from a dendropy Tree
reconverted_alife_df = apc.dendropy_tree_to_alife_dataframe(dendropy_tree)


# get a biopython Tree from alife-standardized phylogeny pandas dataframe
biopython_tree = apc.alife_dataframe_to_biopython_tree(alife_df)

# get a alife-standardized phylogeny pandas dataframe from a biopython Tree
reconverted_alife_df = apc.dendropy_tree_to_alife_dataframe(biopython_tree)

# get a networkx DiGraph from alife-standardized phylogeny pandas dataframe
networkx_digraph = apc.alife_dataframe_to_networkx_digraph(alife_df)

# get adjacency lists from alife-standardized phylogeny pandas dataframe
adjjacency_lists = apc.alife_dataframe_to_dict_of_lists(alife_df)

Install from PyPi

pip3 install alifedata-phyloinformatics-convert

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.0.0 (2022-03-22)

  • First release on PyPI.

Download files

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

Source Distribution

alifedata-phyloinformatics-convert-0.13.0.tar.gz (166.0 kB view details)

Uploaded Source

Built Distribution

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

alifedata_phyloinformatics_convert-0.13.0-py2.py3-none-any.whl (26.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file alifedata-phyloinformatics-convert-0.13.0.tar.gz.

File metadata

File hashes

Hashes for alifedata-phyloinformatics-convert-0.13.0.tar.gz
Algorithm Hash digest
SHA256 79e6fbdbf5fbabaf096db6a544dbc00c82188b0faf35f12ff5cc33bcc8b76613
MD5 7e533e87aadaaec16eb550c1eabc6d20
BLAKE2b-256 9db4251d247863c38f810ca9b071f9586a909c4eb20505a6d706609061b8a00e

See more details on using hashes here.

File details

Details for the file alifedata_phyloinformatics_convert-0.13.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for alifedata_phyloinformatics_convert-0.13.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 42cf2bedadcd0575843cfeccddcdc4ba4c6fb96abc850bf6176dbd36e4bfee98
MD5 512ad4167eebd8822d37010f0ed25751
BLAKE2b-256 3f0bc2c41e7f0d53ffab2311b03350996aacc93ec25ecac88717678005e2b6bd

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