baltic


Namebaltic JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/evogytis/baltic
SummaryLightweight package for analyzing, manipulating and visualizing annotated phylogenetic trees
upload_time2023-07-13 11:07:47
maintainer
docs_urlNone
authorGytis Dudas
requires_python>=3.5
licensegpl-3.0
keywords phylogeny visualization
VCS
bugtrack_url
requirements numpy matplotlib
Travis-CI
coveralls test coverage No coveralls.
            [![Build Status](https://travis-ci.com/evogytis/baltic.svg?branch=master)](https://travis-ci.com/evogytis/baltic)

# baltic

baltic is a Python library for parsing phylogenetic trees. It takes newick, Nexus or nextstrain JSON trees and allows you to manipulate, explore and visualise them. baltic stands for Backronymed Adaptable Lightweight Tree Import Code if you like that sort of thing.

--------------------

## Installation

Use package manager `pip` to install baltic:
```
pip install baltic
```

--------------------

## Usage

```python
import baltic as bt

# When called with a tree string the `make_tree()` function return a baltic tree object:

treeString='((A:1.0,B:2.0):1.0,C:3.0);'
myTree = bt.make_tree(treeString)

# Otherwise you can import trees from newick, nexus or nextstrain JSON files

newickPath='/Users/myUsername/tree.newick'
myTree = bt.loadNewick(newickPath)

nexusPath='/Users/myUsername/tree.nex'
myTree = bt.loadNexus(nexusPath, absoluteTime = False)

nextstrainPath='https://nextstrain.org/charon/getDataset?prefix=/dengue/denv1'
myTree, myMeta = bt.loadJSON(nextstrainPath)

```

----------------

Copyright 2016 [Gytis Dudas](https://twitter.com/evogytis). Licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/evogytis/baltic",
    "name": "baltic",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "phylogeny,visualization",
    "author": "Gytis Dudas",
    "author_email": "gytisdudas@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/49/26/6c0c64b5d27f31453aedd26bc501856bde62e157979bb9b106e4ee1a6fa5/baltic-0.2.2.tar.gz",
    "platform": null,
    "description": "[![Build Status](https://travis-ci.com/evogytis/baltic.svg?branch=master)](https://travis-ci.com/evogytis/baltic)\n\n# baltic\n\nbaltic is a Python library for parsing phylogenetic trees. It takes newick, Nexus or nextstrain JSON trees and allows you to manipulate, explore and visualise them. baltic stands for Backronymed Adaptable Lightweight Tree Import Code if you like that sort of thing.\n\n--------------------\n\n## Installation\n\nUse package manager `pip` to install baltic:\n```\npip install baltic\n```\n\n--------------------\n\n## Usage\n\n```python\nimport baltic as bt\n\n# When called with a tree string the `make_tree()` function return a baltic tree object:\n\ntreeString='((A:1.0,B:2.0):1.0,C:3.0);'\nmyTree = bt.make_tree(treeString)\n\n# Otherwise you can import trees from newick, nexus or nextstrain JSON files\n\nnewickPath='/Users/myUsername/tree.newick'\nmyTree = bt.loadNewick(newickPath)\n\nnexusPath='/Users/myUsername/tree.nex'\nmyTree = bt.loadNexus(nexusPath, absoluteTime = False)\n\nnextstrainPath='https://nextstrain.org/charon/getDataset?prefix=/dengue/denv1'\nmyTree, myMeta = bt.loadJSON(nextstrainPath)\n\n```\n\n----------------\n\nCopyright 2016 [Gytis Dudas](https://twitter.com/evogytis). Licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/).\n",
    "bugtrack_url": null,
    "license": "gpl-3.0",
    "summary": "Lightweight package for analyzing, manipulating and visualizing annotated phylogenetic trees",
    "version": "0.2.2",
    "project_urls": {
        "Download": "https://github.com/evogytis/baltic/archive/v0.2.2.tar.gz",
        "Homepage": "https://github.com/evogytis/baltic"
    },
    "split_keywords": [
        "phylogeny",
        "visualization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "74c23c6950f2d7c59dcfe13923e0e3fa74afb68054d864705b3f4d1a59cc7d01",
                "md5": "838e0ec45b460821be858e71a5f87672",
                "sha256": "05d13382e7bb25375eeaff7db83eb2a2506951594033a75e2b6558ef39ed98cb"
            },
            "downloads": -1,
            "filename": "baltic-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "838e0ec45b460821be858e71a5f87672",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 39383,
            "upload_time": "2023-07-13T11:07:46",
            "upload_time_iso_8601": "2023-07-13T11:07:46.540421Z",
            "url": "https://files.pythonhosted.org/packages/74/c2/3c6950f2d7c59dcfe13923e0e3fa74afb68054d864705b3f4d1a59cc7d01/baltic-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "49266c0c64b5d27f31453aedd26bc501856bde62e157979bb9b106e4ee1a6fa5",
                "md5": "844e0cfeb98ef4704c0a7f4f7b21c019",
                "sha256": "095045aeb0f86f7668df5d7f163ab9fec30e59a564fc77c06b5cb756027a1e79"
            },
            "downloads": -1,
            "filename": "baltic-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "844e0cfeb98ef4704c0a7f4f7b21c019",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 254753,
            "upload_time": "2023-07-13T11:07:47",
            "upload_time_iso_8601": "2023-07-13T11:07:47.699303Z",
            "url": "https://files.pythonhosted.org/packages/49/26/6c0c64b5d27f31453aedd26bc501856bde62e157979bb9b106e4ee1a6fa5/baltic-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-13 11:07:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "evogytis",
    "github_project": "baltic",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.16"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    ">=",
                    "2.0.0"
                ]
            ]
        }
    ],
    "lcname": "baltic"
}
        
Elapsed time: 0.08867s