Helper function to work with NCBI taxonomy ids
Project description
TaxFinder
The TaxFinder module is a library to help with NCBI taxonomy ids.
Install it using pip
, preferable into a virtual environment:
$ pip install taxfinder ### TODO: This is not working for now!
### TODO: Use for now:
$ cd path/to/taxfinder
$ pip install -e .
To do this, TaxFinder needs to download and create a databse with taxonomy information. This database needs in the order of 300 MB disc space. To create the database, run
$ taxfinder_update
By default, TaxFinder tries to create the database in the installation directory. If you experience problems or you want to save the database to another path, set the environment variable TFPATH
to the desired path. This path must be readable and writable for TaxFinder.
To use TaxFinder, you need to import it and instanciate the main class. This will open the database and also cache your queries so repeated queries are answered faster.
from taxfinder import TaxFinder
TF = TaxFinder()
print(TF.getLineage(9606))
In an interactive session, you can also get help on the TaxFinder methods:
>>> from taxfinder import TaxFinder
>>> help(TaxFinder)
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
File details
Details for the file taxfinder-0.0.1.tar.gz
.
File metadata
- Download URL: taxfinder-0.0.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e1956439b83baadba4beefb547d6d543a183aff9178f2bec06bf4446bc773be |
|
MD5 | 751663acd9bb9d2140c0d7b7815a2f58 |
|
BLAKE2b-256 | aca2e13e593e391166bc3b6781f495b62769c879e2421bfe7214c134645d28e9 |
File details
Details for the file taxfinder-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: taxfinder-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be25fb6dfa858fd02efd257dfd4f15ca25b53cc0bb7e92cd8ef52695e0801978 |
|
MD5 | b332d8197aba321122eb8dfce083e19a |
|
BLAKE2b-256 | a39dfa72ba21bd9514fbcf1555822915bbe0caf2aee1da246c1c64615dbcca10 |