6
|
1 <tool id="SelectByTag" name="select by tag">
|
15
|
2 <description>Keep the genomic coordinates such that a value of a given tag.</description>
|
18
|
3 <requirements>
|
|
4 <requirement type="set_environment">PYTHONPATH</requirement>
|
|
5 </requirements>
|
6
|
6 <command interpreter="python">
|
|
7 ../Java/Python/SelectByTag.py -i $formatType.inputFileName
|
|
8 #elif $formatType.FormatInputFileName == 'gff':
|
|
9 -f gff
|
|
10 #elif $formatType.FormatInputFileName == 'gff2':
|
|
11 -f gff2
|
|
12 #elif $formatType.FormatInputFileName == 'gff3':
|
|
13 -f gff3
|
|
14 #elif $formatType.FormatInputFileName == 'gtf':
|
|
15 -f gtf
|
|
16 #end if
|
|
17
|
|
18 -g $Tag
|
|
19 #if $OptionValue.Value == "Yes":
|
|
20 -a $OptionValue.valeur
|
|
21 #end if
|
|
22 #if $OptionMax.maximum == "Yes":
|
|
23 -M $OptionMax.max
|
|
24 #end if
|
|
25 #if $OptionMin.minimum == "Yes":
|
|
26 -m $OptionMin.min
|
|
27 #end if
|
|
28
|
|
29 #if $OptionDefault.default == "Yes":
|
|
30 -d $OptionDefault.defaultValue
|
|
31 #end if
|
|
32
|
|
33 -o $outputFileGff
|
|
34 </command>
|
|
35
|
|
36 <inputs>
|
|
37 <conditional name="formatType">
|
|
38 <param name="FormatInputFileName" type="select" label="Input File Format">
|
|
39 <option value="gff">gff</option>
|
|
40 <option value="gff2">gff2</option>
|
|
41 <option value="gff3">gff3</option>
|
|
42 <option value="gtf">gtf</option>
|
|
43 </param>
|
|
44 <when value="gff">
|
|
45 <param name="inputFileName" format="gff" type="data" label="Input File"/>
|
|
46 </when>
|
|
47 <when value="gff2">
|
|
48 <param name="inputFileName" format="gff2" type="data" label="Input File"/>
|
|
49 </when>
|
|
50 <when value="gff3">
|
|
51 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
|
|
52 </when>
|
|
53 <when value="gtf">
|
|
54 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
|
|
55 </when>
|
|
56 </conditional>
|
|
57
|
|
58 <param name="Tag" type="text" value="None" label="tag option" help="A given tag, you must choose a tag."/>
|
|
59
|
|
60 <conditional name="OptionValue">
|
15
|
61 <param name="Value" type="select" label="given value for the tag">
|
6
|
62 <option value="Yes">Yes</option>
|
|
63 <option value="No" selected="true">No</option>
|
|
64 </param>
|
|
65 <when value="Yes">
|
15
|
66 <param name="valeur" type="integer" value="1"/>
|
6
|
67 </when>
|
|
68 <when value="No">
|
|
69 </when>
|
|
70 </conditional>
|
|
71
|
|
72 <conditional name="OptionMax">
|
|
73 <param name="maximum" type="select" label="maximum value of tag">
|
|
74 <option value="Yes">Yes</option>
|
|
75 <option value="No" selected="true">No</option>
|
|
76 </param>
|
|
77 <when value="Yes">
|
15
|
78 <param name="max" type="integer" value="1"/>
|
6
|
79 </when>
|
|
80 <when value="No">
|
|
81 </when>
|
|
82 </conditional>
|
|
83
|
|
84 <conditional name="OptionMin">
|
|
85 <param name="minimum" type="select" label="minimum value of tag">
|
|
86 <option value="Yes">Yes</option>
|
|
87 <option value="No" selected="true">No</option>
|
|
88 </param>
|
|
89 <when value="Yes">
|
15
|
90 <param name="min" type="integer" value="1"/>
|
6
|
91 </when>
|
|
92 <when value="No">
|
|
93 </when>
|
|
94 </conditional>
|
|
95
|
|
96 <conditional name="OptionDefault">
|
15
|
97 <param name="default" type="select" label="give this value if tag is not present">
|
6
|
98 <option value="Yes">Yes</option>
|
|
99 <option value="No" selected="true">No</option>
|
|
100 </param>
|
|
101 <when value="Yes">
|
|
102 <param name="defaultValue" type="float" value="0" />
|
|
103 </when>
|
|
104 <when value="No">
|
|
105 </when>
|
|
106 </conditional>
|
|
107 </inputs>
|
|
108
|
|
109 <outputs>
|
18
|
110 <data name="outputFileGff" format="gff3" label="[select by tag] output file"/>
|
6
|
111 </outputs>
|
|
112
|
15
|
113 <help>
|
|
114 The script reads a list of genomic coordinates and output all the features with specific tag values. If you want to know more about tags, please consult the GFF format page: http://www.sequenceontology.org/gff3.shtml
|
|
115
|
|
116 The tools reads the input file, and more specifically the tag that you specified. You can mention a lower and a upper bound for its value, or a specific value, and the tool will print all the features such that the tags are between the specified bounds or matches the string.
|
|
117
|
|
118 A tag has to be present for each feature. If not, you can specify a default value which will be used if the tag is absent.
|
|
119
|
|
120 This tool can be used to select the clusters with a minimum number of elements (the tag **nbElements** counts the number of elements per clusters) or to select the reads which have mapped less than *n* times (the tag **nbOccurrences** counts the number of mappings per read).
|
|
121 </help>
|
6
|
122 </tool>
|