annotate fast5_subset.xml @ 0:eb1f4aa80c72 draft

"planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
author iuc
date Mon, 08 Jun 2020 15:57:10 -0400
parents
children 3bdd8fa109b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
1 <?xml version="1.0"?>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
2 <tool id="ont_fast5_api_fast5_subset" name="Fast5 subset" version="@TOOL_VERSION@+galaxy0" profile="18.01">
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
3 <description>of multi read file</description>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
4 <macros>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
5 <import>macros.xml</import>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
6 </macros>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
8 <version_command></version_command>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
9 <command detect_errors="exit_code"><![CDATA[
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
10 ## initialize
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
11 mkdir data &&
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
12 #for $num, $current in enumerate($input):
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
13 ln -s '$current' './data/batch${num}.fast5' &&
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
14 #end for
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
15
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
16 ## run
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
17 fast5_subset
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
18 ## required
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
19 --input ./data
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
20 -s ./results
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
21 --read_id_list '$read_id_list'
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
22 ## optional
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
23 --batch_size $batch_size
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
24 -t \${GALAXY_SLOTS:-4}
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
25 ]]></command>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
26 <inputs>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
27 <param argument="--input" type="data" format="fast5" multiple="true"
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
28 label="Select multi read input file(s)"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
29 <param argument="--read_id_list" type="data" format="tabular"
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
30 label="Select file with read_ids" help="Either containing 1 read_id per line or a tabular file with a column named read_id."/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
31 <param argument="--batch_size" type="integer" value="4000" min="1"
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
32 label="Set batch size" help="Number of single reads to include in each multi read file"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
33 </inputs>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
34 <outputs>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
35 <data name="out_results" format="fast5">
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
36 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.fast5" format="fast5" directory="results" assign_primary_output="true" visible="true"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
37 </data>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
38 </outputs>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
39 <tests>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
40 <test expect_num_outputs="1">
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
41 <param name="input" value="batch.fast5"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
42 <param name="read_id_list" value="list.txt"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
43 <param name="batch_size" value="2"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
44 <output name="out_results">
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
45 <assert_contents>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
46 <has_size value="23304"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
47 </assert_contents>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
48 <!-- batch0 is represented by out_results -->
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
49 <discovered_dataset designation="batch1" ftype="fast5">
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
50 <assert_contents>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
51 <has_size value="17328"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
52 </assert_contents>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
53 </discovered_dataset>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
54 </output>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
55 </test>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
56 </tests>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
57 <help><![CDATA[
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
58 .. class:: infomark
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
59
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
60 **What it does**
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
61
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
62 @WID@
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
63
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
64 fast5_subset extracts reads from multi_read_fast5_file(s) based on a list of read IDs.
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
65
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
66 **Input**
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
67
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
68 A multi read file in FAST5 format and a list of read IDs that should be extracted.
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
69
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
70 **Output**
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
71
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
72 A multi read file in FAST5 format containing a subset of the input file.
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
73
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
74 .. class:: infomark
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
75
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
76 **References**
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
77
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
78 @REFERENCES@
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
79 ]]></help>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
80 <expand macro="citations"/>
eb1f4aa80c72 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
81 </tool>