1
|
1 <!-- <cut_fr.xml is script allwoing more convenient use of cut in galaxy environment>
|
|
2 Copyright (C) <2015> <Lannes Romain>
|
|
3
|
|
4 This program is free software: you can redistribute it and/or modify
|
|
5 it under the terms of the GNU General Public License as published by
|
|
6 the Free Software Foundation, either version 3 of the License, or
|
|
7 (at your option) any later version.
|
|
8
|
|
9 This program is distributed in the hope that it will be useful,
|
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 GNU General Public License for more details.
|
|
13
|
|
14 You should have received a copy of the GNU General Public License
|
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>.''' -->
|
|
16 <tool id="cut_fr" name="cut_francais" version="1.0">
|
|
17 <description> keep or remove selected column </description>
|
|
18 <command interpreter="python3"> cut_fr.py
|
|
19 --c $column
|
|
20 --i $datasets
|
|
21 --type_cut $choice
|
|
22 --extend_print $extend_print
|
|
23 --o $output
|
|
24
|
|
25 </command>
|
|
26 <inputs>
|
|
27 <param name = "column" type = "text" format = "txt" value = "c1" label = "column(s)" />
|
|
28 <param name = "datasets" type = "data" format = "txt" value = "a tsv file" label = "dataset" />
|
|
29 <param name = "choice" type = "select" display = "radio" label = "choose cut type :" >
|
|
30 <option value = "exclude" > Exclude </option>
|
|
31 <option value = "include" > Include </option>
|
|
32 </param>
|
|
33 <param name = "extend_print" type ="select" label = "extended print">
|
|
34 <option value = "False" > False </option>
|
|
35 <option value = "True" > True </option>
|
|
36 </param>
|
|
37 </inputs>
|
|
38
|
|
39 <outputs>
|
|
40 <data name = "output" label="${tool.name} on ${datasets.name}" format = "tabular"/>
|
|
41
|
|
42 </outputs>
|
|
43 <help>
|
|
44 <![CDATA[
|
|
45 return a datasets with only or less specified column
|
|
46
|
|
47 To select only selected column choose option Include.
|
|
48
|
|
49 To remove selected column choose option Exclude.
|
|
50
|
|
51 extended print add print in strdout like input paramter, command launch by the system.
|
|
52
|
|
53 ]]> </help>
|
|
54
|
|
55 </tool>
|