annotate macros.xml @ 4:70cb5527defb draft

"planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
author iuc
date Tue, 27 Aug 2019 17:11:32 -0400
parents 8db56d2f8b72
children 933220bbc2ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
1 <?xml version="1.0"?>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
2 <macros>
4
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
3 <macro name="barcode_sanitizer" >
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
4 <sanitizer invalid_char="">
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
5 <valid initial="string.letters,string.digits">
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
6 <add value="&#40;" /><!-- left bracket -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
7 <add value="&#41;" /><!-- right bracket -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
8 <add value="&#42;" /><!-- asterisk -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
9 <add value="&#44;" /><!-- comma -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
10 <add value="&#46;" /><!-- period -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
11 <add value="&#60;" /><!-- less than -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
12 <add value="&#61;" /><!-- equals sign -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
13 <add value="&#62;" /><!-- greater than -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
14 <add value="&#63;" /><!-- question mark -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
15 <add value="&#95;" /><!-- underscore -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
16 <add value="&#123;"/><!-- left brace -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
17 <add value="&#125;"/><!-- right brace -->
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
18 </valid>
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
19 </sanitizer>
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
20 </macro>
0
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
21 <macro name="barcode2_conditional" >
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
22 <conditional name="barcode">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
23 <param name="barcode_select" argument="--split-barcode" type="select" label="Barcode on both reads?">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
24 <option value="first_read_only">Barcode on first read only</option>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
25 <option value="both_reads">Barcode on both reads</option>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
26 </param>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
27 <when value="first_read_only"/>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
28 <when value="both_reads">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
29 <param name="bc_pattern2" argument="--bc-pattern2" type="text" value="" label="Barcode pattern for second read"
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
30 help="Use this option to specify the format of the UMI/barcode for
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
31 the second read pair if required." >
4
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
32 <expand macro="barcode_sanitizer" />
0
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
33 </param>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
34 </when>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
35 </conditional>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
36 </macro>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
37 <xml name="input_types">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
38 <conditional name="input_type">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
39 <param name="type" type="select" label="Library type">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
40 <option value="single">Single-end</option>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
41 <option value="paired">Paired-end</option>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
42 <option value="paired_collection">Paired-end Dataset Collection</option>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
43 </param>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
44 <when value="single">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
45 <param name="input_single" type="data" format="fastq,fastq.gz" label="Reads in FASTQ format" />
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
46 </when>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
47 <when value="paired">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
48 <param name="input_read1" type="data" format="fastq,fastq.gz" label="Reads in FASTQ format" />
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
49 <param name="input_read2" type="data" format="fastq,fastq.gz" label="Reads in FASTQ format" />
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
50 <expand macro="barcode2_conditional" />
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
51 </when>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
52 <when value="paired_collection">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
53 <param name="input_readpair" type="data_collection" collection_type="paired" format="fastq,fastq.gz" label="Reads in FASTQ format" />
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
54 <expand macro="barcode2_conditional" />
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
55 </when>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
56 </conditional>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
57 </xml>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
58 <xml name="citations">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
59 <citations>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
60 <citation type="doi">10.1101/gr.209601.116</citation>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
61 <citation type="bibtex">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
62 @misc{githubUMI-tools,
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
63 title = {UMI-tools},
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
64 publisher = {GitHub},
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
65 journal = {GitHub repository},
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
66 url = {https://github.com/CGATOxford/UMI-tools},
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
67 }
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
68 </citation>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
69 </citations>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
70 </xml>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
71 <xml name="requirements">
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
72 <requirements>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
73 <requirement type="package" version="@VERSION@">umi_tools</requirement>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
74 <yield />
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
75 </requirements>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
76 </xml>
4
70cb5527defb "planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
iuc
parents: 0
diff changeset
77 <token name="@VERSION@">0.5.5</token>
0
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
78 <token name="@COMMAND_LINK@"><![CDATA[
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
79 #set $gz = False
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
80 #if $input_type.type == 'single':
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
81 #if $input_type.input_single.is_of_type("fastq.gz", "fastqsanger.gz"):
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
82 ln -s '$input_type.input_single' input_single.gz &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
83 #set $gz = True
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
84 #else
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
85 ln -s '$input_type.input_single' input_single.txt &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
86 #end if
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
87 #elif $input_type.type == 'paired':
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
88 #if $input_type.input_read1.is_of_type("fastq.gz", "fastqsanger.gz"):
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
89 ln -s '$input_type.input_read1' input_read1.gz &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
90 ln -s '$input_type.input_read2' input_read2.gz &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
91 #set $gz = True
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
92 #else
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
93 ln -s '$input_type.input_read1' input_read1.txt &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
94 ln -s '$input_type.input_read2' input_read2.txt &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
95 #end if
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
96 #else ## paired_collection
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
97 #if $input_type.input_readpair.forward.is_of_type("fastq.gz", "fastqsanger.gz"):
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
98 ln -s '$input_type.input_readpair.forward' input_read1.gz &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
99 ln -s '$input_type.input_readpair.reverse' input_read2.gz &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
100 #set $gz = True
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
101 #else
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
102 ln -s '$input_type.input_readpair.forward' input_read1.txt &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
103 ln -s '$input_type.input_readpair.reverse' input_read2.txt &&
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
104 #end if
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
105 #end if
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
106 ]]></token>
8db56d2f8b72 planemo upload commit c79a5f4a05156bb2a6035a844aa9ad8f0e59ecb5
iuc
parents:
diff changeset
107 </macros>