annotate macros.xml @ 8:bec636361cfd draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
author bgruening
date Thu, 30 Nov 2023 17:57:59 +0000
parents 63af3144371a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
1 <macros>
8
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
2 <token name="@VERSION@">0.14.0</token>
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
3 <token name="@VERSION_SUFFIX@">0</token>
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
4 <token name="@PROFILE@">22.01</token>
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
5
0
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
6 <xml name="requirements">
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
7 <requirements>
5
63af3144371a "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit dff183f4eb2d3df42917ec4fed0fbdb2ea11e19a"
bgruening
parents: 3
diff changeset
8 <requirement type="package" version="@VERSION@">nanopolish</requirement>
0
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
9 <yield/>
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
10 </requirements>
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
11 </xml>
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
12
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
13 <!-- index outputs
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
14 <data name="output_index" format="nanopolish_index" from_work_dir="reads.fasta.index" />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
15 <data name="output_index_fai" format="nanopolish_index_fai" from_work_dir="reads.fasta.index.fai" />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
16 <data name="output_index_gzi" format="nanopolish_index_gzi" from_work_dir="reads.fasta.index.gzi" />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
17 <data name="output_index_readdb" format="nanopolish_index_readdb" from_work_dir="reads.fasta.index.readdb" />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
18 -->
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
19 <!-- <output name="output_index" file="reads.fasta.index" />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
20 <output name="output_index_fai" file="reads.fasta.index.fai" />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
21 <output name="output_index_gzi" file="reads.fasta.index.gzi" />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
22 <output name="output_index_readdb" file="reads.fasta.index.readdb" />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
23 -->
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
24
8
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
25
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
26 <token name="@PREPROCESS_INPUTS@"><![CDATA[
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
27 ln -s '$input_merged' reads.fasta &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
28
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
29 mkdir fast5_files &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
30 #if $input_reads_raw.extension == 'fast5':
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
31 ln -s '$input_reads_raw' fast5_files/read1.fast5 &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
32
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
33 #else if $input_reads_raw.extension == 'fast5.tar':
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
34 ln -s '$input_reads_raw' fast5_files.tar &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
35 tar -xf fast5_files.tar -C fast5_files &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
36
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
37 #else if $input_reads_raw.extension == 'fast5.tar.bz2':
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
38 ln -s '$input_reads_raw' fast5_files.tar.bz2 &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
39 tar -xjf fast5_files.tar.bz2 -C fast5_files &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
40
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
41 #else if $input_reads_raw.extension == 'fast5.tar.xz':
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
42 ln -s '$input_reads_raw' fast5_files.tar.xz &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
43 tar -xf fast5_files.tar.xz -C fast5_files &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
44
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
45 #else if $input_reads_raw.extension == 'fast5.tar.gz':
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
46 ln -s '$input_reads_raw' fast5_files.tar.gz &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
47 tar -xzf fast5_files.tar.gz -C fast5_files &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
48
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
49 #else:
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
50 echo 'Unsupported fast5 input type' &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
51 exit 1 &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
52
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
53 #end if
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
54
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
55 nanopolish index
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
56 -d fast5_files/
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
57 #if $adv.input_seq_summary:
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
58 -s '$adv.input_seq_summary'
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
59 #end if
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
60 reads.fasta &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
61
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
62 ln -s '$b' reads.bam &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
63 ln -s '${b.metadata.bam_index}' reads.bam.bai &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
64 #if $reference_source.reference_source_selector == 'history':
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
65 ln -f -s '$reference_source.ref_file' genome.fa &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
66 #else:
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
67 ln -f -s '$reference_source.ref_file.fields.path' genome.fa &&
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
68 #end if
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
69 ]]></token>
bec636361cfd planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
70
0
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
71 <xml name="citations">
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
72 <citations>
3
bc79b5b0fe04 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 89078a214cefd31d28da75ddebb21f546fba79df-dirty
bgruening
parents: 1
diff changeset
73 <citation type="doi">10.1038/nmeth.3444</citation>
0
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
74 <citation type="doi">10.1038/nmeth.4184</citation>
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
75 <yield />
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
76 </citations>
639b3a5bb415 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
77 </xml>
1
1ebed8b65752 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit d3227eb74ad38fac307911b60c8a20a13349bcf9
bgruening
parents: 0
diff changeset
78 </macros>