| 1 | package Bio::WGS2NCBI::StrandedFeature; | ||
| 2 | use Bio::WGS2NCBI::Feature; | ||
| 3 | use base 'Bio::WGS2NCBI::Feature'; | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Bio::WGS2NCBI::StrandedFeature - base class for features on an sequence strand | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | Sequence features having to do with genes (i.e. CDS, mRNA, gene) are on one of the | ||
| 12 | two strands. Objects that inherit from this base class have a getter that identifies | ||
| 13 | this strand based on whatever is passed into their constructors, i.e. strand => '-' | ||
| 14 | or strand => '+'. | ||
| 15 | |||
| 16 | =head1 SEE ALSO | ||
| 17 | |||
| 18 | L<Bio::WGS2NCBI::Feature> | ||
| 19 | |||
| 20 | =head1 METHODS | ||
| 21 | |||
| 22 | =over | ||
| 23 | |||
| 24 | =item strand() | ||
| 25 | |||
| 26 | Returns the strand, i.e. '+' or '-'. | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | sub strand { shift->{'strand'} } | ||
| 31 | |||
| 32 | =back | ||
| 33 | |||
| 34 | =cut | ||
| 35 | |||
| 36 | 1; |