annotate macros.xml @ 8:aa5ec9b8c99a draft

planemo upload commit a7a086ce7d7d84f53d4a022fa1da25ef7b9a5b9a
author iuc
date Fri, 20 Jul 2018 03:48:54 -0400
parents 7d886fe41f56
children 3b8fecdf9058
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
1 <?xml version="1.0"?>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
2 <macros>
3
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
3 <macro name="barcode2_conditional" >
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
4 <conditional name="barcode">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
5 <param name="barcode_select" argument="--split-barcode" type="select" label="Barcode on both reads?">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
6 <option value="first_read_only">Barcode on first read only</option>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
7 <option value="both_reads">Barcode on both reads</option>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
8 </param>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
9 <when value="first_read_only"/>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
10 <when value="both_reads">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
11 <param name="bc_pattern2" argument="--bc-pattern2" type="text" value="" label="Barcode pattern for second read"
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
12 help="Use this option to specify the format of the UMI/barcode for
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
13 the second read pair if required." >
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
14 </param>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
15 </when>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
16 </conditional>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
17 </macro>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
18 <xml name="input_types">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
19 <conditional name="input_type">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
20 <param name="type" type="select" label="Library type">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
21 <option value="single">Single-end</option>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
22 <option value="paired">Paired-end</option>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
23 <option value="paired_collection">Paired-end Dataset Collection</option>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
24 </param>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
25 <when value="single">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
26 <param name="input_single" type="data" format="fastq,fastq.gz" label="Reads in FASTQ format" />
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
27 </when>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
28 <when value="paired">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
29 <param name="input_read1" type="data" format="fastq,fastq.gz" label="Reads in FASTQ format" />
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
30 <param name="input_read2" type="data" format="fastq,fastq.gz" label="Reads in FASTQ format" />
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
31 <expand macro="barcode2_conditional" />
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
32 </when>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
33 <when value="paired_collection">
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
34 <param name="input_readpair" type="data_collection" collection_type="paired" format="fastq,fastq.gz" label="Reads in FASTQ format" />
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
35 <expand macro="barcode2_conditional" />
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
36 </when>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
37 </conditional>
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
38 </xml>
0
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
39 <xml name="citations">
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
40 <citations>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
41 <citation type="doi">10.1101/gr.209601.116</citation>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
42 <citation type="bibtex">
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
43 @misc{githubUMI-tools,
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
44 title = {UMI-tools},
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
45 publisher = {GitHub},
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
46 journal = {GitHub repository},
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
47 url = {https://github.com/CGATOxford/UMI-tools},
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
48 }
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
49 </citation>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
50 </citations>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
51 </xml>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
52 <xml name="requirements">
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
53 <requirements>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
54 <requirement type="package" version="@VERSION@">umi_tools</requirement>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
55 <yield />
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
56 </requirements>
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
57 </xml>
1
f73f13641bb6 planemo upload commit eea727c3bdfe36d9d16036d5ab79fb8b27c4e82e
iuc
parents: 0
diff changeset
58 <token name="@VERSION@">0.5.3</token>
3
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
59 <token name="@COMMAND_LINK@"><![CDATA[
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
60 #set $gz = False
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
61 #if $input_type.type == 'single':
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
62 #if $input_type.input_single.is_of_type("fastq.gz", "fastqsanger.gz"):
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
63 ln -s '$input_type.input_single' input_single.gz &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
64 #set $gz = True
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
65 #else
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
66 ln -s '$input_type.input_single' input_single.txt &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
67 #end if
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
68 #elif $input_type.type == 'paired':
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
69 #if $input_type.input_read1.is_of_type("fastq.gz", "fastqsanger.gz"):
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
70 ln -s '$input_type.input_read1' input_read1.gz &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
71 ln -s '$input_type.input_read2' input_read2.gz &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
72 #set $gz = True
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
73 #else
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
74 ln -s '$input_type.input_read1' input_read1.txt &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
75 ln -s '$input_type.input_read2' input_read2.txt &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
76 #end if
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
77 #else ## paired_collection
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
78 #if $input_type.input_readpair.forward.is_of_type("fastq.gz", "fastqsanger.gz"):
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
79 ln -s '$input_type.input_readpair.forward' input_read1.gz &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
80 ln -s '$input_type.input_readpair.reverse' input_read2.gz &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
81 #set $gz = True
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
82 #else
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
83 ln -s '$input_type.input_readpair.forward' input_read1.txt &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
84 ln -s '$input_type.input_readpair.reverse' input_read2.txt &&
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
85 #end if
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
86 #end if
7d886fe41f56 planemo upload commit 76cbd559320d2a639e35ed10cb2d9522a5a77ae0
iuc
parents: 1
diff changeset
87 ]]></token>
0
860bc357b678 planemo upload commit c8e46ecad0b1473097517e582ed6c43eb0635b36
iuc
parents:
diff changeset
88 </macros>