2
|
1 <macros>
|
|
2
|
|
3 <xml name="paired_library_options">
|
|
4 <param name="ins_length" type="integer" optional="true" label="Expected distance between two paired end reads"/>
|
|
5 <param name="ins_length_sd" type="integer" optional="true" label="Standard deviation for paired end reads length (default: 10% of corresponding length)"/>
|
|
6 <repeat min="1" name="files" title="Input files">
|
|
7 <conditional name="fileFormat">
|
|
8 <param name="format" type="select" label="File format">
|
|
9 <option value="-fasta">fasta</option>
|
|
10 <option value="-fastq">fastq</option>
|
|
11 <option value="-fasta_gz">fasta.gz</option>
|
|
12 <option value="-fastq_gz">fastq.gz</option>
|
|
13 </param>
|
|
14 <when value="-fasta">
|
|
15 <conditional name="fileLayout">
|
|
16 <param name="layout" type="select" label="File layout">
|
|
17 <option value="-interleaved">interleaved</option>
|
|
18 <option value="-separate">separate</option>
|
|
19 </param>
|
|
20 <when value="-interleaved">
|
|
21 <param name="sequence" type="data" format="fasta" label="Interleaved sequence file"/>
|
|
22 </when>
|
|
23 <when value="-separate">
|
|
24 <param name="sequence" type="data" format="fasta" label="Forward sequence file"/>
|
|
25 <param name="sequencePair" type="data" format="fasta" optional="true" label="Reverse sequence file"/>
|
|
26 </when>
|
|
27 </conditional>
|
|
28 </when>
|
|
29 <when value="-fasta_gz">
|
|
30 <conditional name="fileLayout">
|
|
31 <param name="layout" type="select" label="File layout">
|
|
32 <option value="-interleaved">interleaved</option>
|
|
33 <option value="-separate">separate</option>
|
|
34 </param>
|
|
35 <when value="-interleaved">
|
|
36 <param name="sequence" type="data" format="fasta.gz" label="Interleaved sequence file"/>
|
|
37 </when>
|
|
38 <when value="-separate">
|
|
39 <param name="sequence" type="data" format="fasta.gz" label="Forward sequence file"/>
|
|
40 <param name="sequencePair" type="data" format="fasta.gz" optional="true" label="Reverse sequence file"/>
|
|
41 </when>
|
|
42 </conditional>
|
|
43 </when>
|
|
44 <when value="-fastq">
|
|
45 <conditional name="fileLayout">
|
|
46 <param name="layout" type="select" label="File layout">
|
|
47 <option value="-interleaved">interleaved</option>
|
|
48 <option value="-separate">separate</option>
|
|
49 </param>
|
|
50 <when value="-interleaved">
|
|
51 <param name="sequence" type="data" format="fastq" label="Interleaved sequence file"/>
|
|
52 </when>
|
|
53 <when value="-separate">
|
|
54 <param name="sequence" type="data" format="fastq" label="Forward sequence file"/>
|
|
55 <param name="sequencePair" type="data" format="fastq" optional="true" label="Reverse sequence file"/>
|
|
56 </when>
|
|
57 </conditional>
|
|
58 </when>
|
|
59 <when value="-fastq_gz">
|
|
60 <conditional name="fileLayout">
|
|
61 <param name="layout" type="select" label="File layout">
|
|
62 <option value="-interleaved">interleaved</option>
|
|
63 <option value="-separate">separate</option>
|
|
64 </param>
|
|
65 <when value="-interleaved">
|
|
66 <param name="sequence" type="data" format="fastq.gz" label="Interleaved sequence file"/>
|
|
67 </when>
|
|
68 <when value="-separate">
|
|
69 <param name="sequence" type="data" format="fastq.gz" label="Forward sequence file"/>
|
|
70 <param name="sequencePair" type="data" format="fastq.gz" optional="true" label="Reverse sequence file"/>
|
|
71 </when>
|
|
72 </conditional>
|
|
73 </when>
|
|
74 </conditional>
|
|
75 </repeat>
|
|
76 </xml>
|
|
77
|
|
78 <token name="@PAIRED_FILES_OPTIONS@">
|
|
79
|
|
80 #for $j, $file in enumerate( $library.files )
|
|
81
|
|
82 $file.fileFormat.format
|
|
83
|
|
84 #if $file.fileFormat.fileLayout.layout == "-separate"
|
|
85 -separate $file.fileFormat.fileLayout.sequence $file.fileFormat.fileLayout.sequencePair
|
|
86 #else
|
|
87 -interleaved $file.fileFormat.fileLayout.sequence
|
|
88 #end if
|
|
89
|
|
90 #end for
|
|
91
|
|
92 </token>
|
|
93
|
|
94 <xml name="unpaired_library_options">
|
|
95 <repeat min="1" name="files" title="Input files">
|
|
96 <conditional name="fileFormat">
|
|
97 <param name="format" type="select" label="File format">
|
|
98 <option value="-fasta">fasta</option>
|
|
99 <option value="-fastq">fastq</option>
|
|
100 <option value="-raw">raw</option>
|
|
101 <option value="-fasta_gz">fasta.gz</option>
|
|
102 <option value="-fastq_gz">fastq.gz</option>
|
|
103 <option value="-raw_gz">raw.gz</option>
|
|
104 <option value="-sam">sam</option>
|
|
105 <option value="-bam">bam</option>
|
|
106 </param>
|
|
107 <when value="-fasta">
|
|
108 <param name="sequence" type="data" format="fasta" label="Sequence file"/>
|
|
109 </when>
|
|
110 <when value="-fasta_gz">
|
|
111 <param name="sequence" type="data" format="fasta.gz" label="Sequence file"/>
|
|
112 </when>
|
|
113 <when value="-fastq">
|
|
114 <param name="sequence" type="data" format="fastq" label="Sequence file"/>
|
|
115 </when>
|
|
116 <when value="-fastq_gz">
|
|
117 <param name="sequence" type="data" format="fastq.gz" label="Sequence file"/>
|
|
118 </when>
|
|
119 <when value="-raw">
|
|
120 <param name="sequence" type="data" format="txt" label="Sequence file"/>
|
|
121 </when>
|
|
122 <when value="-raw_gz">
|
|
123 <param name="sequence" type="data" format="txt" label="Sequence file"/>
|
|
124 </when>
|
|
125 <when value="-sam">
|
|
126 <param name="sequence" type="data" format="sam" label="Sequence file"/>
|
|
127 </when>
|
|
128 <when value="-bam">
|
|
129 <param name="sequence" type="data" format="bam" label="Sequence file"/>
|
|
130 </when>
|
|
131 </conditional>
|
|
132 </repeat>
|
|
133 </xml>
|
|
134
|
|
135 <token name="@UNPAIRED_FILES_OPTIONS@">
|
|
136
|
|
137 #for $j, $file in enumerate( $library.files )
|
|
138
|
|
139 $file.fileFormat.format
|
|
140
|
|
141 $file.fileFormat.sequence
|
|
142
|
|
143 #end for
|
|
144
|
|
145 </token>
|
|
146
|
|
147 </macros>
|