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

                • kinpict.com
                  Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                  by kinpict.com
                  The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
                  Today, 06:37 PM
                • SEQadmin2
                  16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                  by SEQadmin2





                  NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
                  10-30-2026, 06:46 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 11-12-2026, 07:59 AM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-05-2026, 09:25 AM
                0 responses
                35 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-03-2026, 11:54 AM
                2 responses
                56 views
                0 reactions
                Last Post kinpict.com  
                Started by SEQadmin2, 10-28-2026, 09:57 AM
                0 responses
                175 views
                0 reactions
                Last Post SEQadmin2  
                Working...