/usr/share/perl5/Bio/LiveSeq/ChainI.pm is in libbio-perl-perl 1.6.924-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | #
# bioperl module for Bio::LiveSeq::ChainI
#
# Please direct questions and support issues to <bioperl-l@bioperl.org>
#
# Cared for by Joseph Insana <insana@ebi.ac.uk> <jinsana@gmx.net>
#
# Copyright Joseph Insana
#
# You may distribute this module under the same terms as perl itself
#
# POD documentation - main docs before the code
=head1 NAME
Bio::LiveSeq::ChainI - Double linked chain data structure
=head1 SYNOPSIS
#documentation needed
=head1 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.
=head1 FEEDBACK
=head2 Mailing Lists
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://bioperl.org/wiki/Mailing_lists - About the mailing lists
=head2 Support
Please direct usage questions or support issues to the mailing list:
I<bioperl-l@bioperl.org>
rather than to the module maintainer directly. Many experienced and
reponsive experts will be able look at the problem and quickly
address it. Please include a thorough description of the problem
with code and data examples if at all possible.
=head2 Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
https://github.com/bioperl/bioperl-live/issues
=head1 AUTHOR - Joseph A.L. Insana
Email: Insana@ebi.ac.uk, jinsana@gmx.net
=head1 APPENDIX
The rest of the documentation details each of the object
methods. Internal methods are usually preceded with a _
=cut
# Let the code begin...
package Bio::LiveSeq::ChainI;
use Carp qw(croak);
use strict; # this will be moved before when strict enforced in Chain.pm
use Bio::LiveSeq::Chain; # package where all the subroutines are defined
=head2 new
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
=cut
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;
}
# added as of 1.9
sub string2chain {
shift @_; # so that it doesn't pass the object reference
return Bio::LiveSeq::Chain::string2chain(@_);
}
sub array2chain {
shift @_; # so that it doesn't pass the object reference
return Bio::LiveSeq::Chain::array2chain(@_);
}
#
sub chain2string {
croak "ambiguous method call. Explicit down_ or up_";
}
sub down_chain2string {
return Bio::LiveSeq::Chain::down_chain2string(@_);
}
sub up_chain2string {
return Bio::LiveSeq::Chain::up_chain2string(@_);
}
sub chain2string_verbose {
croak "ambiguous method call. Explicit down_ or up_";
}
sub down_chain2string_verbose {
return Bio::LiveSeq::Chain::down_chain2string_verbose(@_);
}
sub up_chain2string_verbose {
return Bio::LiveSeq::Chain::up_chain2string_verbose(@_);
}
sub invert_chain {
return Bio::LiveSeq::Chain::invert_chain(@_);
}
sub mutate_element {
croak "Old method name, please update code to: set_value_at_label";
}
# new as of version 2.33 of Chain.pm
sub down_labels {
return Bio::LiveSeq::Chain::down_labels(@_);
}
sub up_labels {
return Bio::LiveSeq::Chain::up_labels(@_);
}
sub start {
return Bio::LiveSeq::Chain::start(@_);
}
sub end {
return Bio::LiveSeq::Chain::end(@_);
}
sub label_exists {
return Bio::LiveSeq::Chain::label_exists(@_);
}
sub get_value_at_pos {
croak "ambiguous method call. Explicit down_ or up_";
}
sub down_get_value_at_pos {
return Bio::LiveSeq::Chain::down_get_value_at_pos(@_);
}
sub up_get_value_at_pos {
return Bio::LiveSeq::Chain::up_get_value_at_pos(@_);
}
sub set_value_at_pos {
croak "ambiguous method call. Explicit down_ or up_";
}
sub down_set_value_at_pos {
return Bio::LiveSeq::Chain::down_set_value_at_pos(@_);
}
sub up_set_value_at_pos {
return Bio::LiveSeq::Chain::up_set_value_at_pos(@_);
}
sub get_value_at_label {
return Bio::LiveSeq::Chain::get_value_at_label(@_);
}
sub set_value_at_label {
return Bio::LiveSeq::Chain::set_value_at_label(@_);
}
sub get_label_at_pos {
croak "ambiguous method call. Explicit down_ or up_";
}
sub up_get_label_at_pos {
return Bio::LiveSeq::Chain::up_get_label_at_pos(@_);
}
sub down_get_label_at_pos {
return Bio::LiveSeq::Chain::down_get_label_at_pos(@_);
}
sub get_pos_of_label {
croak "ambiguous method call. Explicit down_ or up_";
}
sub up_get_pos_of_label {
return Bio::LiveSeq::Chain::up_get_pos_of_label(@_);
}
sub down_get_pos_of_label {
return Bio::LiveSeq::Chain::down_get_pos_of_label(@_);
}
#
sub preinsert_string {
return Bio::LiveSeq::Chain::praeinsert_string(@_);
}
sub preinsert_array {
return Bio::LiveSeq::Chain::praeinsert_array(@_);
}
sub praeinsert_string {
return Bio::LiveSeq::Chain::praeinsert_string(@_);
}
sub postinsert_string {
return Bio::LiveSeq::Chain::postinsert_string(@_);
}
sub praeinsert_array {
return Bio::LiveSeq::Chain::praeinsert_array(@_);
}
sub postinsert_array {
return Bio::LiveSeq::Chain::postinsert_array(@_);
}
sub down_element{
return Bio::LiveSeq::Chain::down_element(@_);
}
sub up_element {
return Bio::LiveSeq::Chain::up_element(@_);
}
sub is_downstream {
return Bio::LiveSeq::Chain::is_downstream(@_);
}
sub is_upstream {
return Bio::LiveSeq::Chain::is_upstream(@_);
}
sub check_chain {
return Bio::LiveSeq::Chain::check_chain(@_);
}
sub chain_length {
return Bio::LiveSeq::Chain::chain_length(@_);
}
sub splice_chain {
return Bio::LiveSeq::Chain::splice_chain(@_);
}
sub pos_of_element {
croak "ambiguous and old method name. use: down_pos_of_label";
}
sub up_pos_of_element {
croak "old method name. use: down_pos_of_label";
return Bio::LiveSeq::Chain::up_pos_of_element(@_);
}
sub down_pos_of_element {
croak "old method name. use: up_pos_of_label";
return Bio::LiveSeq::Chain::down_pos_of_element(@_);
}
sub subchain_length {
croak "ambiguous method call. Explicit down_ or up_";
}
sub down_subchain_length {
return Bio::LiveSeq::Chain::down_subchain_length(@_);
}
sub up_subchain_length {
return Bio::LiveSeq::Chain::up_subchain_length(@_);
}
# these have to be deleted and changed names to conform to terminology
sub elements {
return Bio::LiveSeq::Chain::down_elements(@_);
}
sub up_elements {
return Bio::LiveSeq::Chain::up_elements(@_);
}
sub down_elements {
return Bio::LiveSeq::Chain::down_elements(@_);
}
1;
|