annotate SMART/bacteriaRegulatoryRegion_Detection/changeName.xml @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
1 <tool id="changeName" name="changeName">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
2 <description>Change the chromosome name or gene name of a singla fasta, gff or sam file. For this tool, it can not treat mutiple-chromosome, gene files.</description>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
3 <command interpreter="python">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
4 changeName.py
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
5 #if $optionFasta.fastaFile == 'Yes':
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
6 --input1 $optionFasta.fasta --output1 $outputFasta
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
7 #end if
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
8 #if $optionGff.gffFile == 'Yes':
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
9 --input2 $optionGff.gff --output2 $outputGff
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
10 #end if
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
11 #if $optionSam.samFile == 'Yes':
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
12 --input3 $optionSam.sam --output3 $outputSam
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
13 #end if
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
14 #if $optionName.name == 'Yes':
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
15 --name $optionName.nameValue
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
16 #end if
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
17 </command>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
18
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
19 <inputs>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
20 <conditional name="optionFasta">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
21 <param name="fastaFile" type="select" label="You can choose a fasta input file to change the name." >
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
22 <option value="Yes">Yes</option>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
23 <option value="No" selected="true">No</option>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
24 </param>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
25 <when value="Yes">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
26 <param name="fasta" format="fasta" type="data" label="Identify you fasta input file."/>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
27 </when>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
28 <when value="No">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
29 </when>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
30 </conditional>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
31
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
32 <conditional name="optionGff">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
33 <param name="gffFile" type="select" label="You can choose a supplementary gff input file to change the name." >
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
34 <option value="Yes">Yes</option>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
35 <option value="No" selected="true">No</option>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
36 </param>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
37 <when value="Yes">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
38 <param name="gff" format="gff" type="data" label="Identify you gff input file."/>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
39 </when>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
40 <when value="No">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
41 </when>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
42 </conditional>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
43
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
44 <conditional name="optionSam">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
45 <param name="samFile" type="select" label="You can choose a supplementary sam input file to change the name." >
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
46 <option value="Yes">Yes</option>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
47 <option value="No" selected="true">No</option>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
48 </param>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
49 <when value="Yes">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
50 <param name="sam" format="sam" type="data" label="Identify you sam input file."/>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
51 </when>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
52 <when value="No">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
53 </when>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
54 </conditional>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
55
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
56 <conditional name="optionName">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
57 <param name="name" type="select" label="Identify a new name to change." >
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
58 <option value="Yes">Yes</option>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
59 <option value="No" selected="true">No</option>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
60 </param>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
61 <when value="Yes">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
62 <param name="nameValue" type="text" value="None" label="Identify the new name."/>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
63 </when>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
64 <when value="No">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
65 </when>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
66 </conditional>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
67 </inputs>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
68
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
69 <outputs>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
70 <data name="outputFasta" format="fasta">
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
71 <filter>optionFasta['fastaFile'] == 'Yes'</filter>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
72 </data>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
73 <data format="gff" name="outputGff" >
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
74 <filter>optionGff['gffFile'] == 'Yes'</filter>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
75 </data>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
76 <data format="sam" name="outputSam" >
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
77 <filter>optionSam['samFile'] == 'Yes'</filter>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
78 </data>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
79 </outputs>
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
80 </tool>