annotate tools/ncbi_blast_plus/blastxml_to_tabular.xml @ 2:c2a356708570

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:42 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="blastxml_to_tabular" name="BLAST XML to tabular" version="0.0.8">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>Convert BLAST XML output to tabular</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 blastxml_to_tabular.py $blastxml_file $tabular_file $out_format
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="blastxml_file" type="data" format="blastxml" label="BLAST results as XML"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <param name="out_format" type="select" label="Output format">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="std" selected="True">Tabular (standard 12 columns)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <option value="ext">Tabular (extended 24 columns)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <data name="tabular_file" format="tabular" label="BLAST results as tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 </requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <param name="blastxml_file" value="blastp_four_human_vs_rhodopsin.xml" ftype="blastxml" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <param name="out_format" value="std" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <!-- Note this has some white space differences from the actual blastp output blast_four_human_vs_rhodopsin.tabluar -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <output name="tabular_file" file="blastp_four_human_vs_rhodopsin_converted.tabular" ftype="tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <param name="blastxml_file" value="blastp_four_human_vs_rhodopsin.xml" ftype="blastxml" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="out_format" value="ext" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <!-- Note this has some white space differences from the actual blastp output blast_four_human_vs_rhodopsin_22c.tabluar -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <output name="tabular_file" file="blastp_four_human_vs_rhodopsin_converted_ext.tabular" ftype="tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <param name="blastxml_file" value="blastp_sample.xml" ftype="blastxml" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <param name="out_format" value="std" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <!-- Note this has some white space differences from the actual blastp output -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <output name="tabular_file" file="blastp_sample_converted.tabular" ftype="tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 <param name="blastxml_file" value="blastx_rhodopsin_vs_four_human.xml" ftype="blastxml" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <param name="out_format" value="std" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <!-- Note this has some white space differences from the actual blastx output -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 <output name="tabular_file" file="blastx_rhodopsin_vs_four_human_converted.tabular" ftype="tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 <param name="blastxml_file" value="blastx_rhodopsin_vs_four_human.xml" ftype="blastxml" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <param name="out_format" value="ext" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <!-- Note this has some white space and XXXX masking differences from the actual blastx output -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 <output name="tabular_file" file="blastx_rhodopsin_vs_four_human_converted_ext.tabular" ftype="tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 <param name="blastxml_file" value="blastx_sample.xml" ftype="blastxml" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 <param name="out_format" value="std" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 <!-- Note this has some white space differences from the actual blastx output -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 <output name="tabular_file" file="blastx_sample_converted.tabular" ftype="tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 <param name="blastxml_file" value="blastp_human_vs_pdb_seg_no.xml" ftype="blastxml" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 <param name="out_format" value="std" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 <!-- Note this has some white space differences from the actual blastp output -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 <output name="tabular_file" file="blastp_human_vs_pdb_seg_no_converted_std.tabular" ftype="tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 <param name="blastxml_file" value="blastp_human_vs_pdb_seg_no.xml" ftype="blastxml" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 <param name="out_format" value="ext" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 <!-- Note this has some white space differences from the actual blastp output -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 <output name="tabular_file" file="blastp_human_vs_pdb_seg_no_converted_ext.tabular" ftype="tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 NCBI BLAST+ (and the older NCBI 'legacy' BLAST) can output in a range of
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 formats including tabular and a more detailed XML format. A complex workflow
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 may need both the XML and the tabular output - but running BLAST twice is
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 slow and wasteful.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 This tool takes the BLAST XML output and by default converts it into the
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 standard 12 column tabular equivalent:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 ====== ========= ============================================
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 Column NCBI name Description
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 ------ --------- --------------------------------------------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 1 qseqid Query Seq-id (ID of your sequence)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 2 sseqid Subject Seq-id (ID of the database hit)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 3 pident Percentage of identical matches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 4 length Alignment length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 5 mismatch Number of mismatches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 6 gapopen Number of gap openings
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 7 qstart Start of alignment in query
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 8 qend End of alignment in query
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 9 sstart Start of alignment in subject (database hit)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 10 send End of alignment in subject (database hit)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 11 evalue Expectation value (E-value)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 12 bitscore Bit score
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 ====== ========= ============================================
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 The BLAST+ tools can optionally output additional columns of information,
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 but this takes longer to calculate. Most (but not all) of these columns are
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 included by selecting the extended tabular output. The extra columns are
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 included *after* the standard 12 columns. This is so that you can write
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 workflow filtering steps that accept either the 12 or 22 column tabular
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 BLAST output.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 ====== ============= ===========================================
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105 Column NCBI name Description
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 ------ ------------- -------------------------------------------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 13 sallseqid All subject Seq-id(s), separated by a ';'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 14 score Raw score
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 15 nident Number of identical matches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 16 positive Number of positive-scoring matches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 17 gaps Total number of gaps
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 18 ppos Percentage of positive-scoring matches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 19 qframe Query frame
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 20 sframe Subject frame
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 21 qseq Aligned part of query sequence
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 22 sseq Aligned part of subject sequence
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 23 qlen Query sequence length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 24 slen Subject sequence length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 ====== ============= ===========================================
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 Beware that the XML file (and thus the conversion) and the tabular output
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 direct from BLAST+ may differ in the presence of XXXX masking on regions
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 low complexity (columns 21 and 22), and thus also calculated figures like
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 the percentage idenity (column 3).
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 </tool>