Bio::LiveSeq
DNA
Toolbar
Summary
Bio::LiveSeq::DNA - DNA object for LiveSeq
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
Description
This holds the DNA sequence (or the RNA in the case of cDNA entries)
and is accessed by exons, genes, transcripts... objects
Methods
Methods description
Title : new Usage : $dna = Bio::LiveSeq::DNA->new(-seq => "atcgaccaatggacctca", -offset => 3 );
Function: generates a new Bio::LiveSeq::DNA
Returns : reference to a new object of class DNA
Errorcode -1
Args : a string
AND an optional offset to create nucleotide labels (default is 1, i.e.
starting the count of labels from "1") -> do not bother using it ->
it could be used by alternative loaders !EMBL format
NOTE : strand of DNA is set to 1 by default |
Methods code
sub length
{ my $self=shift;
return $self->chain_length();
}
} |
sub new
{ my ($thing, %args) = @_;
my $class = ref($thing) || $thing;
my (%empty,$obj);
if ($args{-seq}) {
$obj = $thing->string2chain($args{-seq},$args{-offset}); $obj = bless $obj, $class;
} else {
$obj=\%empty;
$obj = bless $obj, $class;
$obj->throw("$class not initialized properly");
}
$obj->{'alphabet'}='dna'; $obj->{'strand'}=1; $obj->{'seq'}=$obj;
return $obj;
}
} |
sub start
{ my $self = shift;
return $self->{'begin'}; }
} |
sub valid
{ my $self=shift(@_);
return $self->label_exists(@_);
}
1; } |
General documentation
AUTHOR - Joseph A.L. Insana | Top |
Email:
Insana@ebi.ac.uk,
jinsana@gmx.netAddress:
EMBL Outstation, European Bioinformatics Institute
Wellcome Trust Genome Campus, Hinxton
Cambs. CB10 1SD, United Kingdom
The rest of the documentation details each of the object
methods. Internal methods are usually preceded with a _