These documents are For the HEAD of the CVS repository on July 19, 2007 Api docs for previous releases

Modware::Feature

EST

Summary Included libraries Package variables Synopsis Description General documentation Methods

Summary
   Modware::Feature::EST - Modware representation of an EST (aligned)
Package variables top
No package variables defined.
Included modulestop
Bio::Seq
Modware::Feature::Aligned
Inherit top
Modware::Feature::Aligned
Synopsistop
  do not create a Modware::Feature::EST object directly, it is for use by the Modware::Feature object
Descriptiontop

Methodstop
_get_bioperlDescriptionCode
_get_cached_sequencesDescriptionCode
_initDescriptionCode
_update_cached_sequence()No descriptionCode
blastDescriptionCode

Methods description

_get_bioperlcodetopprevnext
 Title    : _get_bioperl
Note : creates a bioperl object representing this EST (Bio::Seq)
Usage : called internally by lazy evaluated 'bioperl' method
Function : creates a bioperl object with a location on the chromosome's bioperl object.
Returns : nothing
Args : none
_get_cached_sequencescodetopprevnext
 Title    : _get_cached_sequences
Usage : $feature->_get_cached_sequences();
Function : gets the cached_sequences object for this feature (called from cached_sequences)
Returns : nothing
Args : none
_initcodetopprevnext
 Title    : _init
Note : sets attributes specific to EST features
Usage : called internally by new
Function :
Returns : nothing
Args : none
blastcodetopprevnext
 Title    : blast
Function : formulates a call to private method _blast which actually runs the blast
: and updates the database
Returns : nothing
Args : whatever '_blast' takes

Methods code

_get_bioperldescriptiontopprevnext
sub _get_bioperl {
   my ($self, @args) = @_;

   my $seq = Bio::Seq->new( -seq => $self->cached_sequences->{'EST Sequence'},
                            -id  => $self->primary_id
   );

   $self->bioperl( $seq );
}
_get_cached_sequencesdescriptiontopprevnext
sub _get_cached_sequences {
   my ($self) = @_;

   my $seq_hash = {};

   my $seq = $self->_database_object();
   $seq_hash->{'default'} = $seq if $seq;

   $self->cached_sequences( $seq_hash );
}
_initdescriptiontopprevnext
sub _init {
   my ($self, @args) = @_;

   $self->type( 'EST' );
   $self->match_type('match');
}
_update_cached_sequence()descriptiontopprevnext
sub _update_cached_sequence() {
   my ($self,@args) = @_;

   $self->_database_object()->residues( $self->bioperl()->seq() );
   $self->_database_object()->seqlen( $self->bioperl()->length() );
   $self->_database_object()->update();
}
blastdescriptiontopprevnext
sub blast {
   my ($self, @args) = @_;


   my $sequence = $self->feature_id() ? 
                     $self->sequence( -format => 'fasta', -type => 'EST Sequence' ) :
                     $self->bioperl();

   $self->_blast( -sequence => $sequence, @args );
}

General documentation

AUTHOR - Eric Just top
   Eric Just e-just@northwestern.edu
APPENDIX top
   The rest of the documentation details each of the object
methods. Internal methods are usually preceded with a _
_update_cached_sequence top
 Title    : _update_cached_sequence
Function : stores the sequence associated with this feature in the database
:
Returns : nothing
Args : nothing: