25
ECnumber - representation of EC numbers
25
Bio::Tools::ECnumber - representation of EC numbers (Enzyme Classification)
29
29
use Bio::Tools::ECnumber;
32
31
# Creation of ECnumber objects
33
# ----------------------------
35
32
my $EC1 = Bio::Tools::ECnumber->new( -ec_string => "4.3.2.1" );
36
33
my $EC2 = Bio::Tools::ECnumber->new( -ec_string => "EC 1.1.1.1" );
37
34
my $EC3 = Bio::Tools::ECnumber->new();
43
37
my $EC4 = $EC1->copy();
46
# Modification of ECnumber objects
47
# --------------------------------
39
# Modification/canonicalization of ECnumber objects
49
40
print $EC3->EC_string( "1.01.01.001" ); # Prints "1.1.1.1".
55
43
print $EC3->EC_string();
59
45
print $EC3->to_string();
63
47
# Test for equality
66
# Against ECnumber object:
48
# -- Against ECnumber object:
67
49
if ( $EC3->is_equal( $EC2 ) ) { # Prints "equal".
71
# Against string representation of EC number:
52
# -- Against string representation of EC number:
72
53
if ( ! $EC3->is_equal( "1.1.1.-" ) ) { # Prints "not equal".
77
57
# Test for membership
80
58
my $EC5 = Bio::Tools::ECnumber->new( -ec_string => "4.3.2.-" );
82
# Against ECnumber object.
59
# -- Against ECnumber object.
83
60
if ( $EC1->is_member( $EC5 ) ) { # Prints "member".
88
# Against string representation of EC number.
63
# -- Against string representation of EC number.
89
64
if ( ! $EC1->is_member( "4.3.1.-" ) ) { # Prints "not member".
90
65
print "not member";
97
ECnumber is a representation of EC numbers [http://www.chem.qmul.ac.uk/iubmb/enzyme/].
70
L<Bio::Tools::ECnumber> is a representation of EC numbers,
71
the numerical heirarchy for Enzyme Classification.
73
See L<http://www.chem.qmul.ac.uk/iubmb/enzyme/> for more details.
104
80
Bioperl modules. Send your comments and suggestions preferably to one
105
81
of the Bioperl mailing lists. Your participation is much appreciated.
107
bioperl-l@bioperl.org - General discussion
108
http://bio.perl.org/MailList.html - About the mailing lists
83
bioperl-l@bioperl.org - General discussion
84
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
110
86
=head2 Reporting Bugs
112
88
Report bugs to the Bioperl bug tracking system to help us keep track
113
the bugs and their resolution. Bug reports can be submitted via email
89
the bugs and their resolution. Bug reports can be submitted via the
116
bioperl-bugs@bio.perl.org
117
http://bugzilla.bioperl.org/
92
http://bugzilla.open-bio.org/
168
137
Parses a EC number from "x.x.x.x", "EC x.x.x.x",
169
138
"ECx.x.x.x", or "EC:x.x.x.x";
170
139
x being either a positive integer or a "-".
171
Returns : A new Ecnumber object.
140
Returns : A new ECnumber object.
172
141
Args : A string representing a EC number, e.g. "4.3.2.1"
173
142
or "EC 4.3.2.1" or "1.-.-.-".