/
dialign2.pm
437 lines (322 loc) · 8.7 KB
/
dialign2.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
=head1 NAME
Bio::Tools::Run::PiseApplication::dialign2
=head1 SYNOPSIS
#
=head1 DESCRIPTION
Bio::Tools::Run::PiseApplication::dialign2
Bioperl class for:
DIALIGN DNA and protein sequence alignment based on segment-to-segment comparison (Morgenstern, Dress, Werner)
References:
B. Morgenstern (1999). DIALIGN 2: improvement of the segment-to-segment approach to multiple sequence alignment. Bioinformatics 15, 211 - 218.
Parameters:
dialign2 (String)
sequence (Sequence)
Sequences
pipe: seqsfile
protein_dna (Excl)
Nucleic acid or protein alignment
dialign_opt (Paragraph)
Others options
threshold (Float)
Threshold
translation (Switch)
Translation of nucleotide diagonals into peptide diagonals (DNA)
max_simil (Integer)
Maximum number of * characters representing degree similarity
output_options (Paragraph)
Output options
fasta (Switch)
Alignment in fasta format
ali (Results)
=cut
#'
package Bio::Tools::Run::PiseApplication::dialign2;
use vars qw(@ISA);
use strict;
use Bio::Tools::Run::PiseApplication;
@ISA = qw(Bio::Tools::Run::PiseApplication);
=head2 new
Title : new()
Usage : my $dialign2 = Bio::Tools::Run::PiseApplication::dialign2->new($remote, $email, @params);
Function: Creates a Bio::Tools::Run::PiseApplication::dialign2 object.
This method should not be used directly, but rather by
a Bio::Factory::Pise instance:
my $factory = Bio::Factory::Pise->new(-email => 'me@myhome');
my $dialign2 = $factory->program('dialign2');
Example :
Returns : An instance of Bio::Tools::Run::PiseApplication::dialign2.
=cut
sub new {
my ($class, $remote, $email, @params) = @_;
my $self = $class->SUPER::new($remote, $email);
# -- begin of definitions extracted from /local/gensoft/lib/Pise/5.a/PerlDef/dialign2.pm
$self->{COMMAND} = "dialign2";
$self->{VERSION} = "5.a";
$self->{TITLE} = "DIALIGN";
$self->{DESCRIPTION} = "DNA and protein sequence alignment based on segment-to-segment comparison";
$self->{CATEGORIES} = [
"alignment:multiple",
];
$self->{AUTHORS} = "Morgenstern, Dress, Werner";
$self->{REFERENCE} = [
"B. Morgenstern (1999). DIALIGN 2: improvement of the segment-to-segment approach to multiple sequence alignment. Bioinformatics 15, 211 - 218.",
];
$self->{_INTERFACE_STANDOUT} = undef;
$self->{_STANDOUT_FILE} = undef;
$self->{TOP_PARAMETERS} = [
"dialign2",
"sequence",
"protein_dna",
"dialign_opt",
"output_options",
"ali",
];
$self->{PARAMETERS_ORDER} = [
"dialign2",
"sequence", # Sequences
"protein_dna", # Nucleic acid or protein alignment
"dialign_opt", # Others options
"threshold", # Threshold
"translation", # Translation of nucleotide diagonals into peptide diagonals (DNA)
"max_simil", # Maximum number of * characters representing degree similarity
"output_options", # Output options
"fasta", # Alignment in fasta format
"ali",
];
$self->{TYPE} = {
"dialign2" => 'String',
"sequence" => 'Sequence',
"protein_dna" => 'Excl',
"dialign_opt" => 'Paragraph',
"threshold" => 'Float',
"translation" => 'Switch',
"max_simil" => 'Integer',
"output_options" => 'Paragraph',
"fasta" => 'Switch',
"ali" => 'Results',
};
$self->{FORMAT} = {
"dialign2" => {
"seqlab" => 'dialign2',
"perl" => '"dialign2"',
},
"sequence" => {
"perl" => '" $value" ',
},
"protein_dna" => {
"perl" => '($value eq "n")? " -n" : "" ',
},
"dialign_opt" => {
},
"threshold" => {
"perl" => '(defined $value && $value != $vdef)? " -thr $value" : "" ',
},
"translation" => {
"perl" => '($protein_dna eq "n" && $value)? "t" : "" ',
},
"max_simil" => {
"perl" => '($value && $value != $vdef)? " -stars $value" : "" ',
},
"output_options" => {
},
"fasta" => {
"perl" => '($value)? " -fa" : "" ',
},
"ali" => {
},
};
$self->{FILENAMES} = {
"ali" => '*.ali *.fa',
};
$self->{SEQFMT} = {
"sequence" => [1,8,4],
};
$self->{GROUP} = {
"dialign2" => 0,
"sequence" => 100,
"protein_dna" => 3,
"dialign_opt" => 7,
"threshold" => 7,
"translation" => 4,
"max_simil" => 7,
"output_options" => 7,
"fasta" => 7,
};
$self->{BY_GROUP_PARAMETERS} = [
"dialign2",
"ali",
"protein_dna",
"translation",
"threshold",
"dialign_opt",
"max_simil",
"output_options",
"fasta",
"sequence",
];
$self->{SIZE} = {
};
$self->{ISHIDDEN} = {
"dialign2" => 1,
"sequence" => 0,
"protein_dna" => 0,
"dialign_opt" => 0,
"threshold" => 0,
"translation" => 0,
"max_simil" => 0,
"output_options" => 0,
"fasta" => 0,
"ali" => 0,
};
$self->{ISCOMMAND} = {
"dialign2" => 1,
"sequence" => 0,
"protein_dna" => 0,
"dialign_opt" => 0,
"threshold" => 0,
"translation" => 0,
"max_simil" => 0,
"output_options" => 0,
"fasta" => 0,
"ali" => 0,
};
$self->{ISMANDATORY} = {
"dialign2" => 0,
"sequence" => 1,
"protein_dna" => 1,
"dialign_opt" => 0,
"threshold" => 0,
"translation" => 0,
"max_simil" => 0,
"output_options" => 0,
"fasta" => 0,
"ali" => 0,
};
$self->{PROMPT} = {
"dialign2" => "",
"sequence" => "Sequences",
"protein_dna" => "Nucleic acid or protein alignment",
"dialign_opt" => "Others options",
"threshold" => "Threshold",
"translation" => "Translation of nucleotide diagonals into peptide diagonals (DNA)",
"max_simil" => "Maximum number of * characters representing degree similarity",
"output_options" => "Output options",
"fasta" => "Alignment in fasta format",
"ali" => "",
};
$self->{ISSTANDOUT} = {
"dialign2" => 0,
"sequence" => 0,
"protein_dna" => 0,
"dialign_opt" => 0,
"threshold" => 0,
"translation" => 0,
"max_simil" => 0,
"output_options" => 0,
"fasta" => 0,
"ali" => 0,
};
$self->{VLIST} = {
"protein_dna" => ['p','p: protein','n','n: nucleic',],
"dialign_opt" => ['threshold','translation','max_simil',],
"output_options" => ['fasta',],
};
$self->{FLIST} = {
};
$self->{SEPARATOR} = {
};
$self->{VDEF} = {
"protein_dna" => 'p',
"threshold" => '0.0',
"translation" => '0',
"max_simil" => '5',
"fasta" => '0',
};
$self->{PRECOND} = {
"dialign2" => { "perl" => '1' },
"sequence" => { "perl" => '1' },
"protein_dna" => { "perl" => '1' },
"dialign_opt" => { "perl" => '1' },
"threshold" => { "perl" => '1' },
"translation" => { "perl" => '1' },
"max_simil" => { "perl" => '1' },
"output_options" => { "perl" => '1' },
"fasta" => { "perl" => '1' },
"ali" => { "perl" => '1' },
};
$self->{CTRL} = {
};
$self->{PIPEOUT} = {
};
$self->{WITHPIPEOUT} = {
};
$self->{PIPEIN} = {
"sequence" => {
"seqsfile" => '1',
},
};
$self->{WITHPIPEIN} = {
};
$self->{ISCLEAN} = {
"dialign2" => 0,
"sequence" => 0,
"protein_dna" => 0,
"dialign_opt" => 0,
"threshold" => 0,
"translation" => 0,
"max_simil" => 0,
"output_options" => 0,
"fasta" => 0,
"ali" => 0,
};
$self->{ISSIMPLE} = {
"dialign2" => 1,
"sequence" => 1,
"protein_dna" => 1,
"dialign_opt" => 0,
"threshold" => 0,
"translation" => 0,
"max_simil" => 0,
"output_options" => 0,
"fasta" => 0,
"ali" => 0,
};
$self->{PARAMFILE} = {
};
$self->{COMMENT} = {
"sequence" => [
"Give here the sequences you want to align (you can give more than 2 sequences). The FASTA format is accepted - example:",
">name1",
"TACTTTACCCAGTAGTCATGTACAGAGT",
"ACCGCCTCAATAAAAAGCCTAAGAGTCA",
">name2",
"CCCATATGTGTAGAAGTTGCCTCGAGTG",
"TTTACGCGGGGGCGGGCATTCTTTAAAC",
"CACGCGGGGGATATTGCGAAACACCCAT",
"GAGAGAGGGGGGAATGCCCCGTA",
">name3",
"ACCTACTCTCCCCCCCCTTTTCCCAACT",
"ATCTAATCTATTTYCAGGGCGTGGACGG",
"GGGGG",
],
"max_simil" => [
"The number of `*\' characters below the alignment reflects the degree of local similarity among sequences. More precisely: They represent the sum of `weights\' of diagonals connecting residues at the respective position.",
"The number of `*\' characters is normalized such that regions of maximum similarity have N `*\' characters per column. N can be specified by the user. By default, N = 5. Note that the number of `*\' characters depicts therelative degree of similarity within an alignment, since in every alignment, the region of maximum similarity gets N `*\' characters.",
],
"fasta" => [
"Be aware that only upper-case letters are regarded to be aligned in fasta output file.",
],
};
$self->{SCALEMIN} = {
};
$self->{SCALEMAX} = {
};
$self->{SCALEINC} = {
};
$self->{INFO} = {
};
# -- end of definitions extracted from /local/gensoft/lib/Pise/5.a/PerlDef/dialign2.pm
$self->_init_params(@params);
return $self;
}
1; # Needed to keep compiler happy