Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flacchy
    Member
    • Apr 2013
    • 33

    #1

    extract reads from Blast output

    Hi...

    I hope that someone can help me out with this one.

    I ran blast against a db I created (specifically is from an organism I want to remove from my reads). So I ran the blast analyses and now I would like to extract all the reads and sequence that didn't have hits.

    is this possible and how can I extract the reads I want from the blast output?

    Thanks

    F.
  • okorist
    Junior Member
    • Jul 2013
    • 3

    #2
    I suggest that you add the option "-outfmt 7" when running blast. This would make the result look like this:

    # Fields: query id, subject id, % identity, alignment length, mismatches, gap opens, q. start, q. end, s. start, s. end, evalue, bit score
    5 # 157 hits found
    6 sp|Q91G65|032R_IIV6 gi|15078745|ref|NP_149495.1| 100.00 100 0 0 1 100 1 100 6e-64 198
    7 sp|Q91G65|032R_IIV6 gi|291396174|ref|XP_002714758.1| 36.56 93 58 1 9 100 60 152 4e-15 74.7
    8 sp|Q91G65|032R_IIV6 gi|296198107|ref|XP_002746567.1| 35.48 93 59 1 9 100 60 152 5e-15 74.3
    9 sp|Q91G65|032R_IIV6 gi|116004445|ref|NP_001070581.1| 36.56 93 58 1 9 100 60 152 8e-15 73.9
    10 sp|Q91G65|032R_IIV6 gi|126309825|ref|XP_001370260.1| 36.56 93 58 1 9 100 60 152 1e-14 73.6

    Then it would be easier to extract the reads from the output.

    Comment

    • flacchy
      Member
      • Apr 2013
      • 33

      #3
      I used a script to obtain the same output ... the issue is extract them...

      Comment

      • rhinoceros
        Senior Member
        • Apr 2013
        • 372

        #4
        Originally posted by flacchy View Post
        I used a script to obtain the same output ... the issue is extract them...
        blastdbcmd, read the manual..
        savetherhino.org

        Comment

        • flacchy
          Member
          • Apr 2013
          • 33

          #5
          I've read the manual but I found more useful use the script ncbi_parse.pl because I needed the description of the organism before and the tab output don't gave that infromation (I saw also in some blog other people having the same issue) I was only wondering if there was a way to extract the reads and sequence of the no hits from the output...

          Comment

          • rhinoceros
            Senior Member
            • Apr 2013
            • 372

            #6
            Originally posted by flacchy View Post
            I've read the manual but I found more useful use the script ncbi_parse.pl because I needed the description of the organism before and the tab output don't gave that infromation (I saw also in some blog other people having the same issue) I was only wondering if there was a way to extract the reads and sequence of the no hits from the output...
            With blast 2.2.28+ you can have organism name in the output given you have setup taxdb properly and use e.g. -outfmt '6 std sscinames'..
            savetherhino.org

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #7
              flacchy wants to extract reads that did not have a blast hit in results. Not sure if blastdbcmd allows that.

              Comment

              • rhinoceros
                Senior Member
                • Apr 2013
                • 372

                #8
                Originally posted by GenoMax View Post
                flacchy wants to extract reads that did not have a blast hit in results. Not sure if blastdbcmd allows that.
                Ah yeah, my bad. So for tsv/csv output:

                cut -f 1 (optional -d ',' for csv) yourResultFile | sort -u > seqIdsYouWantToRemove.txt. Then ideas for that from for example here..
                Last edited by rhinoceros; 07-25-2013, 06:28 AM.
                savetherhino.org

                Comment

                • yzzhang
                  Member
                  • Jan 2013
                  • 67

                  #9
                  once you get the reads list you want to remove, you can use comm command to get left reads names wanted, and then extract them very easily. fastqselect.tcl from mira software works very well

                  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...