annotate macros.xml @ 3:fda15c620969 draft

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