Mercurial > repos > artbio > ont_fast5_api
diff macros.xml @ 0:0fbeff566070 draft default tip
"planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/ont_fast5_api commit 9fb27995131a4106053eb85d687857d2cbd2a5c6"
author | artbio |
---|---|
date | Sat, 22 May 2021 15:11:43 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Sat May 22 15:11:43 2021 +0000 @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<macros> + <token name="@TOOL_VERSION@">3.1.3</token> + <token name="@TOOL_NAME@">ont_fast5_api:</token> + <xml name="requirements"> + <requirements> + <requirement type="package" version="@TOOL_VERSION@">ont-fast5-api</requirement> + <requirement type="package" version="1.10.5">hdf5</requirement> + </requirements> + </xml> + + <!-- command --> + <token name="@BATCHSIZE@"><![CDATA[ +--batch_size $batch_size + ]]></token> + <token name="@COMPRESSION@"><![CDATA[ +#if $compression != 'none' + --compression '$compression' +#end if + ]]></token> + <token name="@INITIALIZE@"><![CDATA[ +mkdir -p './data' && +tar -xf '$input_path' -C './data' && + ]]></token> + <token name="@INPUTPATH@"><![CDATA[ +--input_path './data' + ]]></token> + <token name="@SAVEPATH@"><![CDATA[ +--save_path './results' + ]]></token> + <token name="@TARBALL@"><![CDATA[ +&& find './results' -type f -name '*.fast5' | tar --transform 's/.*\///g' -cvf './results.fast5.tar' --files-from=/dev/stdin + ]]></token> + <token name="@THREADS@"><![CDATA[ +--threads \${GALAXY_SLOTS:-4} + ]]></token> + + <!-- input --> + <xml name="input" token_argument="--input_path" token_label="multi"> + <param argument="@ARGUMENT@" type="data" format="fast5.tar" label="Select @LABEL@ read input file"/> + </xml> + <xml name="batch_size"> + <param argument="--batch_size" type="integer" value="4000" min="1" label="Set batch size" help="Number of single reads to include in each multi read file"/> + </xml> + <xml name="compression"> + <param argument="compression" type="select" label="Select output compression type"> + <option value="none" selected="true">None</option> + <option value="gzip">GZIP</option> + <option value="vbz_legacy_v0">VBZ legacy v0</option> + <option value="vbz">VBZ</option> + </param> + </xml> + + <!-- output --> + <xml name="output"> + <data name="out_results" format="fast5.tar" from_work_dir="results.fast5.tar" label="${tool.name} on ${on_string}: Results"> + <change_format> + <when input="compression" value="gzip" format="fast5.tar.gz"/> + <when input="compression" value="vbz_legacy_v0" format="fast5.tar.bz2"/> + <when input="compression" value="vbz" format="fast5.tar.bz2"/> + </change_format> + </data> + <data name="summary" format="txt" from_work_dir="./results/*.txt" label="filename_mapping.txt" /> + </xml> + + <!-- help --> + <token name="@WID@"><![CDATA[ +*ont_fast5_api* is a simple interface to HDF5 files of the Oxford Nanopore FAST5 file format. + +- concrete implementation of the FAST5 file schema using the generic h5py library +- plain-english-named methods to interact with and reflect the FAST5 file schema +- tools to convert between multi_read and single_read formats +- tools to compress/decompress raw data in files + ]]></token> + <token name="@REFERENCES@"><![CDATA[ +More information are available on `github <https://github.com/nanoporetech/ont_fast5_api>`_. + ]]></token> + + <xml name="citations"> + <citations> + <citation type="bibtex"> + @online{ont_fast5_api, + author = {Oxford Nanopore Technologies }, + title = {ont_fast5_api}, + year = 2020, + url = {https://github.com/nanoporetech/ont_fast5_api}, + urldate = {2020-06-01} + }</citation> + </citations> + </xml> +</macros>