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
|
# CLASS CONSTANTS
my $id = $PACKAGE.'::__id';
my $symbol = $PACKAGE.'::__symbol';
my $fullName = $PACKAGE.'::__fullName';
my $evidence = $PACKAGE.'::__evidence';
my $dbName = $PACKAGE.'::__dbName';
my $type = $PACKAGE.'::__type';
my $termAssociated = $PACKAGE.'::__termAssociated';
#Constructeur de la classe GeneProduct, on peut creer un nouvel objet GeneProduct à partir d'un go id
#########################################################################
sub new {
#########################################################################
my ($self, $idG, $symb, $name, $evid, $dbN) = @_;
my $class = shift;
$self = {};
bless $self, $class;
$self->{$id}=$idG;
$self->{$symbol}=$symb;
$self->{$fullName}=$name;
$self->{$evidence}=$evid;
$self->{$dbName}=$dbN;
return $self;
} |
Partager