alifedata-phyloinformatics-convert helps apply traditional phyloinformatics software to alife standardized data
Project description
alifedata-phyloinformatics-convert
alifedata-phyloinformatics-convert helps apply traditional phyloinformatics software to alife standardized data
Free software: MIT license
Documentation: https://alifedata-phyloinformatics-convert.readthedocs.io.
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
--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]
--help Show this message and exit.
Use it as a Python module
import alifedata_phyloinformatics_convert as apc
import dendropy
import pandas as pd
alife_df = pd.read_csv('alifedata.csv')
# get a dendropy Tree from alife-standardized phylogeny dataframe
tree = apc.alife_dataframe_to_dendropy_tree(converted_df)
# get a alife-standardized phylogeny dataframe from a dendropy Tree
reconverted_alife_df = apc.dendropy_tree_to_alife_dataframe(tree)
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for alifedata-phyloinformatics-convert-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81a5a5de72bd16f15e142c2f3d368c725f760e6178c441958f9f7e644421bd50 |
|
MD5 | 4d53cdae9c73b1ca93113b57b2d4bb98 |
|
BLAKE2b-256 | 63a5516b2cc22c1715c75bca1d08ed913a7eddf7d53e11ad3db04032ee05728d |
Hashes for alifedata_phyloinformatics_convert-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f05151f9d9ff97cca106e7e5d00172530cc731e2ef369f68334c4f9f4788d10 |
|
MD5 | 03b4a2b86f6a9fc7009b667cff04d2b3 |
|
BLAKE2b-256 | 3b6b4f8615e3fd01b69e62dab33318e40bcf26d2636879e4bae41004a5a5bf33 |