These documents are For the HEAD of the CVS repository on July 19, 2007
Api docs for previous releases
Modware::Feature
EST
Modware::Feature::EST - Modware representation of an EST (aligned)
|
No package variables defined. |
do not create a Modware::Feature::EST object directly, it is for use by the Modware::Feature object
|
Methods description
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
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
Title : _init
Note : sets attributes specific to EST features
Usage : called internally by new
Function :
Returns : nothing
Args : none
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
sub _get_bioperl
{ my ($self, @args) = @_;
my $seq = Bio::Seq->new( -seq => $self->cached_sequences->{'EST Sequence'},
-id => $self->primary_id
);
$self->bioperl( $seq );
}
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 );
}
sub _init
{ my ($self, @args) = @_;
$self->type( 'EST' );
$self->match_type('match');
}
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();
}
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
Copyright © 2006, Northwestern University
All rights reserved.
|
|