annotate blastxml_to_tabular.xml @ 0:d375502056f1 draft

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