This is a simple class to represent information about a FeatureType, containing the name i.e Brno nomenclature or other controlled/validated name relevant to the class (HISTONE, PROMOTER etc), and description. This module is part of the Ensembl project:
/
sub new
{ my $caller = shift;
my $obj_class = ref($caller) || $caller;
my $self = $obj_class->SUPER::new(@_);
my (
$name,
$desc,
$class,
) = rearrange([
'NAME', 'DESCRIPTION', 'CLASS',
], @_);
if($name){
$self->name($name);
}else{
throw("Must supply a FeatureType name\n");
}
$self->class($class) if $class;
$self->description($desc) if $desc;
return $self; } |
This module was written by Nathan Johnson.