0
|
1 <tool id="edu.tamu.cpt.blastp_to_gff3" name="BlastP Results to GFF3" version="19.1.0.0">
|
|
2 <description>converts blast xml results to a JBrowse-compatible file</description>
|
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 <import>cpt-macros.xml</import>
|
|
6 </macros>
|
|
7 <expand macro="requirements"/>
|
|
8 <command detect_errors="aggressive"><![CDATA[
|
|
9 $__tool_directory__/blast_to_gff3.py
|
|
10 $input_type.blast_input
|
|
11 #if $input_type.input_type_selector == "xml":
|
|
12 --blastxml
|
|
13 $input_type.include_seq
|
|
14 #elif $input_type.input_type_selector == "tsv":
|
|
15 --blasttab
|
|
16 #end if
|
|
17 > $output]]></command>
|
|
18 <inputs>
|
|
19 <conditional name="input_type">
|
|
20 <param name = "input_type_selector" type="select" label="Choose BlastP File Format">
|
|
21 <option value="xml" selected="true">BlastXML</option>
|
|
22 <option value="tsv">Blast 25 Column Table"</option>
|
|
23 </param>
|
|
24 <when value="xml">
|
|
25 <param name="blast_input" type="data" format="xml" label="BlastXML Input"/>
|
|
26 <param name="include_seq" type="boolean" label="Include protein alignment in Blast view in Apollo/JBrowse" truevalue="--include_seq" falsevalue="" />
|
|
27 </when>
|
|
28 <when value="tsv">
|
|
29 <param name="blast_input" type="data" format="tabular" label="Blast 25 Column Table"/>
|
|
30 </when>
|
|
31 </conditional>
|
|
32 </inputs>
|
|
33 <outputs>
|
|
34 <data format="gff3" name="output"/>
|
|
35 </outputs>
|
|
36 <tests>
|
|
37 <test>
|
|
38 <param name="input_type_selector" value="xml"/>
|
|
39 <param name="blast_input" value="BlastpXmlToGff_In.blastxml" ftype="xml"/>
|
|
40 <param name="include_seq" value="false"/>
|
|
41 <output name="output" file="BlastpXmlToGff_Out.gff3" ftype="gff3"/>
|
|
42 </test>
|
|
43 <test>
|
|
44 <param name="input_type_selector" value="xml"/>
|
|
45 <param name="blast_input" value="BlastpXmlToGff_In.blastxml" ftype="xml"/>
|
|
46 <param name="include_seq" value="true"/>
|
|
47 <output name="output" file="BlastpXmlToGff_OutWithSeq.gff3" ftype="gff3"/>
|
|
48 </test>
|
|
49 <test>
|
|
50 <param name="input_type_selector" value="tsv"/>
|
|
51 <param name="blast_input" value="BlastpTabToGff_In.tabular" ftype="tabular"/>
|
|
52 <param name="include_seq" value="false"/>
|
|
53 <output name="output" ftype="gff3">
|
|
54 <assert_contents>
|
|
55 <has_line line="##gff-version 3"/>
|
|
56 <has_n_lines n="122"/>
|
|
57 </assert_contents>
|
|
58 </output>
|
|
59 </test>
|
|
60 </tests>
|
|
61 <help><![CDATA[
|
|
62 **What it does**
|
|
63
|
|
64 Convert BlastP XML or tabular results into GFF3 format for visualization within JBrowse, please be sure to select the correct input option for your data.
|
|
65 This is critical for displaying the position of high-scoring pairs of the Target aligned against the Query. If you need to convert BlastN results, please use the "BlastN Results to GFF3" tool.
|
|
66
|
|
67 **Options::**
|
|
68
|
|
69 By selecting **Include protein alignment…**, the actual sequence alignment will be displayed
|
|
70 in the pop-up BLAST view in Apollo/JBrowse. This option currently only works when using XML input.
|
|
71
|
|
72 ]]></help>
|
|
73 <expand macro="citations" />
|
|
74 </tool>
|
|
75
|