line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Options.pm,v 1.9 2003/11/18 19:45:45 rkh Exp $ |
2
|
|
|
|
|
|
|
# @@banner@@ |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Bio::Prospect::Options -- Package for representing options |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
S<$Id: Options.pm,v 1.9 2003/11/18 19:45:45 rkh Exp $> |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 SYNOPSIS |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use Bio::Prospect::Options; |
13
|
|
|
|
|
|
|
use Bio::Prospect::LocalClient; |
14
|
|
|
|
|
|
|
use Bio::SeqIO; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $in = new Bio::SeqIO( -format=> 'Fasta', '-file' => $ARGV[0] ); |
17
|
|
|
|
|
|
|
my $po = new Bio::Prospect::Options( seq=>1, svm=>1, global_local=>1, |
18
|
|
|
|
|
|
|
templates=>[qw(1bgc 1alu 1rcb 1eera)] ); |
19
|
|
|
|
|
|
|
my $pf = new Bio::Prospect::LocalClient( {options=>$po} ); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
while ( my $s = $in->next_seq() ) { |
22
|
|
|
|
|
|
|
my @threads = $pf->thread( $s ); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
B<Bio::Prospect::Options> represent options. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=cut |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
package Bio::Prospect::Options; |
32
|
|
|
|
|
|
|
|
33
|
1
|
|
|
1
|
|
982
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
34
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
35
|
1
|
|
|
|
|
5
|
use fields qw/ global fssp scop seqfile phdfile tfile |
36
|
1
|
|
|
1
|
|
919
|
templates /; |
|
1
|
|
|
|
|
1577
|
|
37
|
1
|
|
|
1
|
|
82
|
use vars qw( $VERSION ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
177
|
|
38
|
|
|
|
|
|
|
$VERSION = sprintf( "%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/ ); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub new |
43
|
|
|
|
|
|
|
{ |
44
|
1
|
|
|
1
|
0
|
13763
|
my $type = shift; |
45
|
1
|
50
|
|
|
|
7
|
my $self = @_ ? initialize(@_) : {}; |
46
|
1
|
|
|
|
|
3
|
return( bless($self, $type) ); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub initialize |
50
|
|
|
|
|
|
|
{ |
51
|
1
|
|
|
1
|
0
|
2
|
my %self; |
52
|
1
|
50
|
|
|
|
8
|
if (ref $_[0]) # new blah ( { opt=>arg, ... } ) |
|
|
50
|
|
|
|
|
|
53
|
0
|
|
|
|
|
0
|
{ %self = %{$_[0]}; } |
|
0
|
|
|
|
|
0
|
|
54
|
|
|
|
|
|
|
elsif ( $#_ % 2 ) # new blah ( opt=>arg, ... ) |
55
|
1
|
|
|
|
|
6
|
{ %self = @_; } |
56
|
1
|
|
|
|
|
3
|
return \%self; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; |