A python package to interact with NCBI taxonomy
Project description
pyphy
Python library that interacts with NCBI taxonomy
This is the Python implementation of the blog post http://dgg32.blogspot.com/2013/07/pyphy-wrapper-program-for-ncbi-sqlite.html.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
sqlite
Preparing the backend database
Notice: please perform this step periodically to stay up to date with the NCBI Taxonomy.
Download the taxdmp.zip from ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/ and unzip it.
python prepyphy.py [ncbi_download_folder] [db_path]
This step will set up the "db_path" in pyphy.config automatically.
If you move the database afterwards, please don't forget to refresh db_path in pyphy.config.
Using the library
In order to use the library system wide, add this line to your ~/.bashrc.
export PYTHONPATH="${PYTHONPATH}:/my/own/pyphy/source/"
Then you can import the pyphy library in your Python code by
import pyphy
pyphy provides the following queries inside the NCBI taxonomy:
Taxonomy name <-> NCBI TaxID
NCBI TaxID -> Full lineage
NCBI TaxID -> Taxonomic rank
NCBI TaxID -> all children
For code examples and documentation please refer to documentations.
Authors
- Sixing Huang - Concept and Coding
License
This project is licensed under the MIT License - see the LICENSE file for details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyphy-1.0.3.tar.gz.
File metadata
- Download URL: pyphy-1.0.3.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
024954abce88419a708cb61aed8beb404e5b814f97274b93b10b459ffa0d12a3
|
|
| MD5 |
c0d1935821638e68757a9fa5ff429060
|
|
| BLAKE2b-256 |
d0006c887dc7135e4c04055d1e628932538f52c29f19153596b5c3e658eb5ced
|
File details
Details for the file pyphy-1.0.3-py3-none-any.whl.
File metadata
- Download URL: pyphy-1.0.3-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a0c1882eb06841ce774cbf674c9afd204075f8e3aa21372d70665b92024244f
|
|
| MD5 |
57931983c5fcc73163339d0486cf4eea
|
|
| BLAKE2b-256 |
1dce31888dd22294792a7ce7ccb52cdb5c08a4228c65ccefd696123cde155407
|