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