upstream/remove_beginning/remove_beginning.xml
1<tool id="Remove beginning1" name="Remove beginning" version="1.0.0">
2 <description>of a file</description>
3 <command>
4 perl $__tool_directory__/remove_beginning.pl
5 "${input}"
6 "${num_lines}"
7 "${out_file1}"
8 </command>
9 <inputs>
10 <param name="num_lines" type="integer" value="1" label="Remove first" help="lines"/>
11 <param format="txt" name="input" type="data" label="from"/>
12 </inputs>
13 <outputs>
14 <data format="input" name="out_file1" metadata_source="input"/>
15 </outputs>
16 <tests>
17 <test>
18 <param name="num_lines" value="5"/>
19 <param name="input" value="1.bed"/>
20 <output name="out_file1" file="eq-removebeginning.dat"/>
21 </test>
22 </tests>
23 <help>
24
25**What it does**
26
27This tool removes a specified number of lines from the beginning of a dataset.
28
29-----
30
31**Example**
32
33Input File::
34
35 chr7 56632 56652 D17003_CTCF_R6 310 +
36 chr7 56736 56756 D17003_CTCF_R7 354 +
37 chr7 56761 56781 D17003_CTCF_R4 220 +
38 chr7 56772 56792 D17003_CTCF_R7 372 +
39 chr7 56775 56795 D17003_CTCF_R4 207 +
40
41After removing the first 3 lines the dataset will look like this::
42
43 chr7 56772 56792 D17003_CTCF_R7 372 +
44 chr7 56775 56795 D17003_CTCF_R4 207 +
45
46 </help>
47</tool>