comparison SMART/galaxy/modifyGenomicCoordinates.xml @ 36:44d5973c188c

Uploaded
author m-zytnicki
date Tue, 30 Apr 2013 15:02:29 -0400
parents
children
comparison
equal deleted inserted replaced
35:d94018ca4ada 36:44d5973c188c
1 <tool id="modifyGenomicCoordinates" name="modify genomic coordinates">
2 <description>Extend or shrink a list of genomic coordinates.</description>
3 <command interpreter="python"> ../Java/Python/modifyGenomicCoordinates.py -i $formatType.inputFileName
4 #if $formatType.FormatInputFileName == 'bed':
5 -f bed
6 #elif $formatType.FormatInputFileName == 'gff':
7 -f gff
8 #elif $formatType.FormatInputFileName == 'gff2':
9 -f gff2
10 #elif $formatType.FormatInputFileName == 'gff3':
11 -f gff3
12 #elif $formatType.FormatInputFileName == 'sam':
13 -f sam
14 #elif $formatType.FormatInputFileName == 'gtf':
15 -f gtf
16 #end if
17
18 #if $OptionStart.start == "Yes":
19 -s $OptionStart.startValue
20 #end if
21
22 #if $OptionEnd.end == "Yes":
23 -e $OptionEnd.endValue
24 #end if
25
26 #if $OptionFivePrim.five == "Yes":
27 -5 $OptionFivePrim.fivePValue
28 #end if
29
30 #if $OptionTroisP.TroisP == "Yes":
31 -3 $OptionTroisP.ThreePValue
32 #end if
33
34 -o $outputFile
35 </command>
36
37
38 <inputs>
39 <conditional name="formatType">
40 <param name="FormatInputFileName" type="select" label="Input File Format">
41 <option value="bed">bed</option>
42 <option value="gff">gff</option>
43 <option value="gff2">gff2</option>
44 <option value="gff3">gff3</option>
45 <option value="sam">sam</option>
46 <option value="gtf">gtf</option>
47 </param>
48 <when value="bed">
49 <param name="inputFileName" format="bed" type="data" label="Input File"/>
50 </when>
51 <when value="gff">
52 <param name="inputFileName" format="gff" type="data" label="Input File"/>
53 </when>
54 <when value="gff2">
55 <param name="inputFileName" format="gff2" type="data" label="Input File"/>
56 </when>
57 <when value="gff3">
58 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
59 </when>
60 <when value="sam">
61 <param name="inputFileName" format="sam" type="data" label="Input File"/>
62 </when>
63 <when value="gtf">
64 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
65 </when>
66 </conditional>
67
68 <conditional name="OptionStart">
69 <param name="start" type="select" label="shrink to the start of the feature">
70 <option value="Yes">Yes</option>
71 <option value="No" selected="true">No</option>
72 </param>
73 <when value="Yes">
74 <param name="startValue" type="integer" value="0"/>
75 </when>
76 <when value="No">
77 </when>
78 </conditional>
79
80 <conditional name="OptionEnd">
81 <param name="end" type="select" label="shrink to the end of the feature">
82 <option value="Yes">Yes</option>
83 <option value="No" selected="true">No</option>
84 </param>
85 <when value="Yes">
86 <param name="endValue" type="integer" value="0"/>
87 </when>
88 <when value="No">
89 </when>
90 </conditional>
91
92
93 <conditional name="OptionFivePrim">
94 <param name="five" type="select" label="extend to the 5' direction">
95 <option value="Yes">Yes</option>
96 <option value="No" selected="true">No</option>
97 </param>
98 <when value="Yes">
99 <param name="fivePValue" type="integer" value="0"/>
100 </when>
101 <when value="No">
102 </when>
103 </conditional>
104
105 <conditional name="OptionTroisP">
106 <param name="TroisP" type="select" label="extend to the 3' direction">
107 <option value="Yes">Yes</option>
108 <option value="No" selected="true">No</option>
109 </param>
110 <when value="Yes">
111 <param name="ThreePValue" type="integer" value="0"/>
112 </when>
113 <when value="No">
114 </when>
115 </conditional>
116
117
118 </inputs>
119
120 <outputs>
121 <data format="gff3" name="outputFile" label="[modifyGenomicCoordinates] Output File"/>
122 </outputs>
123
124 <help>
125 This tool reads a list of transcripts and modifies each feature by:
126
127 - shrinking it to the *n* first nucleotides or the *n* last nucleotides, or
128
129 - extending it to *n* nucleotides towards the 5' direction (upstream) or the 3' direction (downstream).
130
131 Note that the 5' or 3' direction depends on the orientation of the feature (the 5' end of a transcript located on the minus strand is on the right hand of this transcript!).
132
133 The tool needs a transcript file, its format, and outputs a new transcript file.
134 </help>
135 </tool>