How to know the query coverage
2
0
Entering edit mode
9.1 years ago

How to know the query coverage in the local blast output?

blast • 4.3k views
ADD COMMENT
1
Entering edit mode

what's your input ? for each hit ?

ADD REPLY
0
Entering edit mode

It looks like a good alternative. Thank you very much, Pierre

ADD REPLY
1
Entering edit mode
9.1 years ago

I quickly wrote a XSLT styleheet converting a blast+xml output to coverage data for each position of the query. The stylesheet is available at: https://github.com/lindenb/xslt-sandbox/blob/master/stylesheets/bio/ncbi/blast2coverage.xsl

Example:

$ xsltproc stylesheets/bio/ncbi/blast2coverage.xsl blastn.xml

#ID    DEF    POS    LENGTH    CONSENSUS    DEPTH
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    1    5386    GGGGGGGGGGGGGGGGGG    18
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    2    5386    AAAAAAAAAAAAAAAAAA    18
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    3    5386    GGGGGGGGGGGGGGGGGG    18
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    4    5386    TTTTTTTTTTTTTTTTTT    18
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    5    5386    TTTTTTTTTTTTTTTTTT    18
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    6    5386    TTTTTTTTTTTTTTTTTT    18
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    7    5386    TTTTTTTTTTTTTTTTTT    18
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    8    5386    AAAAAAAAAAAAAAAAAA    18
gi|9626372|ref|NC_001422.1|    Enterobacteria phage phiX174 sensu lato, complete genome    9    5386    TTTTTTTTTTTTTTTTTT    18
ADD COMMENT
0
Entering edit mode

Hello Pierre, do you know a easy and fast way to acess query coverage from tBLASTn? thanks!

ADD REPLY
0
Entering edit mode
9.0 years ago
Siva ★ 1.9k

If you set the 'outfmt' option to 6, 7 or 10, you can get the query coverage using

qcovs means Query Coverage Per Subject
qcovhsp means Query Coverage Per HSP
ADD COMMENT

Login before adding your answer.

Traffic: 1847 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6