annotate tools/unix_tools/remove_ending.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="Remove ending" name="Remove ending">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>of a file</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="sh">remove_ending.sh $num_lines $input $out_file1</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="num_lines" size="5" type="integer" value="1" label="Remove last" help="lines"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param format="txt" name="input" type="data" label="from"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <param name="input" value="remove_ending_input1.txt" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <output name="out_file1" file="remove_ending_output1.txt" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <param name="num_lines" value="2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <data format="input" name="out_file1" metadata_source="input"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 This tool removes specified number of lines from the ending of a dataset
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 Input File::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 chr7 56632 56652 D17003_CTCF_R6 310 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 chr7 56736 56756 D17003_CTCF_R7 354 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 chr7 56761 56781 D17003_CTCF_R4 220 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 chr7 56772 56792 D17003_CTCF_R7 372 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 chr7 56775 56795 D17003_CTCF_R4 207 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 After removing the last 2 lines the dataset will look like this::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 chr7 56632 56652 D17003_CTCF_R6 310 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 chr7 56736 56756 D17003_CTCF_R7 354 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 chr7 56761 56781 D17003_CTCF_R4 220 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 </tool>