Mercurial > repos > galaxy-australia > dorado_pod5_convert
annotate dorado_pod5_convert.xml @ 0:18a8d140ec6f draft
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
author | galaxy-australia |
---|---|
date | Fri, 28 Jun 2024 03:38:39 +0000 |
parents | |
children | 28928576e1ea |
rev | line source |
---|---|
0
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
1 <tool id="dorado_pod5_convert" name="fast5 to pod5" version="@VERSION@+galaxy0" python_template_version="3.5" profile="21.05"> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
2 <description>converter for raw Oxford Nanopore data</description> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
3 <macros> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
4 <import>macros.xml</import> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
5 </macros> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
6 <expand macro="xrefs"/> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
8 <command><![CDATA[ |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
9 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
10 mkdir input_fast5 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
11 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
12 && |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
13 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
14 tar -xf '$fast5_in' -C input_fast5 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
15 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
16 && |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
17 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
18 pod5 convert fast5 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
19 --threads \${GALAXY_SLOTS:-4} |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
20 --recursive |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
21 --output output.pod5 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
22 input_fast5 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
23 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
24 ]]> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
25 </command> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
26 <inputs> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
27 <param name="fast5_in" type="data" format="fast5.tar" label="Oxford Nanopore raw data in fast5 format in a tar archive."/> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
28 </inputs> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
29 <outputs> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
30 <!-- FIXME: add pod5 datatype to Galaxy and change here. |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
31 https://github.com/galaxyproject/galaxy/pull/18419 --> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
32 <data format="binary" name="pod5_out" label="${on_string} converted to pod5 from fast5" from_work_dir="output.pod5"/> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
33 </outputs> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
34 <tests> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
35 <test expect_num_outputs="1"> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
36 <param name="fast5_in" ftype="fast5.tar" value="FAL00375_473bf0ed_0.ten_reads.0_0.fast5.tar"/> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
37 <output name="pod5_out" ftype="binary"> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
38 <assert_contents> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
39 <has_size value="519736" delta="50000"/> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
40 </assert_contents> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
41 </output> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
42 </test> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
43 <test expect_num_outputs="1"> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
44 <param name="fast5_in" ftype="fast5.tar.gz" value="reads_in_directories.tar.gz"/> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
45 <output name="pod5_out" ftype="binary"> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
46 <assert_contents> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
47 <has_size value="950136" delta="90000"/> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
48 </assert_contents> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
49 </output> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
50 </test> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
51 </tests> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
52 <help><![CDATA[ |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
53 Convert fast5 to `pod5 <https://github.com/nanoporetech/pod5-file-format>`__ for basecalling with Dorado. |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
54 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
55 Combine all your fast5 files into a single tar archive, and optionally |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
56 compress the archive with Gzip, Bzip2 or XZ, before uploading it to |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
57 Galaxy. |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
58 |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
59 ]]></help> |
18a8d140ec6f
planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/main/tools/dorado commit 0e768f088307f927787041b98504c594c6bcbe0f
galaxy-australia
parents:
diff
changeset
|
60 </tool> |