Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taxfinder-0.0.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

taxfinder-0.0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for taxfinder-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4e1956439b83baadba4beefb547d6d543a183aff9178f2bec06bf4446bc773be
MD5 751663acd9bb9d2140c0d7b7815a2f58
BLAKE2b-256 aca2e13e593e391166bc3b6781f495b62769c879e2421bfe7214c134645d28e9

See more details on using hashes here.

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

Hashes for taxfinder-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be25fb6dfa858fd02efd257dfd4f15ca25b53cc0bb7e92cd8ef52695e0801978
MD5 b332d8197aba321122eb8dfce083e19a
BLAKE2b-256 a39dfa72ba21bd9514fbcf1555822915bbe0caf2aee1da246c1c64615dbcca10

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page