annotate macros.xml @ 8:90a922f32523 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:58:25 +0000
parents 12efe2f03697
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
1 <macros>
8
90a922f32523 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>
90a922f32523 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>
90a922f32523 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>
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
5
0
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
6 <xml name="requirements">
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
7 <requirements>
5
12efe2f03697 "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
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
9 <yield/>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
10 </requirements>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
11 </xml>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
12
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
13 <!-- index outputs
f9dadc362197 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" />
f9dadc362197 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" />
f9dadc362197 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" />
f9dadc362197 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" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
18 -->
f9dadc362197 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" />
f9dadc362197 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" />
f9dadc362197 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" />
f9dadc362197 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" />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
23 -->
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
24
8
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
25
90a922f32523 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[
90a922f32523 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 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
28
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
29 mkdir fast5_files &&
90a922f32523 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':
90a922f32523 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 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
32
90a922f32523 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':
90a922f32523 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 &&
90a922f32523 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 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
36
90a922f32523 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':
90a922f32523 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 &&
90a922f32523 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 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
40
90a922f32523 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':
90a922f32523 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 &&
90a922f32523 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 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
44
90a922f32523 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':
90a922f32523 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 &&
90a922f32523 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 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
48
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
49 #else:
90a922f32523 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' &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
51 exit 1 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
52
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
53 #end if
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
54
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
55 nanopolish index
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
56 -d fast5_files/
90a922f32523 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:
90a922f32523 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'
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
59 #end if
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
60 reads.fasta &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
61
90a922f32523 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 &&
90a922f32523 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 &&
90a922f32523 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':
90a922f32523 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 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
66 #else:
90a922f32523 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 &&
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
68 #end if
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
69 ]]></token>
90a922f32523 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit de2370d1a385731b3c65f1dcc44e7b8558da8fd4
bgruening
parents: 5
diff changeset
70
0
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
71 <xml name="citations">
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
72 <citations>
3
02e3c674d917 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
f9dadc362197 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>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
75 <yield />
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
76 </citations>
f9dadc362197 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit 0e94011a4ea84bf4ae5c2079680a37540e022625
bgruening
parents:
diff changeset
77 </xml>
1
709490665bad planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/nanopolish commit d3227eb74ad38fac307911b60c8a20a13349bcf9
bgruening
parents: 0
diff changeset
78 </macros>