Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benjwoodcroft
    Junior Member
    • Jul 2012
    • 2

    #1

    An important bug in BLAST+ 2.2.26+

    Hi everyone,

    TL;DR: Always use the -max_target_seqs flag when using BLAST unless you are using default verbose output, otherwise you might not get all the hits you should.


    Example:
    Code:
    $ blastn -perc_identity 97 -query my_query.fa -db nt -out result.txt
    $ blastn -perc_identity 97 -query my_query.fa -db nt -outfmt 6 -out result.csv
    $ grep '>' result.txt |wc -l
    186
    $ wc -l result.csv
    143 result.csv
    So you get different numbers of results using default textual output and csv format. I was able to 'rescue' it by adding the -max_target_seqs flag:
    Code:
    $ blastn -perc_identity 97 -max_target_seqs 500 -query my_query.fa -db nt -outfmt 6 -out result.csv2
    $ wc -l result.csv2
    186 result.csv2


    I confirmed this on the blast-help email helpdesk at NCBI. Their response:
    For output formats >4, -max_target_seqs should be explicitly set. In the next release, 2.2.27, you should get a commandline message to that effect
    This is true whether or not you use the -perc_identity flag as I did.

    Hope that helps someone, and does affect too many different pieces of software and science..
    ben

    --
    Tyson Laboratory, Australian Centre for Ecogenomics
  • SOLiDance
    Member
    • Jun 2010
    • 27

    #2
    Really? It's pretty serious one, Thanks! I'll keep it in mind

    Comment

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

      #3
      Wow - that sounds rather nasty. But what shocks me is the reply from the NCBI - are they really saying that in 2.2.27+ they won't fix it, they'll just add a warning!?

      Comment

      • benjwoodcroft
        Junior Member
        • Jul 2012
        • 2

        #4
        Originally posted by maubp View Post
        are they really saying that in 2.2.27+ they won't fix it, they'll just add a warning!?
        Potentially, we'll see. It might instead mean that it will become a required parameter, rather than just a warning. That doesn't seem perfect either though because software that runs blast under the hood will now start failing.

        Comment

        • kmcarr
          Senior Member
          • May 2008
          • 1181

          #5
          I have to say I don't really see this as a bug at all. Different reporting modes naturally take different parameter settings. Defaults for those parameters are set at some value reasonable and appropriate for the reporting mode chosen. It is up to the user to understand how the parameters chosen will effect the output. I will grant there may be some lack of clarity in the current documentation of the --max-target-sequences setting but the program is working as designed so you can't call that a "bug" and it doesn't need fixing.

          Comment

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

            #6
            You say undocumented 'feature', I say bug. And a nasty one as it causes silent data loss.

            Comment

            • BEpier
              Junior Member
              • Jul 2011
              • 2

              #7
              Hi,

              Do you have any idea on how the not reported hits behave? Do they share some common pattern or anything to be deleted or is it just something random?

              Thanks for the info!

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-22-2026, 11:13 AM
              0 responses
              26 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              20 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              36 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              43 views
              0 reactions
              Last Post SEQadmin2  
              Working...