Unconfigured Ad

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

    #1

    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
                  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, Yesterday, 10:52 AM
                0 responses
                9 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-14-2026, 05:39 AM
                0 responses
                19 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-13-2026, 09:56 AM
                0 responses
                16 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-09-2026, 11:14 AM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Working...