~ubuntu-branches/ubuntu/wily/bioperl-run/wily-proposed

« back to all changes in this revision

Viewing changes to Bio/Tools/Run/PiseApplication/satellites.pm

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-09-03 11:00:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090903110003-11of27rxner5vnl9
Tags: 1.6.1-1
* New upstream release.
* debian/patches/10-wrong-path-for-interpreter.patch: removed
  (fixed upstream).
* debian/watch updated (bioperl -> BioPerl).
* debian/rules refreshed with dh-make-perl 0.53.
  - Disabled installation of examples (removed upstream).
  - Removed the correction of file permission of Pise documentation
    (removed upstream).
  - Removed patching facilities (no patches anymore).
  - Disabled tests as I experience failures with t/Eponine.t despite
    this program is not installed.
* debian/copyright:
  - Removed vanity lines about debianization and debian copyright.
  - Incremented years to 2009.
  - Updated to latest experimentation of the machine-readable license summary.
* debian/control:
  - Incremented Standards-Version to reflect conformance on new Policy
    (dropped versionned build-dependancy on Perl).
  - Removed build-dependancy on quilt (no patches anymore).
  - Depend and Build-Depend on bioperl versions superior or equal to 1.6.0.
  - Build-depends on, and Recommdnes libalgorithm-diff-perl, libipc-run-perl,
    libio-string-perl and libxml-twig-perl, that are listed in DEPENDANCIES.
  - Build-depends on libarray-compare-perl and libtree-dagnode-perl
    (otherwise tests fail). 
  - Depend on amap-align instead of amap (Closes: #541274).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: satellites.pm,v 1.6 2006/07/04 22:23:35 mauricio Exp $
2
 
# BioPerl module for Bio::Tools::Run::PiseApplication::satellites
3
 
#
4
 
# Cared for by Catherine Letondal <letondal@pasteur.fr>
5
 
#
6
 
# For copyright and disclaimer see below.
7
 
#
8
 
# POD documentation - main docs before the code
9
 
 
10
 
=head1 NAME
11
 
 
12
 
Bio::Tools::Run::PiseApplication::satellites
13
 
 
14
 
=head1 SYNOPSIS
15
 
 
16
 
  #
17
 
 
18
 
=head1 DESCRIPTION
19
 
 
20
 
Bio::Tools::Run::PiseApplication::satellites
21
 
 
22
 
      Bioperl class for:
23
 
 
24
 
        satellites      identifying satellites and periodic repetitions in biological sequence s (constrained version) (MF. Sagot, G. Myers, E. Poiret)
25
 
 
26
 
 
27
 
      Parameters: 
28
 
 
29
 
        (see also:
30
 
          http://bioweb.pasteur.fr/seqanal/interfaces/satellites.html 
31
 
         for available values):
32
 
 
33
 
 
34
 
                satellites (String)
35
 
 
36
 
                seq (Sequence)
37
 
                        Sequence File
38
 
 
39
 
                alphabet (Excl)
40
 
                        Alphabets and score system (-a)
41
 
 
42
 
                outputbase (String)
43
 
 
44
 
                scoreN (String)
45
 
 
46
 
                maxsym (String)
47
 
 
48
 
                range (String)
49
 
 
50
 
                gap (Integer)
51
 
 
52
 
                minlen (Integer)
53
 
                        Minimum length of repeats (minlen)
54
 
 
55
 
                maxlen (Integer)
56
 
                        Maximum length of repeats (maxlen)
57
 
 
58
 
                maxerr (Integer)
59
 
                        Maximum number of errors allowed between each repeat and the model for a satellite (not more than 10% of the model length) (maxerr)
60
 
 
61
 
                indel (Switch)
62
 
                        Insertions and deletions allowed (indel)
63
 
 
64
 
                maxjump (Integer)
65
 
                        Maximum number of 'bad' repeats between 2 'good' ones (not more than 5) (maxjump)
66
 
 
67
 
                quorum (Integer)
68
 
                        Minimum number of repeats a satellite must have (quorum)
69
 
 
70
 
                usematrix (Switch)
71
 
                        Use scores instead of matrix (usematrix)
72
 
 
73
 
                scorematch (Integer)
74
 
                        Score attributed to a match for the final scoring of a model (scorematch)
75
 
 
76
 
                scoresub (Integer)
77
 
                        Score attributed to a substitution for the final scoring of a model (scoresub)
78
 
 
79
 
                scoregap (Integer)
80
 
                        Score attributed to an indel for the final scoring of a model (scoregap)
81
 
 
82
 
                threshold (Integer)
83
 
                        Filter threshold (threshold)
84
 
 
85
 
                threscore (Integer)
86
 
                        Print threshold (i.e minimum score for printing a model) (threscore)
87
 
 
88
 
                inverted (Switch)
89
 
                        Inverted occurences allowed (inverted)
90
 
 
91
 
                ngroup (String)
92
 
 
93
 
                xml (Switch)
94
 
                        XML output (xml)
95
 
 
96
 
                xmldtdcopy (String)
97
 
 
98
 
=head1 FEEDBACK
99
 
 
100
 
=head2 Mailing Lists
101
 
 
102
 
User feedback is an integral part of the evolution of this and other
103
 
Bioperl modules. Send your comments and suggestions preferably to
104
 
the Bioperl mailing list.  Your participation is much appreciated.
105
 
 
106
 
  bioperl-l@bioperl.org                  - General discussion
107
 
  http://bioperl.org/wiki/Mailing_lists  - About the mailing lists
108
 
 
109
 
=head2 Reporting Bugs
110
 
 
111
 
Report bugs to the Bioperl bug tracking system to help us keep track
112
 
of the bugs and their resolution. Bug reports can be submitted via the
113
 
web:
114
 
 
115
 
  http://bugzilla.open-bio.org/
116
 
 
117
 
=head1 AUTHOR
118
 
 
119
 
Catherine Letondal (letondal@pasteur.fr)
120
 
 
121
 
=head1 COPYRIGHT
122
 
 
123
 
Copyright (C) 2003 Institut Pasteur & Catherine Letondal.
124
 
All Rights Reserved.
125
 
 
126
 
This module is free software; you can redistribute it and/or modify
127
 
it under the same terms as Perl itself.
128
 
 
129
 
=head1 DISCLAIMER
130
 
 
131
 
This software is provided "as is" without warranty of any kind.
132
 
 
133
 
=head1 SEE ALSO
134
 
 
135
 
=over
136
 
 
137
 
=item *
138
 
 
139
 
http://bioweb.pasteur.fr/seqanal/interfaces/satellites.html
140
 
 
141
 
=item *
142
 
 
143
 
Bio::Tools::Run::PiseApplication
144
 
 
145
 
=item *
146
 
 
147
 
Bio::Tools::Run::AnalysisFactory::Pise
148
 
 
149
 
=item *
150
 
 
151
 
Bio::Tools::Run::PiseJob
152
 
 
153
 
=back
154
 
 
155
 
=cut
156
 
 
157
 
#'
158
 
package Bio::Tools::Run::PiseApplication::satellites;
159
 
 
160
 
use vars qw(@ISA);
161
 
use strict;
162
 
use Bio::Tools::Run::PiseApplication;
163
 
 
164
 
@ISA = qw(Bio::Tools::Run::PiseApplication);
165
 
 
166
 
=head2 new
167
 
 
168
 
 Title   : new()
169
 
 Usage   : my $satellites = Bio::Tools::Run::PiseApplication::satellites->new($location, $email, @params);
170
 
 Function: Creates a Bio::Tools::Run::PiseApplication::satellites object.
171
 
           This method should not be used directly, but rather by 
172
 
           a Bio::Tools::Run::AnalysisFactory::Pise instance.
173
 
           my $factory = Bio::Tools::Run::AnalysisFactory::Pise->new();
174
 
           my $satellites = $factory->program('satellites');
175
 
 Example : -
176
 
 Returns : An instance of Bio::Tools::Run::PiseApplication::satellites.
177
 
 
178
 
=cut
179
 
 
180
 
sub new {
181
 
    my ($class, $location, $email, @params) = @_;
182
 
    my $self = $class->SUPER::new($location, $email);
183
 
 
184
 
# -- begin of definitions extracted from /local/gensoft/lib/Pise/5.a/PerlDef/satellites.pm
185
 
 
186
 
    $self->{COMMAND}   = "satellites";
187
 
    $self->{VERSION}   = "5.a";
188
 
    $self->{TITLE}   = "satellites";
189
 
 
190
 
    $self->{DESCRIPTION}   = "identifying satellites and periodic repetitions in biological sequence s (constrained version)";
191
 
 
192
 
    $self->{OPT_EMAIL}   = 0;
193
 
 
194
 
    $self->{AUTHORS}   = "MF. Sagot, G. Myers, E. Poiret";
195
 
 
196
 
    $self->{_INTERFACE_STANDOUT} = undef;
197
 
    $self->{_STANDOUT_FILE} = undef;
198
 
 
199
 
    $self->{TOP_PARAMETERS}  = [ 
200
 
        "satellites",
201
 
        "param",
202
 
        "seq",
203
 
        "alphabet",
204
 
        "outputbase",
205
 
        "scoreN",
206
 
        "maxsym",
207
 
        "resultsfiles",
208
 
        "range",
209
 
        "gap",
210
 
        "minlen",
211
 
        "maxlen",
212
 
        "maxerr",
213
 
        "indel",
214
 
        "maxjump",
215
 
        "quorum",
216
 
        "usematrix",
217
 
        "scorematch",
218
 
        "scoresub",
219
 
        "scoregap",
220
 
        "threshold",
221
 
        "threscore",
222
 
        "inverted",
223
 
        "ngroup",
224
 
        "xml",
225
 
        "xmldtdcopy",
226
 
        "dtdfile",
227
 
 
228
 
    ];
229
 
 
230
 
    $self->{PARAMETERS_ORDER}  = [
231
 
        "satellites",
232
 
        "param",
233
 
        "seq",  # Sequence File
234
 
        "alphabet",     # Alphabets and score system (-a)
235
 
        "outputbase",
236
 
        "scoreN",
237
 
        "maxsym",
238
 
        "resultsfiles",
239
 
        "range",
240
 
        "gap",
241
 
        "minlen",       # Minimum length of repeats (minlen)
242
 
        "maxlen",       # Maximum length of repeats (maxlen)
243
 
        "maxerr",       # Maximum number of errors allowed between each repeat and the model for a satellite (not more than 10% of the model length) (maxerr)
244
 
        "indel",        # Insertions and deletions allowed (indel)
245
 
        "maxjump",      # Maximum number of 'bad' repeats between 2 'good' ones (not more than 5) (maxjump)
246
 
        "quorum",       # Minimum number of repeats a satellite must have (quorum)
247
 
        "usematrix",    # Use scores instead of matrix (usematrix)
248
 
        "scorematch",   # Score attributed to a match for the final scoring of a model (scorematch)
249
 
        "scoresub",     # Score attributed to a substitution for the final scoring of a model (scoresub)
250
 
        "scoregap",     # Score attributed to an indel for the final scoring of a model (scoregap)
251
 
        "threshold",    # Filter threshold (threshold)
252
 
        "threscore",    # Print threshold (i.e minimum score for printing a model) (threscore)
253
 
        "inverted",     # Inverted occurences allowed (inverted)
254
 
        "ngroup",
255
 
        "xml",  # XML output (xml)
256
 
        "xmldtdcopy",
257
 
        "dtdfile",
258
 
 
259
 
    ];
260
 
 
261
 
    $self->{TYPE}  = {
262
 
        "satellites" => 'String',
263
 
        "param" => 'Results',
264
 
        "seq" => 'Sequence',
265
 
        "alphabet" => 'Excl',
266
 
        "outputbase" => 'String',
267
 
        "scoreN" => 'String',
268
 
        "maxsym" => 'String',
269
 
        "resultsfiles" => 'Results',
270
 
        "range" => 'String',
271
 
        "gap" => 'Integer',
272
 
        "minlen" => 'Integer',
273
 
        "maxlen" => 'Integer',
274
 
        "maxerr" => 'Integer',
275
 
        "indel" => 'Switch',
276
 
        "maxjump" => 'Integer',
277
 
        "quorum" => 'Integer',
278
 
        "usematrix" => 'Switch',
279
 
        "scorematch" => 'Integer',
280
 
        "scoresub" => 'Integer',
281
 
        "scoregap" => 'Integer',
282
 
        "threshold" => 'Integer',
283
 
        "threscore" => 'Integer',
284
 
        "inverted" => 'Switch',
285
 
        "ngroup" => 'String',
286
 
        "xml" => 'Switch',
287
 
        "xmldtdcopy" => 'String',
288
 
        "dtdfile" => 'Results',
289
 
 
290
 
    };
291
 
 
292
 
    $self->{FORMAT}  = {
293
 
        "satellites" => {
294
 
                "perl" => ' "sat -p params" ',
295
 
        },
296
 
        "param" => {
297
 
        },
298
 
        "seq" => {
299
 
                "perl" => '" -f $value"',
300
 
        },
301
 
        "alphabet" => {
302
 
                "perl" => '" -a /local/gensoft/lib/satellites/alphabets/$value"',
303
 
        },
304
 
        "outputbase" => {
305
 
                "perl" => ' "outputbase: results\\n" ',
306
 
        },
307
 
        "scoreN" => {
308
 
                "perl" => ' "scoreN: 0\\n" ',
309
 
        },
310
 
        "maxsym" => {
311
 
                "perl" => ' "maxsym: 0\\n" ',
312
 
        },
313
 
        "resultsfiles" => {
314
 
        },
315
 
        "range" => {
316
 
                "perl" => ' "minrange: $minlen\\nmaxrange: $maxlen\\n" ',
317
 
        },
318
 
        "gap" => {
319
 
                "perl" => '"gap: $maxerr\\n"',
320
 
        },
321
 
        "minlen" => {
322
 
                "perl" => '"minlen: $value\\n"',
323
 
        },
324
 
        "maxlen" => {
325
 
                "perl" => '"maxlen: $value\\n"',
326
 
        },
327
 
        "maxerr" => {
328
 
                "perl" => '"maxerr: $value\\n"',
329
 
        },
330
 
        "indel" => {
331
 
                "perl" => '($value)? "indel: 1\\n" : "indel: 0\\n" ',
332
 
        },
333
 
        "maxjump" => {
334
 
                "perl" => '"maxjump: $value\\n"',
335
 
        },
336
 
        "quorum" => {
337
 
                "perl" => '"quorum: $value\\n"',
338
 
        },
339
 
        "usematrix" => {
340
 
                "perl" => '($value)? "usematrix: 0\\n" : "usematrix: 1\\n"',
341
 
        },
342
 
        "scorematch" => {
343
 
                "perl" => '"scorematch: $value\\n"',
344
 
        },
345
 
        "scoresub" => {
346
 
                "perl" => '"scoresub: $value\\n"',
347
 
        },
348
 
        "scoregap" => {
349
 
                "perl" => '"scoregap: $value\\n"',
350
 
        },
351
 
        "threshold" => {
352
 
                "perl" => '"threshold: $value\\n"',
353
 
        },
354
 
        "threscore" => {
355
 
                "perl" => '"threscore: $value\\n"',
356
 
        },
357
 
        "inverted" => {
358
 
                "perl" => '($value)? "inverted: 1\\n" : "inverted: 0\\n" ',
359
 
        },
360
 
        "ngroup" => {
361
 
                "perl" => ' "ngroup: 27\\n1 A\\n2 B\\n3 C\\n4 D\\n5 E\\n6 F\\n7 G\\n8 H\\n9 I\\n10 J\\n11 K\\n12 L\\n13 M\\n14 N\\n15 O\\n16 P\\n17 Q\\n18 R\\n19 S\\n20 T\\n21 U\\n22 V\\n23 W\\n24 X\\n25 Y\\n26 Z\\n27 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z\\n" ',
362
 
        },
363
 
        "xml" => {
364
 
                "perl" => '($value)? "xml: 1\\n" : "" ',
365
 
        },
366
 
        "xmldtdcopy" => {
367
 
                "perl" => '"; cp /local/gensoft/lib/satellites/satellites.dtd ."',
368
 
        },
369
 
        "dtdfile" => {
370
 
        },
371
 
 
372
 
    };
373
 
 
374
 
    $self->{FILENAMES}  = {
375
 
        "param" => 'params',
376
 
        "resultsfiles" => 'results*',
377
 
        "dtdfile" => 'satellites.dtd',
378
 
 
379
 
    };
380
 
 
381
 
    $self->{SEQFMT}  = {
382
 
        "seq" => [8],
383
 
 
384
 
    };
385
 
 
386
 
    $self->{GROUP}  = {
387
 
        "satellites" => 0,
388
 
        "seq" => 1,
389
 
        "alphabet" => 1,
390
 
        "outputbase" => 1,
391
 
        "ngroup" => 100,
392
 
        "xmldtdcopy" => 100,
393
 
 
394
 
    };
395
 
 
396
 
    $self->{BY_GROUP_PARAMETERS}  = [
397
 
        "satellites",
398
 
        "param",
399
 
        "inverted",
400
 
        "xml",
401
 
        "dtdfile",
402
 
        "scoreN",
403
 
        "maxsym",
404
 
        "resultsfiles",
405
 
        "range",
406
 
        "gap",
407
 
        "minlen",
408
 
        "maxlen",
409
 
        "maxerr",
410
 
        "indel",
411
 
        "maxjump",
412
 
        "quorum",
413
 
        "usematrix",
414
 
        "scorematch",
415
 
        "scoresub",
416
 
        "scoregap",
417
 
        "threshold",
418
 
        "threscore",
419
 
        "seq",
420
 
        "alphabet",
421
 
        "outputbase",
422
 
        "xmldtdcopy",
423
 
        "ngroup",
424
 
 
425
 
    ];
426
 
 
427
 
    $self->{SIZE}  = {
428
 
 
429
 
    };
430
 
 
431
 
    $self->{ISHIDDEN}  = {
432
 
        "satellites" => 1,
433
 
        "param" => 0,
434
 
        "seq" => 0,
435
 
        "alphabet" => 0,
436
 
        "outputbase" => 1,
437
 
        "scoreN" => 1,
438
 
        "maxsym" => 1,
439
 
        "resultsfiles" => 0,
440
 
        "range" => 1,
441
 
        "gap" => 1,
442
 
        "minlen" => 0,
443
 
        "maxlen" => 0,
444
 
        "maxerr" => 0,
445
 
        "indel" => 0,
446
 
        "maxjump" => 0,
447
 
        "quorum" => 0,
448
 
        "usematrix" => 0,
449
 
        "scorematch" => 0,
450
 
        "scoresub" => 0,
451
 
        "scoregap" => 0,
452
 
        "threshold" => 0,
453
 
        "threscore" => 0,
454
 
        "inverted" => 0,
455
 
        "ngroup" => 1,
456
 
        "xml" => 0,
457
 
        "xmldtdcopy" => 1,
458
 
        "dtdfile" => 0,
459
 
 
460
 
    };
461
 
 
462
 
    $self->{ISCOMMAND}  = {
463
 
        "satellites" => 1,
464
 
        "param" => 0,
465
 
        "seq" => 0,
466
 
        "alphabet" => 0,
467
 
        "outputbase" => 0,
468
 
        "scoreN" => 0,
469
 
        "maxsym" => 0,
470
 
        "resultsfiles" => 0,
471
 
        "range" => 0,
472
 
        "gap" => 0,
473
 
        "minlen" => 0,
474
 
        "maxlen" => 0,
475
 
        "maxerr" => 0,
476
 
        "indel" => 0,
477
 
        "maxjump" => 0,
478
 
        "quorum" => 0,
479
 
        "usematrix" => 0,
480
 
        "scorematch" => 0,
481
 
        "scoresub" => 0,
482
 
        "scoregap" => 0,
483
 
        "threshold" => 0,
484
 
        "threscore" => 0,
485
 
        "inverted" => 0,
486
 
        "ngroup" => 0,
487
 
        "xml" => 0,
488
 
        "xmldtdcopy" => 0,
489
 
        "dtdfile" => 0,
490
 
 
491
 
    };
492
 
 
493
 
    $self->{ISMANDATORY}  = {
494
 
        "satellites" => 0,
495
 
        "param" => 0,
496
 
        "seq" => 1,
497
 
        "alphabet" => 1,
498
 
        "outputbase" => 0,
499
 
        "scoreN" => 0,
500
 
        "maxsym" => 0,
501
 
        "resultsfiles" => 0,
502
 
        "range" => 0,
503
 
        "gap" => 0,
504
 
        "minlen" => 1,
505
 
        "maxlen" => 1,
506
 
        "maxerr" => 1,
507
 
        "indel" => 0,
508
 
        "maxjump" => 1,
509
 
        "quorum" => 1,
510
 
        "usematrix" => 0,
511
 
        "scorematch" => 1,
512
 
        "scoresub" => 1,
513
 
        "scoregap" => 1,
514
 
        "threshold" => 1,
515
 
        "threscore" => 1,
516
 
        "inverted" => 0,
517
 
        "ngroup" => 0,
518
 
        "xml" => 0,
519
 
        "xmldtdcopy" => 0,
520
 
        "dtdfile" => 0,
521
 
 
522
 
    };
523
 
 
524
 
    $self->{PROMPT}  = {
525
 
        "satellites" => "",
526
 
        "param" => "",
527
 
        "seq" => "Sequence File",
528
 
        "alphabet" => "Alphabets and score system (-a)",
529
 
        "outputbase" => "",
530
 
        "scoreN" => "",
531
 
        "maxsym" => "",
532
 
        "resultsfiles" => "",
533
 
        "range" => "",
534
 
        "gap" => "",
535
 
        "minlen" => "Minimum length of repeats (minlen)",
536
 
        "maxlen" => "Maximum length of repeats (maxlen)",
537
 
        "maxerr" => "Maximum number of errors allowed between each repeat and the model for a satellite (not more than 10% of the model length) (maxerr)",
538
 
        "indel" => "Insertions and deletions allowed (indel)",
539
 
        "maxjump" => "Maximum number of 'bad' repeats between 2 'good' ones (not more than 5) (maxjump)",
540
 
        "quorum" => "Minimum number of repeats a satellite must have (quorum)",
541
 
        "usematrix" => "Use scores instead of matrix (usematrix)",
542
 
        "scorematch" => "Score attributed to a match for the final scoring of a model (scorematch)",
543
 
        "scoresub" => "Score attributed to a substitution for the final scoring of a model (scoresub)",
544
 
        "scoregap" => "Score attributed to an indel for the final scoring of a model (scoregap)",
545
 
        "threshold" => "Filter threshold (threshold)",
546
 
        "threscore" => "Print threshold (i.e minimum score for printing a model) (threscore)",
547
 
        "inverted" => "Inverted occurences allowed (inverted)",
548
 
        "ngroup" => "",
549
 
        "xml" => "XML output (xml)",
550
 
        "xmldtdcopy" => "",
551
 
        "dtdfile" => "",
552
 
 
553
 
    };
554
 
 
555
 
    $self->{ISSTANDOUT}  = {
556
 
        "satellites" => 0,
557
 
        "param" => 0,
558
 
        "seq" => 0,
559
 
        "alphabet" => 0,
560
 
        "outputbase" => 0,
561
 
        "scoreN" => 0,
562
 
        "maxsym" => 0,
563
 
        "resultsfiles" => 0,
564
 
        "range" => 0,
565
 
        "gap" => 0,
566
 
        "minlen" => 0,
567
 
        "maxlen" => 0,
568
 
        "maxerr" => 0,
569
 
        "indel" => 0,
570
 
        "maxjump" => 0,
571
 
        "quorum" => 0,
572
 
        "usematrix" => 0,
573
 
        "scorematch" => 0,
574
 
        "scoresub" => 0,
575
 
        "scoregap" => 0,
576
 
        "threshold" => 0,
577
 
        "threscore" => 0,
578
 
        "inverted" => 0,
579
 
        "ngroup" => 0,
580
 
        "xml" => 0,
581
 
        "xmldtdcopy" => 0,
582
 
        "dtdfile" => 0,
583
 
 
584
 
    };
585
 
 
586
 
    $self->{VLIST}  = {
587
 
 
588
 
        "alphabet" => ['dna.alphab','DNA','prot.alphab','protein identity','blosum62.alphab','blosum62','pam250.alphab','pam250',],
589
 
    };
590
 
 
591
 
    $self->{FLIST}  = {
592
 
 
593
 
    };
594
 
 
595
 
    $self->{SEPARATOR}  = {
596
 
 
597
 
    };
598
 
 
599
 
    $self->{VDEF}  = {
600
 
        "alphabet" => 'dna.alphab',
601
 
        "minlen" => '3',
602
 
        "maxlen" => '10',
603
 
        "maxerr" => '1',
604
 
        "indel" => '1',
605
 
        "maxjump" => '1',
606
 
        "quorum" => '20',
607
 
        "usematrix" => '1',
608
 
        "scorematch" => '1',
609
 
        "scoresub" => '-1',
610
 
        "scoregap" => '-2',
611
 
        "threshold" => '800',
612
 
        "threscore" => '50',
613
 
        "inverted" => '0',
614
 
        "xml" => '0',
615
 
 
616
 
    };
617
 
 
618
 
    $self->{PRECOND}  = {
619
 
        "satellites" => { "perl" => '1' },
620
 
        "param" => { "perl" => '1' },
621
 
        "seq" => { "perl" => '1' },
622
 
        "alphabet" => { "perl" => '1' },
623
 
        "outputbase" => { "perl" => '1' },
624
 
        "scoreN" => { "perl" => '1' },
625
 
        "maxsym" => { "perl" => '1' },
626
 
        "resultsfiles" => { "perl" => '1' },
627
 
        "range" => { "perl" => '1' },
628
 
        "gap" => { "perl" => '1' },
629
 
        "minlen" => { "perl" => '1' },
630
 
        "maxlen" => { "perl" => '1' },
631
 
        "maxerr" => { "perl" => '1' },
632
 
        "indel" => { "perl" => '1' },
633
 
        "maxjump" => { "perl" => '1' },
634
 
        "quorum" => { "perl" => '1' },
635
 
        "usematrix" => { "perl" => '1' },
636
 
        "scorematch" => { "perl" => '1' },
637
 
        "scoresub" => { "perl" => '1' },
638
 
        "scoregap" => { "perl" => '1' },
639
 
        "threshold" => { "perl" => '1' },
640
 
        "threscore" => { "perl" => '1' },
641
 
        "inverted" => { "perl" => '1' },
642
 
        "ngroup" => { "perl" => '1' },
643
 
        "xml" => { "perl" => '1' },
644
 
        "xmldtdcopy" => {
645
 
                "perl" => '$xml',
646
 
        },
647
 
        "dtdfile" => {
648
 
                "perl" => '$xml',
649
 
        },
650
 
 
651
 
    };
652
 
 
653
 
    $self->{CTRL}  = {
654
 
        "maxlen" => {
655
 
                "perl" => {
656
 
                        '$maxlen > 50' => "Maximum value : 50",
657
 
                },
658
 
        },
659
 
        "maxerr" => {
660
 
                "perl" => {
661
 
                        '($maxlen > 10 && $maxerr > (($maxlen / 100) * 10)) || ($maxlen <= 10 && $maxerr > 1)' => "The number of errors may not be more than 10% of the model length",
662
 
                },
663
 
        },
664
 
        "maxjump" => {
665
 
                "perl" => {
666
 
                        '$maxjump > 5' => "The number of 'bad' repeats may not be more than 5",
667
 
                },
668
 
        },
669
 
        "threshold" => {
670
 
                "perl" => {
671
 
                        '$value < 0' => "please enter a non-negative integer value",
672
 
                },
673
 
        },
674
 
 
675
 
    };
676
 
 
677
 
    $self->{PIPEOUT}  = {
678
 
 
679
 
    };
680
 
 
681
 
    $self->{WITHPIPEOUT}  = {
682
 
 
683
 
    };
684
 
 
685
 
    $self->{PIPEIN}  = {
686
 
 
687
 
    };
688
 
 
689
 
    $self->{WITHPIPEIN}  = {
690
 
 
691
 
    };
692
 
 
693
 
    $self->{ISCLEAN}  = {
694
 
        "satellites" => 0,
695
 
        "param" => 0,
696
 
        "seq" => 0,
697
 
        "alphabet" => 0,
698
 
        "outputbase" => 0,
699
 
        "scoreN" => 0,
700
 
        "maxsym" => 0,
701
 
        "resultsfiles" => 0,
702
 
        "range" => 0,
703
 
        "gap" => 0,
704
 
        "minlen" => 0,
705
 
        "maxlen" => 0,
706
 
        "maxerr" => 0,
707
 
        "indel" => 0,
708
 
        "maxjump" => 0,
709
 
        "quorum" => 0,
710
 
        "usematrix" => 0,
711
 
        "scorematch" => 0,
712
 
        "scoresub" => 0,
713
 
        "scoregap" => 0,
714
 
        "threshold" => 0,
715
 
        "threscore" => 0,
716
 
        "inverted" => 0,
717
 
        "ngroup" => 0,
718
 
        "xml" => 0,
719
 
        "xmldtdcopy" => 0,
720
 
        "dtdfile" => 0,
721
 
 
722
 
    };
723
 
 
724
 
    $self->{ISSIMPLE}  = {
725
 
        "satellites" => 0,
726
 
        "param" => 0,
727
 
        "seq" => 1,
728
 
        "alphabet" => 1,
729
 
        "outputbase" => 0,
730
 
        "scoreN" => 0,
731
 
        "maxsym" => 0,
732
 
        "resultsfiles" => 0,
733
 
        "range" => 0,
734
 
        "gap" => 0,
735
 
        "minlen" => 1,
736
 
        "maxlen" => 0,
737
 
        "maxerr" => 0,
738
 
        "indel" => 0,
739
 
        "maxjump" => 0,
740
 
        "quorum" => 0,
741
 
        "usematrix" => 0,
742
 
        "scorematch" => 0,
743
 
        "scoresub" => 0,
744
 
        "scoregap" => 0,
745
 
        "threshold" => 0,
746
 
        "threscore" => 0,
747
 
        "inverted" => 0,
748
 
        "ngroup" => 0,
749
 
        "xml" => 0,
750
 
        "xmldtdcopy" => 0,
751
 
        "dtdfile" => 0,
752
 
 
753
 
    };
754
 
 
755
 
    $self->{PARAMFILE}  = {
756
 
        "outputbase" => "params",
757
 
        "scoreN" => "params",
758
 
        "maxsym" => "params",
759
 
        "range" => "params",
760
 
        "gap" => "params",
761
 
        "minlen" => "params",
762
 
        "maxlen" => "params",
763
 
        "maxerr" => "params",
764
 
        "indel" => "params",
765
 
        "maxjump" => "params",
766
 
        "quorum" => "params",
767
 
        "usematrix" => "params",
768
 
        "scorematch" => "params",
769
 
        "scoresub" => "params",
770
 
        "scoregap" => "params",
771
 
        "threshold" => "params",
772
 
        "threscore" => "params",
773
 
        "inverted" => "params",
774
 
        "ngroup" => "params",
775
 
        "xml" => "params",
776
 
 
777
 
    };
778
 
 
779
 
    $self->{COMMENT}  = {
780
 
        "maxjump" => [
781
 
                "i.e having more than the maximum number of errors allowed",
782
 
        ],
783
 
        "quorum" => [
784
 
                "Corresponds to min_repeat in the paper",
785
 
        ],
786
 
        "usematrix" => [
787
 
                "If unset, will use the score matrix, otherwise will use scorematch and scoresub.",
788
 
        ],
789
 
        "scorematch" => [
790
 
                "Suggestion: 1",
791
 
        ],
792
 
        "scoresub" => [
793
 
                "Suggestion: -1",
794
 
        ],
795
 
        "scoregap" => [
796
 
                "Suggestion: -2",
797
 
        ],
798
 
        "threshold" => [
799
 
                "Set it to 0 for guaranteed exhaustive search.",
800
 
                "Suggestion: set it to 800 for 10%-15% error rate.",
801
 
        ],
802
 
        "threscore" => [
803
 
                "Suggestion: for a flexible search, if the scoring values are the ones suggested, set it to 50.",
804
 
                "For a more pertinent search, set it to 100.",
805
 
        ],
806
 
 
807
 
    };
808
 
 
809
 
    $self->{SCALEMIN}  = {
810
 
 
811
 
    };
812
 
 
813
 
    $self->{SCALEMAX}  = {
814
 
 
815
 
    };
816
 
 
817
 
    $self->{SCALEINC}  = {
818
 
 
819
 
    };
820
 
 
821
 
    $self->{INFO}  = {
822
 
 
823
 
    };
824
 
 
825
 
# -- end of definitions extracted from /local/gensoft/lib/Pise/5.a/PerlDef/satellites.pm
826
 
 
827
 
 
828
 
 
829
 
    $self->_init_params(@params);
830
 
 
831
 
    return $self;
832
 
}
833
 
 
834
 
 
835
 
 
836
 
1; # Needed to keep compiler happy
837