Bio::Graphics Util
Included librariesPackage variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Inherit
Exporter
Synopsis
No synopsis!
Description
No description!
Methods
frame_and_offset
No description
Code
Methods description
None available.
Methods code
frame_and_offsetdescriptionprevnextTop
sub frame_and_offset {
  my ($pos,$strand,$phase) = @_;
  $strand ||= +1;
  $phase  ||= 0;
  my $frame = $strand >= 0 
    ? ($pos - $phase - 1) % 3
    : (1 - $pos - $phase) % 3;
  my $offset = -$phase % 3;
  $offset   *= -1 if $strand < 0;
  return wantarray ? ($frame,$offset) : $frame;
}


1;
}
General documentation
No general documentation available.