annotate dos2unix.xml @ 0:0b3a28ad3947 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
author iuc
date Fri, 11 Jul 2025 11:20:26 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
1 <tool id="dos2unix" name="Text file format converters (dos2unix)" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE_VERSION@">
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
2 <description>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
3 Convert text files with DOS or Mac line breaks to Unix line breaks and other text cleaning options.
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
4 </description>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
5 <macros>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
6 <import>macros.xml</import>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
7 </macros>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
8 <edam_topics>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
9 <edam_topic>topic_3572</edam_topic>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
10 </edam_topics>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
11 <edam_operations>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
12 <edam_operation>operation_0335</edam_operation>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
13 </edam_operations>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
14 <expand macro="requirements"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
15 <command detect_errors="exit_code"><![CDATA[
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
16 #if $info
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
17 dos2unix --info $mac_mode '$input_file' > '$output_file'
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
18 #else
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
19 dos2unix --newfile --safe $add_end_of_line $mac_mode $bom '$input_file' '$output_file'
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
20 #end if
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
21 ]]></command>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
22 <inputs>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
23 <param name="input_file" format="txt,tsv,csv,tabular" type="data" label="The input file to convert to Unix format"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
24 <param name="add_end_of_line" type="boolean" truevalue="--add-eol" falsevalue="--no-add-eol" checked="true" label="Add (or don't add) a line break to the last line if there isn't one."/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
25 <param name="bom" type="boolean" truevalue="--remove-bom" falsevalue="--keep-bom" checked="true" label="Remove Byte Order Mark (BOM). Do not write a BOM in the output file."/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
26 <param name="mac_mode" type="boolean" truevalue="-c mac" falsevalue="" checked="false" label="Run in Mac Mode." help="By default line breaks are converted from DOS to Unix and vice versa. Mac line breaks are not converted. In Mac mode line breaks are converted from Mac to Unix and vice versa. DOS line breaks are not changed."/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
27 <param name="info" type="boolean" truevalue="--info" falsevalue="" checked="false" label="Display file information. No conversion is done." help="The following information is printed, in this order: number of DOS line breaks, number of Unix line breaks, number of Mac line breaks, byte order mark, text or binary, file name."/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
28 </inputs>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
29 <outputs>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
30 <data name="output_file" format="txt"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
31 </outputs>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
32 <tests>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
33 <test expect_num_outputs="1">
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
34 <param name="input_file" value="censored.txt"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
35 <param name="add_end_of_line" value="false"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
36 <param name="bom" value="false"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
37 <param name="mac_mode" value="false"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
38 <param name="info" value="true"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
39 <output name="output_file">
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
40 <assert_contents>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
41 <has_text text="UTF-8"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
42 </assert_contents>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
43 </output>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
44 </test>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
45 <test expect_num_outputs="1">
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
46 <param name="input_file" value="censored_no_bom.txt"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
47 <param name="add_end_of_line" value="false"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
48 <param name="bom" value="false"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
49 <param name="mac_mode" value="false"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
50 <param name="info" value="true"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
51 <output name="output_file">
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
52 <assert_contents>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
53 <has_text text="no_bom"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
54 </assert_contents>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
55 </output>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
56 </test>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
57 <test expect_num_outputs="1">
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
58 <param name="input_file" value="censored.txt"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
59 <param name="add_end_of_line" value="true"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
60 <param name="bom" value="true"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
61 <param name="mac_mode" value="false"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
62 <param name="info" value="false"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
63 <output name="output_file" file="censored_no_bom.txt"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
64 </test>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
65 </tests>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
66 <help><![CDATA[
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
67 This tool can be used to convert files in DOS or Mac format to Unix format.
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
68 In DOS/Windows text files a line break, also known as newline, is a combination of two
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
69 characters: a Carriage Return (CR) followed by a Line Feed (LF). In Unix text files a
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
70 line break is a single character: the Line Feed (LF). In Mac text files, prior to Mac OS X,
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
71 a line break was single Carriage Return (CR) character. Nowadays Mac OS uses Unix style (LF) line breaks.
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
72 ]]></help>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
73 <citations>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
74 <expand macro="citations"/>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
75 </citations>
0b3a28ad3947 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/dos2unix/ commit 7e66ed2b5a95d5d1523524e5dc106bd9d4cb6b43
iuc
parents:
diff changeset
76 </tool>