Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Can blastp (blast+) print a line for seqs with no hits when using -outfmt 6?

    Hi all,

    I'm trying to write a script that processes blastp output when using the -outfmt 6 setting. I want blastp to print a line for sequences with no hits. It doesn't matter what the line says as long as the name of the query sequence is printed. I thought about making the e-value really high but some sequences will still hit nothing. Is this possible?

    Example command:
    blastp+ -db good -query input.fa -num_descriptions 1 -num_alignments 1 -outfmt 6 -num_threads 6 > intput_vs_good.txt

    Thanks!
    Kevin

  • #2
    In order to determine which reads have no hits you simply create a file of sequence IDs with a BLAST hit (call this set i) and create another file with all your sequence IDs in the query file (call this set j). Next, sort the files (it is difficult to optimize the sort command without seeing your sequence IDs) and then compare the files to find the IDs in set j that are not in set i. That should help you design your script, but personally I would not write a script for this job. If you are familiar with the unix tool chain you can do all this in a couple of commands with cut, grep, sed, sort, and comm.

    Comment


    • #3
      Originally posted by SES View Post
      In order to determine which reads have no hits you simply ... and create another file with all your sequence IDs in the query file (call this set j)...
      I find the input query FASTA file works very well for this if writing a simple script.

      Comment


      • #4
        Originally posted by maubp View Post
        I find the input query FASTA file works very well for this if writing a simple script.
        That is correct. I was referring to the query Fasta file when I mentioned the "query file." Sorry if that was not clear. There is one more dependency that I had not mentioned with a command line approach. That is, you would need some program for indexing the query Fasta and extracting your IDs that did not appear in the BLAST report (e.g., cdbfasta, Vmatch, leaff, etc.).

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin




          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
          04-22-2024, 07:01 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Today, 11:49 AM
        0 responses
        10 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, Yesterday, 08:47 AM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        61 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        60 views
        0 likes
        Last Post seqadmin  
        Working...
        X