Bio::LiveSeq
ChainI
Toolbar
Summary
Bio::LiveSeq::ChainI - Double linked chain data structure
Package variables
No package variables defined.
Included modules
Synopsis
Description
This class generates and manipulates generic double linked list, chain,
that can be used to manage biological sequences.
The advantages over strings or plain arrays is the ease of tracking
changes (mutations) in the elements (sequence). The other side of the
coin is that these structures need consideraly more memory, but that
is cheap and constantly inceasing resource in computers.
Methods
array2chain | No description | Code |
chain2string | No description | Code |
chain2string_verbose | No description | Code |
chain_length | No description | Code |
check_chain | No description | Code |
down_chain2string | No description | Code |
down_chain2string_verbose | No description | Code |
down_element | No description | Code |
down_elements | No description | Code |
down_get_label_at_pos | No description | Code |
down_get_pos_of_label | No description | Code |
down_get_value_at_pos | No description | Code |
down_labels | No description | Code |
down_pos_of_element | No description | Code |
down_set_value_at_pos | No description | Code |
down_subchain_length | No description | Code |
elements | No description | Code |
end | No description | Code |
get_label_at_pos | No description | Code |
get_pos_of_label | No description | Code |
get_value_at_label | No description | Code |
get_value_at_pos | No description | Code |
invert_chain | No description | Code |
is_downstream | No description | Code |
is_upstream | No description | Code |
label_exists | No description | Code |
mutate_element | No description | Code |
new | Description | Code |
pos_of_element | No description | Code |
postinsert_array | No description | Code |
postinsert_string | No description | Code |
praeinsert_array | No description | Code |
praeinsert_string | No description | Code |
preinsert_array | No description | Code |
preinsert_string | No description | Code |
set_value_at_label | No description | Code |
set_value_at_pos | No description | Code |
splice_chain | No description | Code |
start | No description | Code |
string2chain | No description | Code |
subchain_length | No description | Code |
up_chain2string | No description | Code |
up_chain2string_verbose | No description | Code |
up_element | No description | Code |
up_elements | No description | Code |
up_get_label_at_pos | No description | Code |
up_get_pos_of_label | No description | Code |
up_get_value_at_pos | No description | Code |
up_labels | No description | Code |
up_pos_of_element | No description | Code |
up_set_value_at_pos | No description | Code |
up_subchain_length | No description | Code |
Methods description
Title : new Usage : $chain = Bio::LiveSeq::ChainI->new(-string => "thequickbrownfoxjumpsoverthelazydog", -offset => 3 ); OR $chain = Bio::LiveSeq::ChainI->new(-array => \@array, -offset => 3 ); Function: generates a new Bio::LiveSeq:ChainI Returns : a new Chain Args : string OR arrayreference AND optional offset to create element labels |
Methods code
sub chain2string
{ croak "ambiguous method call. Explicit down_ or up_"; } |
sub chain2string_verbose
{ croak "ambiguous method call. Explicit down_ or up_"; } |
sub down_pos_of_element
{ croak "old method name. use: up_pos_of_label";
return Bio::LiveSeq::Chain::down_pos_of_element(@_); } |
sub get_label_at_pos
{ croak "ambiguous method call. Explicit down_ or up_"; } |
sub get_pos_of_label
{ croak "ambiguous method call. Explicit down_ or up_"; } |
sub get_value_at_pos
{ croak "ambiguous method call. Explicit down_ or up_"; } |
sub mutate_element
{ croak "Old method name, please update code to: set_value_at_label";
}
} |
sub new
{ my ($thing, %args) = @_;
my $class = ref($thing) || $thing;
my $obj;
if ($args{-string}) {
$obj = $thing->string2chain($args{-string}, $args{-offset});
} elsif ($args{-array}) {
$obj = $thing->array2chain($args{-array}, $args{-offset});
} else {
croak "$class not initialized properly";
}
$obj = bless $obj, $class;
return $obj;
}
} |
sub pos_of_element
{ croak "ambiguous and old method name. use: down_pos_of_label"; } |
sub set_value_at_pos
{ croak "ambiguous method call. Explicit down_ or up_"; } |
sub subchain_length
{ croak "ambiguous method call. Explicit down_ or up_"; } |
sub up_pos_of_element
{ croak "old method name. use: down_pos_of_label";
return Bio::LiveSeq::Chain::up_pos_of_element(@_); } |
up_subchain_length | description | prev | next | Top |
General documentation
User feedback is an integral part of the evolution of this and other
Bioperl modules. Send your comments and suggestions preferably to one
of the Bioperl mailing lists. Your participation is much appreciated.
bioperl-l@bioperl.org - General discussion
http://bio.perl.org/MailList.html - About the mailing lists
Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via email
or the web:
bioperl-bugs@bio.perl.org
http://bugzilla.bioperl.org/
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 _