Mercurial > repos > brinkmanlab > base64
comparison base64.xml @ 0:69ece7949d76 draft default tip
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/base64 commit edc3dbc000afb94a9b52ca662e6153b63638b618"
| author | brinkmanlab |
|---|---|
| date | Tue, 04 Feb 2020 12:54:36 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:69ece7949d76 |
|---|---|
| 1 <tool id="base64" name="Coreutils base64 encode/decode" version="1.0" profile="16.04"> | |
| 2 <description>Base64 encode/decode data</description> | |
| 3 <edam_topics> | |
| 4 <edam_topic>topic_3315</edam_topic> | |
| 5 </edam_topics> | |
| 6 <edam_operations> | |
| 7 <edam_operation>operation_3434</edam_operation> | |
| 8 </edam_operations> | |
| 9 <requirements> | |
| 10 <requirement type="package">coreutils</requirement> | |
| 11 </requirements> | |
| 12 <version_command><![CDATA[ base64 --version | head -n1 | sed -r 's/.* ([^ ]+)$/\1/' ]]></version_command> | |
| 13 <command detect_errors="aggressive"><![CDATA[ | |
| 14 base64 $mode_select.mode | |
| 15 #if $mode_select.mode == '' | |
| 16 --wrap=$mode_select.wrap | |
| 17 #else | |
| 18 $mode_select.ignore | |
| 19 #end if | |
| 20 '$input' | |
| 21 ]]></command> | |
| 22 <inputs> | |
| 23 <param name="input" type="data" format="data" label="Input" /> | |
| 24 <conditional name="mode_select"> | |
| 25 <param name="mode" type="select" label="Mode" help="Change the mode of operation, from the default of encoding data, to decoding data. Input is expected to be base64 encoded data, and the output will be the original data."> | |
| 26 <option value="" selected="true">Encode</option> | |
| 27 <option value="--decode">Decode</option> | |
| 28 </param> | |
| 29 <when value=""> | |
| 30 <param name="wrap" type="integer" minvalue="0" value="76" label="Line wrap" help="During encoding, wrap lines after cols characters. Use the value 0 to disable line wrapping altogether." /> | |
| 31 </when> | |
| 32 <when value="--decode"> | |
| 33 <param name="ignore" type="boolean" truevalue="--ignore-garbage" falsevalue="" checked="true" label="Ignore unrecognized bytes" help="When decoding, newlines are always accepted. During decoding, ignore unrecognized bytes, to permit distorted data to be decoded."/> | |
| 34 </when> | |
| 35 </conditional> | |
| 36 </inputs> | |
| 37 <outputs> | |
| 38 <data name="output" format="txt"> | |
| 39 <change_format> | |
| 40 <when input="mode_select|mode" value="" format="txt" /> | |
| 41 <when input="mode_select|mode" value="--decode" format="data" /> | |
| 42 </change_format> | |
| 43 </data> | |
| 44 </outputs> | |
| 45 <tests> | |
| 46 <test expect_num_outputs="1"> | |
| 47 <param name="input" value="test-data/test.txt" ftype="data" /> | |
| 48 <output name="output" ftype="txt" > | |
| 49 <assert_contents> | |
| 50 <has_text text="c29tZSB0ZXN0IGRhdGEK" /> | |
| 51 </assert_contents> | |
| 52 </output> | |
| 53 </test> | |
| 54 <test expect_num_outputs="1"> | |
| 55 <param name="input" value="test-data/test.b64" ftype="txt" /> | |
| 56 <conditional name="mode_select"> | |
| 57 <param name="mode" value="--decode" /> | |
| 58 </conditional> | |
| 59 <output name="output" ftype="data" > | |
| 60 <assert_contents> | |
| 61 <has_text text="some test data" /> | |
| 62 </assert_contents> | |
| 63 </output> | |
| 64 </test> | |
| 65 </tests> | |
| 66 <help><![CDATA[ | |
| 67 GNU coreutils online help: <http://www.gnu.org/software/coreutils/> | |
| 68 | |
| 69 base64 transforms data into (or from) base64 encoded form. The base64 encoded form uses printable ASCII characters to represent binary data. | |
| 70 | |
| 71 The base64 encoding expands data to roughly 133% of the original. The format conforms to RFC 4648. | |
| 72 ]]></help> | |
| 73 <citations> | |
| 74 <citation type="doi">10.5281/zenodo.3364789</citation> | |
| 75 </citations> | |
| 76 </tool> |
