annotate fast5_subset.xml @ 0:b380520b4420 draft

"planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
author iuc
date Mon, 08 Jun 2020 19:56:06 +0000
parents
children 41bac7dcb43e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
1 <?xml version="1.0"?>
b380520b4420 "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">
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
3 <description>of multi read file</description>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
4 <macros>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
5 <import>macros.xml</import>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
6 </macros>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
8 <version_command></version_command>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
9 <command detect_errors="exit_code"><![CDATA[
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
10 ## initialize
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
11 mkdir data &&
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
12 #for $num, $current in enumerate($input):
b380520b4420 "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' &&
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
14 #end for
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
15
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
16 ## run
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
17 fast5_subset
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
18 ## required
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
19 --input ./data
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
20 -s ./results
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
21 --read_id_list '$read_id_list'
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
22 ## optional
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
23 --batch_size $batch_size
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
24 -t \${GALAXY_SLOTS:-4}
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
25 ]]></command>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
26 <inputs>
b380520b4420 "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"
b380520b4420 "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)"/>
b380520b4420 "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"
b380520b4420 "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."/>
b380520b4420 "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"
b380520b4420 "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"/>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
33 </inputs>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
34 <outputs>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
35 <data name="out_results" format="fast5">
b380520b4420 "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"/>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
37 </data>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
38 </outputs>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
39 <tests>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
40 <test expect_num_outputs="1">
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
41 <param name="input" value="batch.fast5"/>
b380520b4420 "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"/>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
43 <param name="batch_size" value="2"/>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
44 <output name="out_results">
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
45 <assert_contents>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
46 <has_size value="23304"/>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
47 </assert_contents>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
48 <!-- batch0 is represented by out_results -->
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
49 <discovered_dataset designation="batch1" ftype="fast5">
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
50 <assert_contents>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
51 <has_size value="17328"/>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
52 </assert_contents>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
53 </discovered_dataset>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
54 </output>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
55 </test>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
56 </tests>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
57 <help><![CDATA[
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
58 .. class:: infomark
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
59
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
60 **What it does**
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
61
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
62 @WID@
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
63
b380520b4420 "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.
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
65
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
66 **Input**
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
67
b380520b4420 "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.
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
69
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
70 **Output**
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
71
b380520b4420 "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.
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
73
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
74 .. class:: infomark
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
75
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
76 **References**
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
77
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
78 @REFERENCES@
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
79 ]]></help>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
80 <expand macro="citations"/>
b380520b4420 "planemo upload for repository https://github.com/nanoporetech/ont_fast5_api/ commit 84504d6786e9edf00367739210d6bae78cb42cc8"
iuc
parents:
diff changeset
81 </tool>