GithubHelp home page GithubHelp logo

Comments (1)

Joseph7e avatar Joseph7e commented on May 28, 2024 1

Hello, I added a script with directions to construct an updated taxonomy lookup file. Basically download the script "genbank_nodes_and_names_to_taxonomy.py" and run these commands from a terminal.

mkdir ncbi_taxonomy/ && cd ncbi_taxonomy/
wget ftp://ftp.ncbi.nih.gov/pub/taxonomy/new_taxdump/new_taxdump.tar.gz
tar xvzf *.tar.gz
python3 genbank_nodes_and_names_to_taxonomy.py names.dmp nodes.dmp

This file should be good for any sequence data on NCBI.

If you construct a database from this NCBI this file will work but any custom database that satisfies the data structure should work with the script.

The custom database format is a seq_id followed by a tab followed by a semicolon separated taxonomy string. like this

2315627
Viruses;unknown_kingdom;unknown_phylum;unknown_subphylum;unknown_superclass;unknown_class;unknown_subclass;unknown_superorder;Caudovirales;unknown_superfamily;Siphoviridae;unknown_subfamily;unknown_genus;Bacillus phage Ray17

The sequence identifier (2315627 in the above example) should match the headers in the input reference fasta.

from assign-taxonomy-with-blast.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.