ensembl Length
Package variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Utils::Exception qw ( throw )
StatMsg
Synopsis
No synopsis!
Description
No description!
Methods
is_long
No description
Code
is_medium
No description
Code
is_short
No description
Code
length2code
No description
Code
Methods description
None available.
Methods code
is_longdescriptionprevnextTop
sub is_long {
  my $length = shift;
  return ($length >= LONG);
}

#
# converts a length to its status code SHORT, MEDIUM or LONG
#
}
is_mediumdescriptionprevnextTop
sub is_medium {
  my $length = shift;
  return ($length >= MEDIUM) && ($length < LONG);
}

#
# returns true if a given length is considered to be LONG
#
}
is_shortdescriptionprevnextTop
sub is_short {
  my $length = shift;
  return $length < MEDIUM;
}

#
# returns true if a given length is considered to be MEDIUM
#
}
length2codedescriptionprevnextTop
sub length2code {
  my $length = shift;
  return StatMsg::SHORT  if(is_short($length));
  return StatMsg::MEDIUM if(is_medium($length));
  return StatMsg::LONG   if(is_long($length));

  throw("Could not resolve length code for length=$length");
}


1;
}
General documentation
No general documentation available.