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