Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Converting Blast+ output to Fasta sequence files

    Hi All,

    I have a bioinformatics problem that I'm hoping others have encountered (and solved) already.

    I have a transcriptome that I have BLASTed against itself to look for putatively-paralogous genes. Right now the Blastn results are in tab-separated format, with several thousand rows of results. After filtering the results to remove unhelpful stuff (e.g., very, very short hsp's or sequences that hit to themselves), what I would like to be able to do is take each hit between two sequences, find the full sequences in the original transcriptome fasta file and output the two sequences into a new fasta file. Ideally, I would like to able to do this in a relatively automated manner, so that I get separate fasta files for each hit from my Blastn results.

    Is anybody aware of a script or utility that could do something like that? My coding skills are not great, and I'm hoping that I don't have to spend a lot of time inventing (reinventing?) the wheel on this. Any help or suggestions would be appreciated! Thanks.

  • #2
    You probably want to use blastdbcmd to pull the full sequences from the BLAST database (assuming you are using NCBI BLAST+, this tool had a different name in NCBI legacy BLAST).

    Comment


    • #3
      Originally posted by maubp View Post
      You probably want to use blastdbcmd to pull the full sequences from the BLAST database (assuming you are using NCBI BLAST+, this tool had a different name in NCBI legacy BLAST).
      Thanks for the suggestion! Based on other threads I've seen, I had been considering using blastdbcmd, however if I understand correctly, this will only output a single file containing whatever sequences correspond to the ID's from the list provided as an argument. Is there a way to make blastdbcmd output multiple files?

      Comment


      • #4
        If you want one sequence per FASTA file, either call blastdbcmd many times in a loop, or divide the big FASTA file using a tool like EMBOSS seqretsplit http://emboss.open-bio.org/rel/rel6/...qretsplit.html or a simple script.

        Comment


        • #5
          Originally posted by maubp View Post
          If you want one sequence per FASTA file, either call blastdbcmd many times in a loop, or divide the big FASTA file using a tool like EMBOSS seqretsplit http://emboss.open-bio.org/rel/rel6/...qretsplit.html or a simple script.
          Thanks! With a bit of fiddling around, I was able to get blastdbcmd to output the sequences I needed (and in the order I needed them to be in), and then I used Fasta Splitter to separate the putatively-paralogous sequences into their own files. Thanks for taking the time to help me!

          Comment


          • #6
            Good work

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM
            • seqadmin
              Strategies for Sequencing Challenging Samples
              by seqadmin


              Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
              03-22-2024, 06:39 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            22 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            16 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            46 views
            0 likes
            Last Post seqadmin  
            Working...
            X