1
# $Id: map.pm,v 1.6 2006/07/04 22:23:34 mauricio Exp $
2
# BioPerl module for Bio::Tools::Run::PiseApplication::map
4
# Cared for by Catherine Letondal <letondal@pasteur.fr>
6
# For copyright and disclaimer see below.
8
# POD documentation - main docs before the code
12
Bio::Tools::Run::PiseApplication::map
20
Bio::Tools::Run::PiseApplication::map
24
MAP Multiple Alignment Program
30
http://bioweb.pasteur.fr/seqanal/interfaces/map.html
31
for available values):
40
gap size: minimum length of any gap in a short sequence charged with a constant gap penalty (gs)
43
score of a mismatch (<0)
46
gap open penalty (>=0)
49
gap extension penalty (>=0)
52
Matrix (Name of a file containing an alternate or user-defined scoring matrix)
58
User feedback is an integral part of the evolution of this and other
59
Bioperl modules. Send your comments and suggestions preferably to
60
the Bioperl mailing list. Your participation is much appreciated.
62
bioperl-l@bioperl.org - General discussion
63
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
67
Report bugs to the Bioperl bug tracking system to help us keep track
68
of the bugs and their resolution. Bug reports can be submitted via the
71
http://bugzilla.open-bio.org/
75
Catherine Letondal (letondal@pasteur.fr)
79
Copyright (C) 2003 Institut Pasteur & Catherine Letondal.
82
This module is free software; you can redistribute it and/or modify
83
it under the same terms as Perl itself.
87
This software is provided "as is" without warranty of any kind.
95
http://bioweb.pasteur.fr/seqanal/interfaces/map.html
99
Bio::Tools::Run::PiseApplication
103
Bio::Tools::Run::AnalysisFactory::Pise
107
Bio::Tools::Run::PiseJob
114
package Bio::Tools::Run::PiseApplication::map;
118
use Bio::Tools::Run::PiseApplication;
120
@ISA = qw(Bio::Tools::Run::PiseApplication);
125
Usage : my $map = Bio::Tools::Run::PiseApplication::map->new($location, $email, @params);
126
Function: Creates a Bio::Tools::Run::PiseApplication::map object.
127
This method should not be used directly, but rather by
128
a Bio::Tools::Run::AnalysisFactory::Pise instance.
129
my $factory = Bio::Tools::Run::AnalysisFactory::Pise->new();
130
my $map = $factory->program('map');
132
Returns : An instance of Bio::Tools::Run::PiseApplication::map.
137
my ($class, $location, $email, @params) = @_;
138
my $self = $class->SUPER::new($location, $email);
140
# -- begin of definitions extracted from /local/gensoft/lib/Pise/5.a/PerlDef/map.pm
142
$self->{COMMAND} = "map";
143
$self->{VERSION} = "5.a";
144
$self->{TITLE} = "MAP";
146
$self->{DESCRIPTION} = "Multiple Alignment Program";
148
$self->{OPT_EMAIL} = 0;
150
$self->{_INTERFACE_STANDOUT} = undef;
151
$self->{_STANDOUT_FILE} = undef;
153
$self->{TOP_PARAMETERS} = [
160
$self->{PARAMETERS_ORDER} = [
162
"seq", # Sequences File
163
"scoring", # Scoring Parameters
164
"gap_size", # gap size: minimum length of any gap in a short sequence charged with a constant gap penalty (gs)
165
"mismatch", # score of a mismatch (<0)
166
"gapopen", # gap open penalty (>=0)
167
"gapext", # gap extension penalty (>=0)
168
"matrix", # Matrix (Name of a file containing an alternate or user-defined scoring matrix)
175
"scoring" => 'Paragraph',
176
"gap_size" => 'Integer',
177
"mismatch" => 'Integer',
178
"gapopen" => 'Integer',
179
"gapext" => 'Integer',
180
"matrix" => 'InFile',
190
"perl" => '" $value"',
195
"perl" => '(defined $value)? " $value" : ""',
198
"perl" => '($value < 0 && ! $matrix)? " $value" : "" ',
201
"perl" => '(defined $value)? " $value" : "" ',
204
"perl" => '(defined $value)? " $value" : ""',
207
"perl" => ' ($value)? " $value" : ""',
212
$self->{FILENAMES} = {
231
$self->{BY_GROUP_PARAMETERS} = [
247
$self->{ISHIDDEN} = {
259
$self->{ISCOMMAND} = {
271
$self->{ISMANDATORY} = {
285
"seq" => "Sequences File",
286
"scoring" => "Scoring Parameters",
287
"gap_size" => "gap size: minimum length of any gap in a short sequence charged with a constant gap penalty (gs)",
288
"mismatch" => "score of a mismatch (<0)",
289
"gapopen" => "gap open penalty (>=0)",
290
"gapext" => "gap extension penalty (>=0)",
291
"matrix" => "Matrix (Name of a file containing an alternate or user-defined scoring matrix)",
295
$self->{ISSTANDOUT} = {
309
"scoring" => ['gap_size','mismatch','gapopen','gapext','matrix',],
316
$self->{SEPARATOR} = {
325
"map" => { "perl" => '1' },
326
"seq" => { "perl" => '1' },
327
"scoring" => { "perl" => '1' },
328
"gap_size" => { "perl" => '1' },
329
"mismatch" => { "perl" => '1' },
330
"gapopen" => { "perl" => '1' },
331
"gapext" => { "perl" => '1' },
332
"matrix" => { "perl" => '1' },
339
'($value >= 0)' => "enter a negative value",
344
'($value < 0)' => "enter a positive a null value",
349
'($value < 0)' => "enter a positive a null value",
359
$self->{WITHPIPEOUT} = {
367
$self->{WITHPIPEIN} = {
383
$self->{ISSIMPLE} = {
395
$self->{PARAMFILE} = {
401
"In the simplest form, users provide 3 integers: ms, q and r, where ms is the score of a mismatch and the score of an i-symbol indel is -(q + r * i). Each match automatically receives score 10. In addition, an integer gs is provided so that any gap of length > gs in a short sequence is given a penalty of -(q + r * gs), the linear penalty for a gap of length gs. In other words, long gaps in the short sequence are given a constant penalty. This simple scoring scheme may be used for DNA sequences. NOTE: all scores are integers.",
404
"gapsize is provided so that any gap of length > gs in a short sequence is given a penalty of -(q + r * gs), the linear penalty for a gap of length gs. In other words, long gaps in the short sequence are given a constant penalty. ",
407
"users can define an alphabet of characters to appear in the sequences and a matrix that gives the substitution score for each pair of symbols in the alphabet. The 127 ASCII characters are eligible. The alphabet and matrix are given in a file, where the first line lists the characters in the alphabet and the lower triangle of the matrix comes next. ",
414
"-10 -20 -10 -20 12",
419
$self->{SCALEMIN} = {
423
$self->{SCALEMAX} = {
427
$self->{SCALEINC} = {
435
# -- end of definitions extracted from /local/gensoft/lib/Pise/5.a/PerlDef/map.pm
439
$self->_init_params(@params);
446
1; # Needed to keep compiler happy