Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thmourikis
    Junior Member
    • May 2013
    • 8

    #1

    Extracting unique BLAST hits from a multi-hit region

    Hi all,

    I have a blast output file (from BLAST command line tool) and I want to extract from it the unique hits. I have several genomic regions of variable size and I explore them using BLAST against a home made database (there is redundancy in it). What I want to get out is one hit per fragment of the examined region. Any suggestions? I am using perl, so any answers using BioPerl would be highly appreciated.

    Thanks a lot in advance.
    Thanos
  • rhinoceros
    Senior Member
    • Apr 2013
    • 372

    #2
    If you used tabular output, it would be rather trivial to parse it with cut and sort and then retrieve the sequences from your db with blastdbcmd..
    Last edited by rhinoceros; 07-02-2013, 09:23 AM.
    savetherhino.org

    Comment

    • thmourikis
      Junior Member
      • May 2013
      • 8

      #3
      Hi rhinoceros and thanks a lot for your immediate response. By tabular output do you mean option 6 in the -outfmt flag?

      I will try what you suggested, seems indeed fairly simple.

      Thanks once again,
      Thanos

      Comment

      • rhinoceros
        Senior Member
        • Apr 2013
        • 372

        #4
        Yeah, -outfmt 6

        Also, have a look here. It's probably rather relevant (second post)
        savetherhino.org

        Comment

        • thmourikis
          Junior Member
          • May 2013
          • 8

          #5
          Thanks a lot once again for your help. I really appreciate that.

          Comment

          • thmourikis
            Junior Member
            • May 2013
            • 8

            #6
            Do you probably know how I can add subject description in the tabular output? I need them for the next steps in my pipeline. :-)

            Thanks in advance.

            Comment

            • rhinoceros
              Senior Member
              • Apr 2013
              • 372

              #7
              Have a look at the manual

              syntax would be e.g. -outfmt '6 std stitle'

              However, since your db is not provided by ncbi, this will not work (or so I'd reason). Anyway, if you created your db with -parse_seqids and the descriptions are stored there in the headers, you can just take the hits from your blast and retrieve the sequences and descriptions with blastdbcmd.

              cut -f 1 yourTabOutput | sort -u > id_list (or maybe it's cut -f 2..)
              blastdbcmd -entry_batch id_list ..etc
              Last edited by rhinoceros; 07-03-2013, 03:42 AM.
              savetherhino.org

              Comment

              • thmourikis
                Junior Member
                • May 2013
                • 8

                #8
                Thank you once again for your response rhinoceros. I will go through it right now and check the option you suggested.

                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
                37 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-22-2026, 10:48 AM
                0 responses
                28 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-15-2026, 10:52 AM
                0 responses
                41 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-14-2026, 05:39 AM
                0 responses
                45 views
                0 reactions
                Last Post SEQadmin2  
                Working...