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