Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Tsuyoshi
    Member
    • Sep 2012
    • 24

    Basic question about local BLASTP

    Hello.

    I am using local BLASTP program to blast my protein sequences (around 600 sequences) against other organism's whole proteome database. What I want to do is to filter the output by some parameters. I have applied a reciprocal best_hit strategy, and the parameters were set as 'max identity > 30%', e<1e-10 and best_hit_overhang 0.25). However, in some cases, for example, the max identity between one best-hit set of query and subject sequence was as high as 40%, the query coverage was only 2%. Therefor, I want to exclude the best-hit sequences like that by setting a parameter like 'query coverage > 30%'.

    The web based blast on NCBI could show the query coverage, but I do not know what is the command line for local BLASTP to output "query coverage". Please give me some ideas to resolve this problem. Thanks!
    Last edited by Tsuyoshi; 04-22-2013, 05:18 PM.
  • mknut
    Member
    • Jul 2012
    • 23

    #2
    You can try this:

    Update to the newest BLAST+ package.
    Use
    Code:
    -outfmt
    , which allows the output to be in custom format. You can find documentation on custom output format here (BLAST Command Line Applications User Manual, Appendix C, option 'outfmt'). From what I see the values to use are
    Code:
    -outfmt 6 qcovs
    , which should add query coverage per sequence value at the end of each output line and save it in tab-delimited format.

    Comment

    • Tsuyoshi
      Member
      • Sep 2012
      • 24

      #3
      Originally posted by mknut View Post
      You can try this:

      Update to the newest BLAST+ package.
      Use
      Code:
      -outfmt
      , which allows the output to be in custom format. You can find documentation on custom output format here (BLAST Command Line Applications User Manual, Appendix C, option 'outfmt'). From what I see the values to use are
      Code:
      -outfmt 6 qcovs
      , which should add query coverage per sequence value at the end of each output line and save it in tab-delimited format.
      Thank you mknut.

      I tried adding qcovs, however, the output files did not contain the qcovs information. For example, if I input the command as outfmt "qacc sacc evalue bitscore qcovs", the output files only contained qacc sacc evalue bitoscore. I am thinking whether qcovs is only available for blast but not for blastp.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Originally posted by Tsuyoshi View Post
        I am thinking whether qcovs is only available for blast but not for blastp.
        The manual seems to indicate that those options are available for all blast+ programs. Have you tried 'std qcovs'?

        Or perhaps the command needs to be (note: single quotes):

        Code:
        -outfmt 6 [COLOR="Red"]'[/COLOR]qcovs[COLOR="Red"]'[/COLOR]
        Last edited by GenoMax; 04-23-2013, 04:47 AM.

        Comment

        • mknut
          Member
          • Jul 2012
          • 23

          #5
          Table C1: Options common to all BLAST+ search applications.
          So yes, it seems that this command should be applicable to BLASTp. It also seems that the proper syntax to use is with double quotes, containing numerical argument as well as the rest (single quotes might work) so:
          Code:
          -outfmt "6 qcovs"
          If this does not work, you might want to think about calculating the coverage % with a script, taking query lenght from your BLASTp query and alignment length from 'length' of BLASTp output.

          Comment

          Latest Articles

          Collapse

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 06-09-2026, 11:58 AM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-05-2026, 10:09 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-04-2026, 08:59 AM
          0 responses
          38 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-02-2026, 12:03 PM
          0 responses
          61 views
          0 reactions
          Last Post SEQadmin2  
          Working...