Skip to main content

TaxonTools

TaxonTools can help you use NCBI Taxonomy database

Installation

pip install taxontools

usage

Download NCBI Taxonomy database

wget ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz

Convert NCBI database to sqlite format

tar -zxvf taxdump.tar.gz
TaxonTools StoreTaxonDB ./taxdump taxdump.db

TODO


    # --------------------------------------------
    # command detail

    if args_dict["subcommand_name"] == "ID2Lineage":
        from toolbiox.src.xuyuxing.tools.taxontools import ID2Lineage_main
        ID2Lineage_main(args)

    elif args_dict["subcommand_name"] == "StoreTaxonDB":
        from toolbiox.lib.xuyuxing.evolution.taxonomy import build_taxon_database, store_tax_record_into_sqlite
        tax_record_dict = build_taxon_database(args.tax_dir)
        store_tax_record_into_sqlite(tax_record_dict, args.tax_db_file)

    elif args_dict["subcommand_name"] == "CommonTree":
        from toolbiox.src.xuyuxing.tools.taxontools import CommonTree_main
        CommonTree_main(args)

    elif args_dict["subcommand_name"] == "Name2Lineage":
        from toolbiox.src.xuyuxing.tools.taxontools import Name2Lineage_main
        Name2Lineage_main(args)

    elif args_dict["subcommand_name"] == "RankStat":
        from toolbiox.src.xuyuxing.tools.taxontools import RankStat_main
        RankStat_main(args)

    elif args_dict["subcommand_name"] == "ExcludeTaxon":
        """
        class abc():
            pass

        args = abc()
        args.tax_dir = '/lustre/home/xuyuxing/Database/genome2020/genome/info/NCBI/taxonomy'
        args.root_taxon_id = '73496'
        args.taxon_id = '40553'
        """
        from toolbiox.src.xuyuxing.tools.taxontools import ExcludeTaxon_main
        ExcludeTaxon_main(args)

    elif args_dict["subcommand_name"] == "DiamondTaxonAssign":
        """
        class abc():
            pass

        args = abc()
        args.blast_results = '/lustre/home/xuyuxing/Database/Cuscuta/Cau/genomev1.1/gene_taxon/Cuscuta.pt.v1.1.fasta.bls'
        args.tax_dir = '/lustre/home/xuyuxing/Database/NCBI/nr/2020/taxdmp'
        args.output_file = '/lustre/home/xuyuxing/Database/Cuscuta/Cau/genomev1.1/gene_taxon/Cuscuta.pt.v1.1.fasta.taxon'
        args.num_threads = 56
        """
        from toolbiox.src.xuyuxing.tools.taxontools import DiamondTaxonAssign_main
        DiamondTaxonAssign_main(args)

Metadata

Release files for taxontools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taxontools 0.1.0
File Size Uploaded Provenance Actions
taxontools-0.1.0.tar.gz 68.0 kB Without provenance Details for taxontools-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for taxontools 0.1.0
File Interpreter ABI Platform Actions
taxontools-0.1.0-py3-none-any.whl Python 3 none any Details for taxontools-0.1.0-py3-none-any.whl

Total release size: 136.1 kB

Release files / taxontools-0.1.0.tar.gz

Download URL taxontools-0.1.0.tar.gz
Size 68.0 kB
Tags Source
SHA-256 checksum
How to use checksums
97b02101574d98bd8a00d3a79daf2cb0782684ac34e7cef6d0949c971c0dba6c
BLAKE2b-256 checksum
How to use checksums
c86d03aeab427734944edd134277afda24dfc00de804f641755b5d2ced78a12e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.3

Release files / taxontools-0.1.0-py3-none-any.whl

Download URL taxontools-0.1.0-py3-none-any.whl
Size 68.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bce4b456f8fc0a4f3116a48f36e7004ff791d3ae6bb7a4ca38fd0b352f60732f
BLAKE2b-256 checksum
How to use checksums
ff7e1b43139d3589bd84b1220c8d623ee58d37c223a08300aa314ddeff57bc8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.3

Security for taxontools 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page