Giter Site home page Giter Site logo

rodsan0 / alifedata-phyloinformatics-convert Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmore500/alifedata-phyloinformatics-convert

0.0 0.0 0.0 170 KB

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

License: MIT License

Python 95.91% Makefile 4.09%

alifedata-phyloinformatics-convert's Introduction

alifedata-phyloinformatics-convert

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
  --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

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)

Install from PyPi

pip3 install alifedata-phyloinformatics-convert

Credits

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

alifedata-phyloinformatics-convert's People

Contributors

mmore500 avatar rodsan0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.