Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • sammy07
    Member
    • Nov 2010
    • 20

    Convertig blastplus to blast output

    Hi all,

    here is the next blast problem (and I'm actually not sure there is a solution for this). I need to perform a blast against nr with some species/gis excluded. Formatdb offers the possibility to create a database subset based on a positive gi list; however, if this list is huge, the blast takes very long.
    The blast+ application offers both a positive and a negative gi list argument and performs much more efficient.
    However, I use some programs which expect the old plain-text blastall output as input and fail to parse the blast+ output (which differs in some details from blastall output).

    So, this is my question: does somebody know of a possibility to convert the blast+ output to the old blast output format?

    Thanks in advance and best regards!
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    There is a reason that for years (*) the NCBI (and projects like BioPerl and Biopython) have been telling people not to try to parse the plain text BLAST output - the NCBI have a long history of tweaking the text presentation and thus breaking parsers.

    Can you not use the tabular or XML output formats?

    (*) I think it must be years by now...

    Comment

    • sammy07
      Member
      • Nov 2010
      • 20

      #3
      Thanks for your reply. I think you are perfectly right. It's just that some of the programs I use seem to expect plain text BLAST output. I might try to tweak the BLAST+ output so the parser can read it...

      However, I'm having trouble with BLAST+ right now.

      blastx -db nr -frame_shift_penalty 15 -query myquery.fa
      throws an exception:

      Error: NCBI C++ Exception:
      "/am/ncbiapdata/release/blast/src/2.2.25/Linux64-Suse-icc/c++/ICC1010-ReleaseMT64--Linux64-Suse-icc/../src/objects/seq/../seqalign/Seq_align.cpp", line 670: Error: CreateDensegFromStdseg(): Std-seg segment lengths not accurate!
      The query is:

      >myquery
      GTTCTACATAAGCAACAGGTATATGCCCAACGTTATTATTCTTCTATATAAAAGATAAGCAAATC
      There is no exception if there is no frame-shift-penalty argument or if the sequence is different (e.g. the last 5 nucleotides removed). Someone knows what I'm doing wrong?

      Comment

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

        #4
        Originally posted by sammy07 View Post
        Thanks for your reply. I think you are perfectly right. It's just that some of the programs I use seem to expect plain text BLAST output. I might try to tweak the BLAST+ output so the parser can read it...
        I remember having to tweak the Biopython parser to take BLAST+ plain text output.
        Originally posted by sammy07 View Post
        However, I'm having trouble with BLAST+ right now.
        ...
        Someone knows what I'm doing wrong?
        I've not seen that before. I'm trying the example here (although it is likely our copies of the NR database won't be exactly the same).

        Update - Same Error: CreateDensegFromStdseg(): Std-seg segment lengths not accurate! here from BLAST 2.2.25+ under both Linux 32 bit, Linux 64 bit and Mac OS X.

        You should report this to the NCBI.
        Last edited by maubp; 08-11-2011, 06:17 AM.

        Comment

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

          #5
          Originally posted by maubp View Post
          You should report this to the NCBI.
          I've reported this by email.

          Update: Wayne Matten at the NCBI replied this was a known bug, and the BLAST developers are still working on a solution.
          Last edited by maubp; 08-15-2011, 12:51 AM.

          Comment

          • sammy07
            Member
            • Nov 2010
            • 20

            #6
            Great, thanks a lot!!

            Comment

            • sammy07
              Member
              • Nov 2010
              • 20

              #7
              BLASTX 2.2.26+
              ...
              Error: CreateDensegFromStdseg(): Std-seg segment lengths not accurate!


              Doesn't seem that it has changed with blast 2.2.26+. It's a pity...

              Comment

              • sammy07
                Member
                • Nov 2010
                • 20

                #8
                The problem was elegantly solved by the blast release 2.2.27+. The parameter -frame_shift_penalty no longer exists.

                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-13-2026, 10:26 AM
                0 responses
                24 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-09-2026, 10:04 AM
                0 responses
                34 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-08-2026, 10:08 AM
                0 responses
                21 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-07-2026, 11:05 AM
                0 responses
                34 views
                0 reactions
                Last Post SEQadmin2  
                Working...