
Bio::Phylo::Adaptor::Bioperl::Datum - Adaptor class for bioperl compatibility

use Bio::Phylo::Matrices::Datum;
use Bio::Phylo::Adaptor;
my $datum = Bio::Phylo::Matrices::Datum->new;
$Bio::Phylo::COMPAT = 'Bioperl';
my $seq = Bio::Phylo::Adaptor->new($datum);
print "compatible!" if $seq->isa('Bio::LocatableSeq');

This class wraps Bio::Phylo::Matrices::Datum objects to give them an interface compatible with bioperl.

Returns the alphabet of sequence.
Title : alphabet
Usage : if( $obj->alphabet eq 'dna' ) { /Do Something/ }
Function: Returns the alphabet of sequence, one of
'dna', 'rna' or 'protein'. This is case sensitive.
This is not called <type> because this would cause
upgrade problems from the 0.5 and earlier Seq objects.
Returns : a string either 'dna','rna','protein'. NB - the object must
make a call of the type - if there is no alphabet specified it
has to guess.
Args : none
read-only name of form id/start-end
Title : get_nse Usage : Function: read-only name of form id/start-end Example : Returns : Args :
Returns the sequence as a string of letters.
Title : seq()
Usage : $string = $obj->seq()
Function: Returns the sequence as a string of letters. The
case of the letters is left up to the implementer.
Suggested cases are upper case for proteins and lower case for
DNA sequence (IUPAC standard), but you should not rely on this.
Returns : A scalar
Args : Optionally on set the new value (a string). An optional second
argument presets the alphabet (otherwise it will be guessed).
Both parameters may also be given in named paramater style
with -seq and -alphabet being the names.

The base class for the adaptor architecture, instantiates the appropriate wrapper depending on $Bio::Phylo::COMPAT
Bio::Phylo::Adaptor::Bioperl::Datum is an adaptor that makes Bio::Phylo character data sequences compatible with Bio::LocatableSeq objects.
Also see the manual: Bio::Phylo::Manual.

$Id: Datum.pm 4265 2007-07-20 14:14:44Z rvosa $