Mercurial > repos > nml > csvtk_cut
annotate cut.xml @ 0:5b5330a8dfac draft default tip
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
author | nml |
---|---|
date | Tue, 19 May 2020 17:09:36 -0400 |
parents | |
children |
rev | line source |
---|---|
0
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
1 <tool id="csvtk_cut" name="csvtk-cut" version="@VERSION@+@GALAXY_VERSION@"> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
2 <description> and keep selected columns</description> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
3 <macros> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
4 <import>macros.xml</import> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
5 </macros> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
6 <expand macro="requirements" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
7 <expand macro="version_cmd" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
8 <command detect_errors="exit_code"><![CDATA[ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
9 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
10 ################### |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
11 ## Start Command ## |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
12 ################### |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
13 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
14 csvtk cut --num-cpus "\${GALAXY_SLOTS:-1}" |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
15 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
16 ## Add additional flags as specified ## |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
17 ####################################### |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
18 $ignore_case |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
19 $global_param.illegal_rows |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
20 $global_param.empty_rows |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
21 $global_param.header |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
22 $global_param.lazy_quotes |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
23 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
24 ## Set Tabular input/output flag if input is tabular ## |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
25 ####################################################### |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
26 #if $in_1.is_of_type("tabular"): |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
27 -t -T |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
28 #end if |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
29 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
30 ## Set Input ## |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
31 ############### |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
32 '$in_1' |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
33 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
34 ## Specify fields for collapse ## |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
35 ################################# |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
36 -F -f '$column_text.in_text' |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
37 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
38 ## To output ## |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
39 ############### |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
40 > cut |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
41 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
42 ]]></command> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
43 <inputs> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
44 <expand macro="singular_input" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
45 <expand macro="fields_input" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
46 <expand macro="ignore_case" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
47 <expand macro="global_parameters" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
48 </inputs> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
49 <outputs> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
50 <data format_source="in_1" name="cut" from_work_dir="cut" label="${in_1.name} cut out column(s) ${column_text.in_text}" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
51 </outputs> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
52 <tests> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
53 <test> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
54 <param name="in_1" value="plot.csv" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
55 <conditional name="column_text"> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
56 <param name="select" value="column" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
57 <param name="in_text" value="2,3" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
58 </conditional> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
59 <output name="cut" file="cut_1.csv" ftype="csv" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
60 </test> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
61 <test> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
62 <param name="in_1" value="plot.csv" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
63 <conditional name="column_text"> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
64 <param name="select" value="string" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
65 <param name="in_text" value="-2" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
66 </conditional> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
67 <output name="cut" file="cut_2.csv" ftype="csv" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
68 </test> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
69 </tests> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
70 <help><![CDATA[ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
71 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
72 Csvtk - Cut Help |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
73 ---------------- |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
74 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
75 Info |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
76 #### |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
77 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
78 Csvtk Cut cuts specified columns to create an output |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
79 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
80 Csvtk Cut can be used to keep columns with normal inputs such as the column name or number. It |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
81 can also be used to specify columns to remove with a "-" at the start. An example can be seen below. |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
82 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
83 .. class:: warningmark |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
84 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
85 Single quotes are not allowed in text inputs! |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
86 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
87 @HELP_INPUT_DATA@ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
88 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
89 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
90 Usage |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
91 ##### |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
92 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
93 To run csvtk-cut, all you need is a valid (as defined above) CSV or TSV file |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
94 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
95 **Example cut to keep columns** |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
96 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
97 Input table: |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
98 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
99 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
100 | Name | Colour | Food | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
101 +========+========+==========+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
102 | Eric | Blue | Apples | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
103 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
104 | Darian | Blue | Pancakes | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
105 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
106 | Daniel | Red | Apples | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
107 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
108 | Emily | Blue | Apples | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
109 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
110 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
111 Now if we wanted to cut out and keep columns 1 and 2, our column input string (-F -f) would be "1,2" |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
112 and would result in the following table: |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
113 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
114 +--------+--------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
115 | Name | Colour | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
116 +========+========+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
117 | Eric | Blue | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
118 +--------+--------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
119 | Darian | Blue | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
120 +--------+--------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
121 | Daniel | Red | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
122 +--------+--------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
123 | Emily | Blue | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
124 +--------+--------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
125 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
126 -------- |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
127 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
128 **Example cut to remove column** |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
129 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
130 Similar input table as above: |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
131 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
132 +--------+--------+----------+-----------------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
133 | Name | Colour | Food | Unneeded Column | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
134 +========+========+==========+=================+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
135 | Eric | Blue | Apples | fadah | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
136 +--------+--------+----------+-----------------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
137 | Darian | Blue | Pancakes | ewq3rfa | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
138 +--------+--------+----------+-----------------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
139 | Daniel | Red | Apples | feda356t | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
140 +--------+--------+----------+-----------------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
141 | Emily | Blue | Apples | a342qadef | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
142 +--------+--------+----------+-----------------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
143 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
144 Now, we have a garbage last column and we want to keep everything else. We could input "1,2,3" to keep the first 3 columns, |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
145 OR if we set the input column name to "-4" or "-Unneeded Column" csvtk cut will remove the final column giving the following: |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
146 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
147 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
148 | Name | Colour | Food | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
149 +========+========+==========+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
150 | Eric | Blue | Apples | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
151 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
152 | Darian | Blue | Pancakes | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
153 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
154 | Daniel | Red | Apples | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
155 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
156 | Emily | Blue | Apples | |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
157 +--------+--------+----------+ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
158 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
159 ---- |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
160 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
161 @HELP_COLUMNS@ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
162 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
163 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
164 @HELP_END_STATEMENT@ |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
165 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
166 |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
167 ]]></help> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
168 <expand macro="citations" /> |
5b5330a8dfac
"planemo upload for repository https://github.com/shenwei356/csvtk commit 3a97e1b79bf0c6cdd37d5c8fb497b85531a563ab"
nml
parents:
diff
changeset
|
169 </tool> |