Bio::EnsEMBL::IdMapping
TinyTranslation
Toolbar
Summary
Bio::EnsEMBL::IdMapping::TinyTranslation - lightweight translation object
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
if ( my $tl = $tr->translation ) {
my $lightweight_tl =
Bio::EnsEMBL::IdMapping::TinyTranslation->new_fast( [
$tl->dbID, $tl->stable_id,
$tl->version, $tl->created_date,
$tl->modified_date, $tr->dbID,
$tr->translate->seq, ( $tr->is_known ? 1 : 0 ),
] );
}
Description
This is a lightweight translation object for the stable Id mapping. See
the documentation in TinyFeature for general considerations about its
design.
Methods
Methods description
Arg[1] : (optional) Boolean - the translation's "known" status Description : Getter/setter for the translation's "known" status. Return type : Boolean Exceptions : none Caller : general Status : At Risk : under development |
Arg[1] : (optional) String - the translation's sequence Description : Getter/setter for the translation's sequence. Return type : String Exceptions : none Caller : general Status : At Risk : under development |
Arg[1] : (optional) Int - the transcript internal Id ("dbID") Description : Getter/setter for the transcript internal Id this translation is attached to. Return type : Int Exceptions : none Caller : general Status : At Risk : under development |
Methods code
sub is_known
{ my $self = shift;
$self->[7] = shift if (@_);
return $self->[7];
}
1; } |
sub seq
{ my $self = shift;
$self->[6] = shift if (@_);
return $self->[6]; } |
sub transcript_id
{ my $self = shift;
$self->[5] = shift if (@_);
return $self->[5]; } |
General documentation
Copyright (c) 1999-2009 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license.
For license details, please see
/info/about/code_licence.html