Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • JollofScientist
    Junior Member
    • Jan 2014
    • 2

    Comparing BLAST m8 Outputs

    Hi,

    I want to compare BLAST outputs in m8 format to find out if any queries in the separate output files have the same subject hits to NCBI nr database.

    For example, for the 2 BLAST outputs in m8 format below, displaying only the query and subject columns, I want to find PFD1 and GHT3 have the same hit (Hsp90):

    BLAST Output 1:

    PFD1 Hsp90
    PFD2 Gan80
    PFD5 Kan38

    BLAST Output 2:

    GHT1 Lsg70
    GHT2 Jkl78
    GHT3 Hsp90
    GHT6 Odf45


    Any help, suggestions or recommendations will be greatly appreciated. Also let me know if you have any questions.
  • TiborNagy
    Senior Member
    • Mar 2010
    • 329

    #2
    You can write a custom script, where a hash key is the second column (preferred), or you can write some shell script like this:
    awk '{print $2}' blast1 | sort >a; awk '{print $2}' blast2 | sort >b; comm -12 a b >common.txt; for i in `cat common.txt`; do grep $i blast1 blast2; done

    But you can combine the querys to one file and run Blast with that.

    Comment

    • lindenb
      Senior Member
      • Apr 2010
      • 143

      #3
      cross posted on biostars: http://www.biostars.org/p/90325/

      Comment

      • JollofScientist
        Junior Member
        • Jan 2014
        • 2

        #4
        Thanks for the help. Rookie mistake with the cross post. It won't happen again.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by SEQadmin2



          Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
          ...
          Yesterday, 11:10 AM
        • SEQadmin2
          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
          by SEQadmin2



          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
          07-08-2026, 05:17 AM
        • GATTACAT
          Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by GATTACAT
          Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
          07-01-2026, 11:43 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 10:04 AM
        0 responses
        10 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-08-2026, 10:08 AM
        0 responses
        7 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-07-2026, 11:05 AM
        0 responses
        15 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-02-2026, 11:08 AM
        0 responses
        31 views
        0 reactions
        Last Post SEQadmin2  
        Working...