Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • SDPA_Pet
    Senior Member
    • Apr 2013
    • 222

    Which BLAST output format can give full taxonomony information

    Hi, I was wondering which BLAST output format I should use to do this. I want to blast against nt database. I want the output not only gives me genus and species name, but also gives me phylum, order, family name.

    Is it possible?
  • jameslz
    Member
    • Nov 2009
    • 20

    #2
    you can use the GI number to map the tax id and the get the complete taxonomic lineage information via taxdump.tar.Z. ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/

    Comment

    • SDPA_Pet
      Senior Member
      • Apr 2013
      • 222

      #3
      Is it possible to map it when I blast it? or I need to get blast result first and then map to tax?

      Which command I should use to map the tax id?

      Comment

      • jameslz
        Member
        • Nov 2009
        • 20

        #4
        blast output format 6, 7, and 10 can be additionally configured to produce a custom format , it includes the Subject Taxonomy ID (staxids flag),
        for example:
        blastx -query Human_kinase_rna-100.fasta -db ../ccds/CCDS_protein.20130430 -out Human_kinase-rna-blastx-m7.tbl -evalue 1 -outfmt “7 qseqid qlen slen qcovhsp sseqid staxids bitscore score evalue pident qstart qend sstart send” -num_alignments 10 -num_threads 8
        I use a perl script to fetch the complete taxonomic lineage information of the blast staxids.

        Comment

        • SDPA_Pet
          Senior Member
          • Apr 2013
          • 222

          #5
          Originally posted by jameslz View Post
          blast output format 6, 7, and 10 can be additionally configured to produce a custom format , it includes the Subject Taxonomy ID (staxids flag),
          for example:

          I use a perl script to fetch the complete taxonomic lineage information of the blast staxids.
          Do I need to put the complete taxonomic lineage information file (ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/) in the same folder with my database file? In your example, I didn't see your command call any taxonomic lineage information file.

          Comment

          • SDPA_Pet
            Senior Member
            • Apr 2013
            • 222

            #6
            Hi use format 7 and use your command settings

            I still do have the taxonomic lineage and I don't know how to use the taxonomic lineage file

            Here is my output.

            query id query length subject length % hsp coverage subject id subject tax ids bit score score evalue % identity q. start q. end s. start " s. end "
            denovo0 266 297 85 gi|14718977|gb|AF352544.1| 163259 351 190 1.00E-93 95.15 39 265 1 219
            denovo1 400 1178 100 gi|117572484|gb|DQ979290.1| 1211 706 382 0 98.5 1 400 670 1069

            Comment

            • jameslz
              Member
              • Nov 2009
              • 20

              #7
              Usage:
              perl tax_trace.pl nodes.dmp names.dmp taxids.txt taxids_export.txt
              input file:taxids.txt
              format: seqId taxId
              gl00001 192
              gl00002 2020
              nodes.dmp names.dmp can be download from taxdump.tar.Z (ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/)


              output file:taxids_export.txt
              gl00001 Azospirillum brasilense root|cellular organisms|Bacteria|Proteobacteria|Alphaproteobacteria|Rhodospirillales|Rhodospirillaceae|Azospirillum|Azospirillum brasilense no rank|no rank|superkingdom|phylum|class|order|family|genus|species
              gl00002 Thermomonospora curvata root|cellular organisms|Bacteria|Actinobacteria|Actinobacteria|Actinobacteridae|Actinomycetales|Streptosporangineae|Thermomonosporaceae|Thermomonospora|Thermomonospora curvata no rank|no rank|superkingdom|phylum|class|subclass|order|suborder|family|genus|species
              Attached Files

              Comment

              • SDPA_Pet
                Senior Member
                • Apr 2013
                • 222

                #8
                Originally posted by jameslz View Post
                Usage:


                input file:taxids.txt
                format: seqId taxId


                nodes.dmp names.dmp can be download from taxdump.tar.Z (ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/)


                output file:taxids_export.txt
                Thank you. Can you also post your "taxids.txt" and "taxids_export.txt" file. I need to make sure my input file format is right and the output file is what I want. The attachment is my blastoutput and taxid. It didn't work.
                Thank you.
                Attached Files
                Last edited by SDPA_Pet; 02-19-2014, 08:32 AM.

                Comment

                • jameslz
                  Member
                  • Nov 2009
                  • 20

                  #9
                  You can parse the blast out file using:
                  cut -f1,6 blastout.txt >taxids.txt
                  and then:
                  perl tax_trace.pl nodes.dmp names.dmp taxids.txt taxids_export.txt

                  Comment

                  • SDPA_Pet
                    Senior Member
                    • Apr 2013
                    • 222

                    #10
                    Hi, what does this mean? "cut -f1,6 blastout.txt >taxids.txt"

                    Comment

                    • jameslz
                      Member
                      • Nov 2009
                      • 20

                      #11
                      Originally posted by SDPA_Pet View Post
                      Hi, what does this mean? "cut -f1,6 blastout.txt >taxids.txt"
                      Linux Command, Get the first and the sixth collumn (taxids)

                      Comment

                      • SDPA_Pet
                        Senior Member
                        • Apr 2013
                        • 222

                        #12
                        Oh, my taxon id is the 5th column. I have another attachment in my post. Is that correct? I can't get taxon information from that file.

                        Comment

                        • jameslz
                          Member
                          • Nov 2009
                          • 20

                          #13
                          Just fetch the "query id" and "tax ids" collumn .

                          Comment

                          • maubp
                            Peter (Biopython etc)
                            • Jul 2009
                            • 1544

                            #14
                            Which BLAST output format can give full taxonomony information?

                            Not the XML output (for now), but the optional taxonomy columns in the tabular/comma separated output get you close:
                            For some time I had thought that the best option for computer parsing of BLAST+ output was BLAST XML. It had all the key bits of information...

                            Comment

                            • yzzhang
                              Member
                              • Jan 2013
                              • 67

                              #15
                              I think blast+ has option to include taxonomy information. the "sscinames" option --- unique Subject Scientific Name(s)

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                by SEQadmin2



                                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                                ...
                                07-09-2026, 11:10 AM
                              • SEQadmin2
                                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                                by SEQadmin2



                                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                                07-08-2026, 05:17 AM
                              • GATTACAT
                                Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                                by GATTACAT
                                Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                                07-01-2026, 11:43 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, 07-09-2026, 10:04 AM
                              0 responses
                              23 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-08-2026, 10:08 AM
                              0 responses
                              15 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-07-2026, 11:05 AM
                              0 responses
                              33 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-02-2026, 11:08 AM
                              0 responses
                              31 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...