| 1 | package Bio::DB::SeqFeature::Segment; | ||||||||||||||||||||||||||||
| 2 | 11 | $Bio::DB::SeqFeature::Segment::VERSION = '1.7.5'; | |||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||
| 4 | =head1 NAME | ||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | Bio::DB::SeqFeature::Segment -- Location-based access to genome annotation data | ||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | use Bio::DB::SeqFeature::Store; | ||||||||||||||||||||||||||||
| 11 | # Open the sequence database | ||||||||||||||||||||||||||||
| 12 | my $db = Bio::DB::SeqFeature::Store->new( -adaptor => 'DBI::mysql', | ||||||||||||||||||||||||||||
| 13 | -dsn => 'dbi:mysql:test'); | ||||||||||||||||||||||||||||
| 14 | my $segment = $db->segment('Chr1',5000=>6000); | ||||||||||||||||||||||||||||
| 15 | my @features = $segment->features('mRNA','match'); | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | The segment object simplifies access to Bio::DB::SeqFeature store by | ||||||||||||||||||||||||||||
| 20 | acting as a placeholder for a region of the genome. You can replace | ||||||||||||||||||||||||||||
| 21 | this statement: | ||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | @features = $db->features(-seq_id=>'Chr1', | ||||||||||||||||||||||||||||
| 24 | -start=>5000, | ||||||||||||||||||||||||||||
| 25 | -end=>6000, | ||||||||||||||||||||||||||||
| 26 | -types=>['mRNA','match','repeat_region']); | ||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | with these statements: | ||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | $segment = $db->segment('Chr1',5000=>6000); | ||||||||||||||||||||||||||||
| 31 | @features = $segment->features('mRNA','match','repeat_region'); | ||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | You can also initialize a segment from an existing SeqFeature | ||||||||||||||||||||||||||||
| 34 | object. The range will be picked up from the SeqFeature boundaries: | ||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||
| 36 | $segment = Bio::DB::SeqFeature::Segment->new($feature); # for Bio::DB::SeqFeature | ||||||||||||||||||||||||||||
| 37 | $segment = Bio::DB::SeqFeature::Segment->new($feature,$store); # for other Bio::SeqFeatureI objects | ||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | The segment object implements the full Bio::SeqFeature::CollectionI | ||||||||||||||||||||||||||||
| 40 | interface, thereby allowing you to iterate over all features in the | ||||||||||||||||||||||||||||
| 41 | range. | ||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||
| 43 | =cut | ||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||
| 45 | 11 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||
| 47 | 11 | ▶ | use base 'Bio::SeqFeature::CollectionI','Bio::RangeI'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 48 | 11 | ▶ | use Bio::DB::GFF::Util::Rearrange; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 49 | 11 | ▶ | use overload '""' => \&as_string, | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 50 | 11 | fallback => 1; | |||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||
| 52 | =head1 PUBLIC METHODS | ||||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||
| 54 | The following are public methods intended for external use. | ||||||||||||||||||||||||||||
| 55 | |||||||||||||||||||||||||||||
| 56 | =head2 new | ||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||
| 58 | Title : new | ||||||||||||||||||||||||||||
| 59 | Usage : $segment = Bio::DB::SeqFeature::Segment->new(@options) | ||||||||||||||||||||||||||||
| 60 | Function: create a new Segment object | ||||||||||||||||||||||||||||
| 61 | Returns : A Bio::DB::SeqFeature::Segment object | ||||||||||||||||||||||||||||
| 62 | Args : several - see below | ||||||||||||||||||||||||||||
| 63 | Status : public | ||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||
| 65 | This class method creates a Bio::DB::SeqFeature::Segment object. You | ||||||||||||||||||||||||||||
| 66 | must provide a Bio::DB::SeqFeature::Store as well as the coordinates | ||||||||||||||||||||||||||||
| 67 | of the segment. These arguments can be provided explicitly or | ||||||||||||||||||||||||||||
| 68 | indirectly. | ||||||||||||||||||||||||||||
| 69 | |||||||||||||||||||||||||||||
| 70 | First form: | ||||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||
| 72 | $segment = Bio::DB::SeqFeature::Segment->new($store,$seqid,$start,$end,$strand) | ||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||
| 74 | In this form a segment is defined by a Bio::DB::SeqFeature::Store, the | ||||||||||||||||||||||||||||
| 75 | sequence ID, the start, end and strand. This is the form that is | ||||||||||||||||||||||||||||
| 76 | invoked internally by Bio::DB::SeqFeature::Store when you call its | ||||||||||||||||||||||||||||
| 77 | segment() method. | ||||||||||||||||||||||||||||
| 78 | |||||||||||||||||||||||||||||
| 79 | Second form: | ||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||
| 81 | $segment = Bio::DB::SeqFeature::Segment->new($seqfeature [,$store]); | ||||||||||||||||||||||||||||
| 82 | |||||||||||||||||||||||||||||
| 83 | In this form, you pass new() a Bio::SeqFeatureI object. The segment is | ||||||||||||||||||||||||||||
| 84 | constructed from the seq_id and coordinates are taken from the | ||||||||||||||||||||||||||||
| 85 | object. If you pass a store-aware seqfeature object | ||||||||||||||||||||||||||||
| 86 | (e.g. Bio::DB::SeqFeature) then the store database is also derived | ||||||||||||||||||||||||||||
| 87 | from the feature. Otherwise you will have to pass the store as a | ||||||||||||||||||||||||||||
| 88 | second argument. | ||||||||||||||||||||||||||||
| 89 | |||||||||||||||||||||||||||||
| 90 | =cut | ||||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||
| 92 | ### | ||||||||||||||||||||||||||||
| 93 | # new() | ||||||||||||||||||||||||||||
| 94 | # | ||||||||||||||||||||||||||||
| 95 | # Call as Bio::DB::SeqFeature::Segment->new($seqfeature,$store) | ||||||||||||||||||||||||||||
| 96 | # | ||||||||||||||||||||||||||||
| 97 | # or | ||||||||||||||||||||||||||||
| 98 | # Bio::DB::SeqFeature::Segment->new(-seqid=>$seqid,-start=>$start,-end=>$end,-strand=>$strand,-store=>$store) | ||||||||||||||||||||||||||||
| 99 | # | ||||||||||||||||||||||||||||
| 100 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: not called CC=6 SCAR=37.4
Pod
documented
| |||||||||||||||||||||||||||||
| 101 | 0 | my $class = shift; | |||||||||||||||||||||||||||
| 102 | 0 | my ($store,$seqid,$start,$end,$strand,$id); | |||||||||||||||||||||||||||
| 103 | 0 | ▶ | if (ref $_[0] && UNIVERSAL::isa($_[0],'Bio::SeqFeatureI')) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
CORE::ref $_[0] and UNIVERSAL::isa($_[0], "Bio::SeqFeatureI")
MC/DC0%0/2
CORE::ref $_[0] and UNIVERSAL::isa($_[0], "Bio::SeqFeatureI")
CORE::ref $_[0]
UNIVERSAL::isa($_[0], "Bio::SeqFeatureI")
Truth table0%0/3
A and B
A= CORE::ref $_[0]B= UNIVERSAL::isa($_[0], "Bio::SeqFeatureI")
| |||||||||||||||||||||||||||||
| 104 | 0 | my $seqfeature = shift; | |||||||||||||||||||||||||||
| 105 | 0 | $store = shift; | |||||||||||||||||||||||||||
| 106 | 0 | ▶ | $store ||= eval {$seqfeature->object_store}; | ||||||||||||||||||||||||||
|
Condition0%0/3
$store ||= eval {
do {
$seqfeature->object_store
}
}
MC/DC0%0/2
$store ||= eval {
do {
$seqfeature->object_store
}
}
$store
eval {
do {
$seqfeature->object_store
}
}
Truth table0%0/3
A ||= B
A= $storeB= eval {
do {
$seqfeature->object_store
}
}
| |||||||||||||||||||||||||||||
| 107 | 0 | ▶ | $class->throw("I could not derive the Bio::DB::SeqFeature::Store object from the arguments passed to Bio::DB::SeqFeature::Segment->new(). Please pass the Store object as the second argument") unless $store; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 108 | 0 | $seqid = $seqfeature->seq_id; | |||||||||||||||||||||||||||
| 109 | 0 | $start = $seqfeature->start; | |||||||||||||||||||||||||||
| 110 | 0 | $end = $seqfeature->end; | |||||||||||||||||||||||||||
| 111 | 0 | $strand= $seqfeature->strand; | |||||||||||||||||||||||||||
| 112 | 0 | $id = eval{$seqfeature->primary_id}; | |||||||||||||||||||||||||||
| 113 | } | ||||||||||||||||||||||||||||
| 114 | else { | ||||||||||||||||||||||||||||
| 115 | 0 | ($store,$seqid,$start,$end,$strand,$id) = @_; | |||||||||||||||||||||||||||
| 116 | } | ||||||||||||||||||||||||||||
| 117 | 0 | ▶ | return bless { | ||||||||||||||||||||||||||
|
Condition0%0/3
CORE::ref $class || $class
MC/DC0%0/2
CORE::ref $class || $class
CORE::ref $class
$class
Truth table0%0/3
A || B
A= CORE::ref $classB= $class
| |||||||||||||||||||||||||||||
| 118 | store => $store, | ||||||||||||||||||||||||||||
| 119 | seqid => $seqid, | ||||||||||||||||||||||||||||
| 120 | start => $start, | ||||||||||||||||||||||||||||
| 121 | end => $end, | ||||||||||||||||||||||||||||
| 122 | strand => $strand, | ||||||||||||||||||||||||||||
| 123 | primary_id => $id, | ||||||||||||||||||||||||||||
| 124 | },ref($class) || $class; | ||||||||||||||||||||||||||||
| 125 | } | ||||||||||||||||||||||||||||
| 126 | |||||||||||||||||||||||||||||
| 127 | =head2 features | ||||||||||||||||||||||||||||
| 128 | |||||||||||||||||||||||||||||
| 129 | Title : features | ||||||||||||||||||||||||||||
| 130 | Usage : @features = $segment->features(@args) | ||||||||||||||||||||||||||||
| 131 | Function: fetch seqfeatures that overlap the segment | ||||||||||||||||||||||||||||
| 132 | Returns : list of features | ||||||||||||||||||||||||||||
| 133 | Args : see below | ||||||||||||||||||||||||||||
| 134 | Status : Public | ||||||||||||||||||||||||||||
| 135 | |||||||||||||||||||||||||||||
| 136 | This is the workhorse for feature query and retrieval. It takes a | ||||||||||||||||||||||||||||
| 137 | series of -name=E<gt>$value arguments filter arguments. Features that | ||||||||||||||||||||||||||||
| 138 | match all the filters are returned. | ||||||||||||||||||||||||||||
| 139 | |||||||||||||||||||||||||||||
| 140 | Argument Value | ||||||||||||||||||||||||||||
| 141 | -------- ----- | ||||||||||||||||||||||||||||
| 142 | |||||||||||||||||||||||||||||
| 143 | Location filters: | ||||||||||||||||||||||||||||
| 144 | -strand Strand | ||||||||||||||||||||||||||||
| 145 | -range_type Type of range match ('overlaps','contains','contained_in') | ||||||||||||||||||||||||||||
| 146 | |||||||||||||||||||||||||||||
| 147 | Name filters: | ||||||||||||||||||||||||||||
| 148 | -name Name of feature (may be a glob expression) | ||||||||||||||||||||||||||||
| 149 | -aliases If true, match aliases as well as display names | ||||||||||||||||||||||||||||
| 150 | -class Archaic argument for backward compatibility. | ||||||||||||||||||||||||||||
| 151 | (-class=>'Clone',-name=>'ABC123') is equivalent | ||||||||||||||||||||||||||||
| 152 | to (-name=>'Clone:ABC123') | ||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||
| 154 | Type filters: | ||||||||||||||||||||||||||||
| 155 | -types List of feature types (array reference) or one type (scalar) | ||||||||||||||||||||||||||||
| 156 | -type Synonym for the above | ||||||||||||||||||||||||||||
| 157 | -primary_tag Synonym for the above | ||||||||||||||||||||||||||||
| 158 | |||||||||||||||||||||||||||||
| 159 | -attributes Hashref of attribute=>value pairs as per | ||||||||||||||||||||||||||||
| 160 | get_features_by_attribute(). Multiple alternative values | ||||||||||||||||||||||||||||
| 161 | can be matched by providing an array reference. | ||||||||||||||||||||||||||||
| 162 | -attribute synonym for -attributes | ||||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||
| 164 | This is identical to the Bio::DB::SeqFeature::Store-E<gt>features() | ||||||||||||||||||||||||||||
| 165 | method, except that the -seq_id, -start, and -end arguments are | ||||||||||||||||||||||||||||
| 166 | provided by the segment object. If a simple list of arguments is | ||||||||||||||||||||||||||||
| 167 | provided, then the list is taken to be the set of feature types | ||||||||||||||||||||||||||||
| 168 | (primary tags) to filter on. | ||||||||||||||||||||||||||||
| 169 | |||||||||||||||||||||||||||||
| 170 | Examples: | ||||||||||||||||||||||||||||
| 171 | |||||||||||||||||||||||||||||
| 172 | All features that overlap the current segment: | ||||||||||||||||||||||||||||
| 173 | |||||||||||||||||||||||||||||
| 174 | @features = $segment->features; | ||||||||||||||||||||||||||||
| 175 | |||||||||||||||||||||||||||||
| 176 | All features of type mRNA that overlap the current segment: | ||||||||||||||||||||||||||||
| 177 | |||||||||||||||||||||||||||||
| 178 | @features = $segment->features('mRNA'); | ||||||||||||||||||||||||||||
| 179 | |||||||||||||||||||||||||||||
| 180 | All features that are completely contained within the current segment: | ||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||
| 182 | @features = $segment->features(-range_type=>'contains'); | ||||||||||||||||||||||||||||
| 183 | |||||||||||||||||||||||||||||
| 184 | All "confirmed" mRNAs that overlap the current segment: | ||||||||||||||||||||||||||||
| 185 | |||||||||||||||||||||||||||||
| 186 | @features = $segment->features(-attributes=>{confirmed=>1},-type=>'mRNA'); | ||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||
| 188 | =cut | ||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||
| 190 | 0 | ▶ | sub features { | ||||||||||||||||||||||||||
|
Subroutine
features: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||||||||||||||||
| 191 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 192 | 0 | my @args; | |||||||||||||||||||||||||||
| 193 | 0 | ▶ | if (@_ == 0) { | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 194 | 0 | @args = (); | |||||||||||||||||||||||||||
| 195 | } | ||||||||||||||||||||||||||||
| 196 | elsif ($_[0] !~/^-/) { | ||||||||||||||||||||||||||||
| 197 | 0 | my @types = @_; | |||||||||||||||||||||||||||
| 198 | 0 | @args = (-type=>\@types); | |||||||||||||||||||||||||||
| 199 | } else { | ||||||||||||||||||||||||||||
| 200 | 0 | @args = @_; | |||||||||||||||||||||||||||
| 201 | } | ||||||||||||||||||||||||||||
| 202 | 0 | $self->{store}->features(@args,-seqid=>$self->{seqid},-start=>$self->{start},-end=>$self->{end}); | |||||||||||||||||||||||||||
| 203 | } | ||||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||
| 205 | 0 | ▶ | sub types { | ||||||||||||||||||||||||||
|
Subroutine
types: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 206 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 207 | 0 | my %types; | |||||||||||||||||||||||||||
| 208 | 0 | my $iterator = $self->get_seq_stream(@_); | |||||||||||||||||||||||||||
| 209 | 0 | ▶ | while (my $f = $iterator->next_seq) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 210 | 0 | $types{$f->type}++; | |||||||||||||||||||||||||||
| 211 | } | ||||||||||||||||||||||||||||
| 212 | 0 | return %types; | |||||||||||||||||||||||||||
| 213 | } | ||||||||||||||||||||||||||||
| 214 | |||||||||||||||||||||||||||||
| 215 | =head2 get_seq_stream | ||||||||||||||||||||||||||||
| 216 | |||||||||||||||||||||||||||||
| 217 | Title : get_seq_stream | ||||||||||||||||||||||||||||
| 218 | Usage : $iterator = $segment->get_seq_stream(@args) | ||||||||||||||||||||||||||||
| 219 | Function: return an iterator across all features in the database | ||||||||||||||||||||||||||||
| 220 | Returns : a Bio::DB::SeqFeature::Store::Iterator object | ||||||||||||||||||||||||||||
| 221 | Args : (optional) the feature() method | ||||||||||||||||||||||||||||
| 222 | Status : public | ||||||||||||||||||||||||||||
| 223 | |||||||||||||||||||||||||||||
| 224 | This is identical to Bio::DB::SeqFeature::Store-E<gt>get_seq_stream() | ||||||||||||||||||||||||||||
| 225 | except that the location filter is always automatically applied so | ||||||||||||||||||||||||||||
| 226 | that the iterator you receive returns features that overlap the | ||||||||||||||||||||||||||||
| 227 | segment's region. | ||||||||||||||||||||||||||||
| 228 | |||||||||||||||||||||||||||||
| 229 | When called without any arguments this method will return an iterator | ||||||||||||||||||||||||||||
| 230 | object that will traverse all indexed features in the database that | ||||||||||||||||||||||||||||
| 231 | overlap the segment's region. Call the iterator's next_seq() method to | ||||||||||||||||||||||||||||
| 232 | step through them (in no particular order): | ||||||||||||||||||||||||||||
| 233 | |||||||||||||||||||||||||||||
| 234 | my $iterator = $db->get_seq_stream; | ||||||||||||||||||||||||||||
| 235 | while (my $feature = $iterator->next_seq) { | ||||||||||||||||||||||||||||
| 236 | print $feature->primary_tag,' ',$feature->display_name,"\n"; | ||||||||||||||||||||||||||||
| 237 | } | ||||||||||||||||||||||||||||
| 238 | |||||||||||||||||||||||||||||
| 239 | You can select a subset of features by passing a series of filter | ||||||||||||||||||||||||||||
| 240 | arguments. The arguments are identical to those accepted by | ||||||||||||||||||||||||||||
| 241 | $segment-E<gt>features(). | ||||||||||||||||||||||||||||
| 242 | |||||||||||||||||||||||||||||
| 243 | get_feature_stream() ican be used as a synonym for this method. | ||||||||||||||||||||||||||||
| 244 | |||||||||||||||||||||||||||||
| 245 | =cut | ||||||||||||||||||||||||||||
| 246 | |||||||||||||||||||||||||||||
| 247 | #' | ||||||||||||||||||||||||||||
| 248 | |||||||||||||||||||||||||||||
| 249 | 0 | ▶ | sub get_seq_stream { | ||||||||||||||||||||||||||
|
Subroutine
get_seq_stream: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 250 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 251 | 0 | $self->{store}->get_seq_stream(@_,-seqid=>$self->{seqid},-start=>$self->{start},-end=>$self->{end}); | |||||||||||||||||||||||||||
| 252 | } | ||||||||||||||||||||||||||||
| 253 | |||||||||||||||||||||||||||||
| 254 | 0 | ▶ | sub get_feature_stream { shift->get_seq_stream(@_) } | ||||||||||||||||||||||||||
|
Subroutine
get_feature_stream: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 255 | |||||||||||||||||||||||||||||
| 256 | =head2 store | ||||||||||||||||||||||||||||
| 257 | |||||||||||||||||||||||||||||
| 258 | Title : store | ||||||||||||||||||||||||||||
| 259 | Usage : $store = $segment->store | ||||||||||||||||||||||||||||
| 260 | Function: return the Bio::DB::SeqFeature::Store object associated with the segment | ||||||||||||||||||||||||||||
| 261 | Returns : a Bio::DB::SeqFeature::Store: object | ||||||||||||||||||||||||||||
| 262 | Args : none | ||||||||||||||||||||||||||||
| 263 | Status : public | ||||||||||||||||||||||||||||
| 264 | |||||||||||||||||||||||||||||
| 265 | =cut | ||||||||||||||||||||||||||||
| 266 | |||||||||||||||||||||||||||||
| 267 | 0 | ▶ | sub factory { shift->{store} } | ||||||||||||||||||||||||||
|
Subroutine
factory: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 268 | 0 | ▶ | sub store { shift->{store} } | ||||||||||||||||||||||||||
|
Subroutine
store: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 269 | |||||||||||||||||||||||||||||
| 270 | =head2 primary_tag, type, | ||||||||||||||||||||||||||||
| 271 | |||||||||||||||||||||||||||||
| 272 | Title : primary_tag,type | ||||||||||||||||||||||||||||
| 273 | Usage : $primary_tag = $segment->primary_tag | ||||||||||||||||||||||||||||
| 274 | Function: returns the string "region" | ||||||||||||||||||||||||||||
| 275 | Returns : "region" | ||||||||||||||||||||||||||||
| 276 | Args : none | ||||||||||||||||||||||||||||
| 277 | Status : public | ||||||||||||||||||||||||||||
| 278 | |||||||||||||||||||||||||||||
| 279 | The primary_tag method returns the constant tag "region". type() is a | ||||||||||||||||||||||||||||
| 280 | synonym for this method. | ||||||||||||||||||||||||||||
| 281 | |||||||||||||||||||||||||||||
| 282 | =cut | ||||||||||||||||||||||||||||
| 283 | |||||||||||||||||||||||||||||
| 284 | 0 | ▶ | sub type { shift->primary_tag } | ||||||||||||||||||||||||||
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 285 | |||||||||||||||||||||||||||||
| 286 | =head2 as_string | ||||||||||||||||||||||||||||
| 287 | |||||||||||||||||||||||||||||
| 288 | Title : as_string | ||||||||||||||||||||||||||||
| 289 | Usage : $name = $segment->as_string | ||||||||||||||||||||||||||||
| 290 | Function: expands the object into a human-readable string | ||||||||||||||||||||||||||||
| 291 | Returns : "seq_id:start..end" | ||||||||||||||||||||||||||||
| 292 | Args : none | ||||||||||||||||||||||||||||
| 293 | Status : public | ||||||||||||||||||||||||||||
| 294 | |||||||||||||||||||||||||||||
| 295 | The as_string() method is overloaded into the "" operator so that the | ||||||||||||||||||||||||||||
| 296 | object is represented as a human readable string in the form | ||||||||||||||||||||||||||||
| 297 | "seq_id:start..end" when used in a string context. | ||||||||||||||||||||||||||||
| 298 | |||||||||||||||||||||||||||||
| 299 | =cut | ||||||||||||||||||||||||||||
| 300 | |||||||||||||||||||||||||||||
| 301 | 0 | ▶ | sub as_string { | ||||||||||||||||||||||||||
|
Subroutine
as_string: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||||||||||||||||
| 302 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 303 | 0 | my $label = $self->seq_id; | |||||||||||||||||||||||||||
| 304 | 0 | ▶ | my $start = $self->start || ''; | ||||||||||||||||||||||||||
|
Condition0%0/2
$self->start || ''
MC/DC0%0/1
$self->start || ''
$self->start
Truth table0%0/2
A
A= $self->start
| |||||||||||||||||||||||||||||
| 305 | 0 | ▶ | my $end = $self->end || ''; | ||||||||||||||||||||||||||
|
Condition0%0/2
$self->end || ''
MC/DC0%0/1
$self->end || ''
$self->end
Truth table0%0/2
A
A= $self->end
| |||||||||||||||||||||||||||||
| 306 | 0 | return "$label:$start..$end"; | |||||||||||||||||||||||||||
| 307 | } | ||||||||||||||||||||||||||||
| 308 | |||||||||||||||||||||||||||||
| 309 | =head2 rel2abs | ||||||||||||||||||||||||||||
| 310 | |||||||||||||||||||||||||||||
| 311 | Title : rel2abs | ||||||||||||||||||||||||||||
| 312 | Usage : @coords = $s->rel2abs(@coords) | ||||||||||||||||||||||||||||
| 313 | Function: convert relative coordinates into absolute coordinates | ||||||||||||||||||||||||||||
| 314 | Returns : a list of absolute coordinates | ||||||||||||||||||||||||||||
| 315 | Args : a list of relative coordinates | ||||||||||||||||||||||||||||
| 316 | Status : Public | ||||||||||||||||||||||||||||
| 317 | |||||||||||||||||||||||||||||
| 318 | This function takes a list of positions in relative coordinates to the | ||||||||||||||||||||||||||||
| 319 | segment, and converts them into absolute coordinates. | ||||||||||||||||||||||||||||
| 320 | |||||||||||||||||||||||||||||
| 321 | =cut | ||||||||||||||||||||||||||||
| 322 | |||||||||||||||||||||||||||||
| 323 | 0 | ▶ | sub rel2abs { | ||||||||||||||||||||||||||
|
Subroutine
rel2abs: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||||||||||||||||||||
| 324 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 325 | 0 | my @result; | |||||||||||||||||||||||||||
| 326 | |||||||||||||||||||||||||||||
| 327 | 0 | my ($start,$strand) = ($self->start,$self->strand); | |||||||||||||||||||||||||||
| 328 | 0 | @result = $strand < 0 ? map { $start - $_ + 1 } @_ | |||||||||||||||||||||||||||
| 329 | 0 | ▶ | : map { $_ + $start - 1 } @_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 330 | # if called with a single argument, caller will expect a single scalar reply | ||||||||||||||||||||||||||||
| 331 | # not the size of the returned array! | ||||||||||||||||||||||||||||
| 332 | 0 | ▶ | return $result[0] if @result == 1 and !wantarray; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
@result == 1 and not wantarray
MC/DC0%0/2
@result == 1 and not wantarray
@result == 1
not wantarray
Truth table0%0/3
A and not(B)
A= @result == 1B= not wantarray
| |||||||||||||||||||||||||||||
| 333 | 0 | @result; | |||||||||||||||||||||||||||
| 334 | } | ||||||||||||||||||||||||||||
| 335 | |||||||||||||||||||||||||||||
| 336 | =head2 abs2rel | ||||||||||||||||||||||||||||
| 337 | |||||||||||||||||||||||||||||
| 338 | Title : abs2rel | ||||||||||||||||||||||||||||
| 339 | Usage : @rel_coords = $s->abs2rel(@abs_coords) | ||||||||||||||||||||||||||||
| 340 | Function: convert absolute coordinates into relative coordinates | ||||||||||||||||||||||||||||
| 341 | Returns : a list of relative coordinates | ||||||||||||||||||||||||||||
| 342 | Args : a list of absolute coordinates | ||||||||||||||||||||||||||||
| 343 | Status : Public | ||||||||||||||||||||||||||||
| 344 | |||||||||||||||||||||||||||||
| 345 | This function takes a list of positions in absolute coordinates | ||||||||||||||||||||||||||||
| 346 | and returns a list expressed in relative coordinates. | ||||||||||||||||||||||||||||
| 347 | |||||||||||||||||||||||||||||
| 348 | =cut | ||||||||||||||||||||||||||||
| 349 | |||||||||||||||||||||||||||||
| 350 | 0 | ▶ | sub abs2rel { | ||||||||||||||||||||||||||
|
Subroutine
abs2rel: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||||||||||||||||||||
| 351 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 352 | 0 | my @result; | |||||||||||||||||||||||||||
| 353 | |||||||||||||||||||||||||||||
| 354 | 0 | my ($start,$strand) = ($self->start,$self->abs_strand); | |||||||||||||||||||||||||||
| 355 | 0 | @result = $strand < 0 ? map { $start - $_ + 1 } @_ | |||||||||||||||||||||||||||
| 356 | 0 | ▶ | : map { $_ - $start + 1 } @_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 357 | |||||||||||||||||||||||||||||
| 358 | # if called with a single argument, caller will expect a single scalar reply | ||||||||||||||||||||||||||||
| 359 | # not the size of the returned array! | ||||||||||||||||||||||||||||
| 360 | 0 | ▶ | return $result[0] if @result == 1 and !wantarray; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
@result == 1 and not wantarray
MC/DC0%0/2
@result == 1 and not wantarray
@result == 1
not wantarray
Truth table0%0/3
A and not(B)
A= @result == 1B= not wantarray
| |||||||||||||||||||||||||||||
| 361 | 0 | @result; | |||||||||||||||||||||||||||
| 362 | } | ||||||||||||||||||||||||||||
| 363 | |||||||||||||||||||||||||||||
| 364 | |||||||||||||||||||||||||||||
| 365 | |||||||||||||||||||||||||||||
| 366 | =head2 Bio::SeqFeatureI compatibility methods | ||||||||||||||||||||||||||||
| 367 | |||||||||||||||||||||||||||||
| 368 | For convenience, segments are interchangeable with Bio::SeqFeature | ||||||||||||||||||||||||||||
| 369 | objects in many cases. This means that segments can be passed to | ||||||||||||||||||||||||||||
| 370 | BioPerl modules that expect Bio::SeqFeature objects and they should | ||||||||||||||||||||||||||||
| 371 | work as expected. The primary tag of segment objects is "region" | ||||||||||||||||||||||||||||
| 372 | (SO:0000001 "Continous sequence E<gt>=1 base pair"). | ||||||||||||||||||||||||||||
| 373 | |||||||||||||||||||||||||||||
| 374 | All these methods are read-only except for the primary_id, which can | ||||||||||||||||||||||||||||
| 375 | be get or set. | ||||||||||||||||||||||||||||
| 376 | |||||||||||||||||||||||||||||
| 377 | The following Bio::SeqFeatureI methods are supported: | ||||||||||||||||||||||||||||
| 378 | |||||||||||||||||||||||||||||
| 379 | =over 4 | ||||||||||||||||||||||||||||
| 380 | |||||||||||||||||||||||||||||
| 381 | =item start | ||||||||||||||||||||||||||||
| 382 | |||||||||||||||||||||||||||||
| 383 | =item end | ||||||||||||||||||||||||||||
| 384 | |||||||||||||||||||||||||||||
| 385 | =item seq_id | ||||||||||||||||||||||||||||
| 386 | |||||||||||||||||||||||||||||
| 387 | =item strand | ||||||||||||||||||||||||||||
| 388 | |||||||||||||||||||||||||||||
| 389 | =item length | ||||||||||||||||||||||||||||
| 390 | |||||||||||||||||||||||||||||
| 391 | =item display_name | ||||||||||||||||||||||||||||
| 392 | |||||||||||||||||||||||||||||
| 393 | =item primary_id | ||||||||||||||||||||||||||||
| 394 | |||||||||||||||||||||||||||||
| 395 | =item primary_tag (always returns "region") | ||||||||||||||||||||||||||||
| 396 | |||||||||||||||||||||||||||||
| 397 | =item source_tag (always returns "Bio::DB::SeqFeature::Segment") | ||||||||||||||||||||||||||||
| 398 | |||||||||||||||||||||||||||||
| 399 | =item get_SeqFeatures (always returns an empty list) | ||||||||||||||||||||||||||||
| 400 | |||||||||||||||||||||||||||||
| 401 | =item seq | ||||||||||||||||||||||||||||
| 402 | |||||||||||||||||||||||||||||
| 403 | =item entire_seq | ||||||||||||||||||||||||||||
| 404 | |||||||||||||||||||||||||||||
| 405 | =item location | ||||||||||||||||||||||||||||
| 406 | |||||||||||||||||||||||||||||
| 407 | =item All Bio::RangeI methods | ||||||||||||||||||||||||||||
| 408 | |||||||||||||||||||||||||||||
| 409 | =back | ||||||||||||||||||||||||||||
| 410 | |||||||||||||||||||||||||||||
| 411 | =cut | ||||||||||||||||||||||||||||
| 412 | |||||||||||||||||||||||||||||
| 413 | 0 | ▶ | sub start { shift->{start} } | ||||||||||||||||||||||||||
|
Subroutine
start: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 414 | 0 | ▶ | sub end { shift->{end} } | ||||||||||||||||||||||||||
|
Subroutine
end: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 415 | 0 | ▶ | sub seq_id { shift->{seqid} } | ||||||||||||||||||||||||||
|
Subroutine
seq_id: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 416 | 0 | ▶ | sub strand { shift->{strand} } | ||||||||||||||||||||||||||
|
Subroutine
strand: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 417 | 0 | ▶ | sub ref { shift->seq_id } | ||||||||||||||||||||||||||
|
Subroutine
ref: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 418 | 11 | *refseq = \&ref; | |||||||||||||||||||||||||||
| 419 | |||||||||||||||||||||||||||||
| 420 | 0 | ▶ | sub length { | ||||||||||||||||||||||||||
|
Subroutine
length: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 421 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 422 | 0 | return abs($self->end - $self->start) +1; | |||||||||||||||||||||||||||
| 423 | } | ||||||||||||||||||||||||||||
| 424 | |||||||||||||||||||||||||||||
| 425 | 0 | ▶ | sub primary_tag { 'region' } | ||||||||||||||||||||||||||
|
Subroutine
primary_tag: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 426 | 0 | ▶ | sub source_tag { __PACKAGE__ } | ||||||||||||||||||||||||||
|
Subroutine
source_tag: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 427 | 0 | ▶ | sub display_name { shift->as_string } | ||||||||||||||||||||||||||
|
Subroutine
display_name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 428 | 0 | ▶ | sub name { shift->display_name } | ||||||||||||||||||||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 429 | 0 | ▶ | sub class { 'region' } | ||||||||||||||||||||||||||
|
Subroutine
class: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 430 | 0 | ▶ | sub abs_ref { shift->ref} | ||||||||||||||||||||||||||
|
Subroutine
abs_ref: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 431 | 0 | ▶ | sub abs_start { shift->start} | ||||||||||||||||||||||||||
|
Subroutine
abs_start: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 432 | 0 | ▶ | sub abs_end { shift->end} | ||||||||||||||||||||||||||
|
Subroutine
abs_end: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 433 | 0 | ▶ | sub abs_strand { shift->strand} | ||||||||||||||||||||||||||
|
Subroutine
abs_strand: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 434 | 0 | ▶ | sub get_SeqFeatures { } | ||||||||||||||||||||||||||
|
Subroutine
get_SeqFeatures: not called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 435 | 0 | ▶ | sub get_all_tags { } | ||||||||||||||||||||||||||
|
Subroutine
get_all_tags: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 436 | 0 | ▶ | sub get_tag_values { } | ||||||||||||||||||||||||||
|
Subroutine
get_tag_values: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 437 | 0 | ▶ | sub add_tag_value { } | ||||||||||||||||||||||||||
|
Subroutine
add_tag_value: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 438 | 0 | ▶ | sub remove_tag { } | ||||||||||||||||||||||||||
|
Subroutine
remove_tag: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 439 | 0 | ▶ | sub has_tag { } | ||||||||||||||||||||||||||
|
Subroutine
has_tag: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 440 | 0 | ▶ | sub seq { | ||||||||||||||||||||||||||
|
Subroutine
seq: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||||||||||||||||
| 441 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 442 | 0 | ▶ | require Bio::PrimarySeq unless Bio::PrimarySeq->can('new'); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 443 | 0 | my ($start,$end) = ($self->start,$self->end); | |||||||||||||||||||||||||||
| 444 | 0 | ▶ | if ($self->strand < 0) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 445 | 0 | ($start,$end) = ($end,$start); | |||||||||||||||||||||||||||
| 446 | } | ||||||||||||||||||||||||||||
| 447 | 0 | return Bio::PrimarySeq->new( | |||||||||||||||||||||||||||
| 448 | -seq => $self->store->fetch_sequence($self->seq_id,$start,$end), | ||||||||||||||||||||||||||||
| 449 | -id => $self->display_name); | ||||||||||||||||||||||||||||
| 450 | } | ||||||||||||||||||||||||||||
| 451 | 0 | ▶ | sub subseq { | ||||||||||||||||||||||||||
|
Subroutine
subseq: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 452 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 453 | 0 | my ($newstart,$newstop) = @_; | |||||||||||||||||||||||||||
| 454 | 0 | ▶ | my $store = $self->store or return; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 455 | 0 | my $seq = $store->fetch_sequence($self->seq_id,$self->start+$newstart-1,$self->end+$newstop-1); | |||||||||||||||||||||||||||
| 456 | 0 | return Bio::PrimarySeq->new(-seq=>$seq); | |||||||||||||||||||||||||||
| 457 | } | ||||||||||||||||||||||||||||
| 458 | 0 | ▶ | sub dna { | ||||||||||||||||||||||||||
|
Subroutine
dna: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 459 | 0 | my $seq = shift->seq; | |||||||||||||||||||||||||||
| 460 | 0 | ▶ | $seq = $seq->seq if CORE::ref($seq); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 461 | 0 | return $seq; | |||||||||||||||||||||||||||
| 462 | } | ||||||||||||||||||||||||||||
| 463 | |||||||||||||||||||||||||||||
| 464 | 0 | ▶ | sub entire_seq { | ||||||||||||||||||||||||||
|
Subroutine
entire_seq: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||
| 465 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 466 | 0 | ▶ | require Bio::PrimarySeq unless Bio::PrimarySeq->can('new'); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 467 | 0 | return Bio::PrimarySeq->new( | |||||||||||||||||||||||||||
| 468 | -seq => $self->store->fetch_sequence($self->seq_id), | ||||||||||||||||||||||||||||
| 469 | -id => $self->seq_id); | ||||||||||||||||||||||||||||
| 470 | } | ||||||||||||||||||||||||||||
| 471 | |||||||||||||||||||||||||||||
| 472 | 0 | ▶ | sub location { | ||||||||||||||||||||||||||
|
Subroutine
location: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||
| 473 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 474 | 0 | ▶ | require Bio::Location::Simple unless Bio::Location::Simple->can('new'); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 475 | 0 | my $loc = Bio::Location::Simple->new(-start => $self->start, | |||||||||||||||||||||||||||
| 476 | -end => $self->end, | ||||||||||||||||||||||||||||
| 477 | -strand => $self->strand); | ||||||||||||||||||||||||||||
| 478 | 0 | $loc->strand($self->strand); | |||||||||||||||||||||||||||
| 479 | 0 | return $loc; | |||||||||||||||||||||||||||
| 480 | } | ||||||||||||||||||||||||||||
| 481 | 0 | ▶ | sub primary_id { | ||||||||||||||||||||||||||
|
Subroutine
primary_id: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||
| 482 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 483 | 0 | my $d = $self->{primary_id}; | |||||||||||||||||||||||||||
| 484 | 0 | ▶ | $self->{primary_id} = shift if @_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 485 | 0 | $d; | |||||||||||||||||||||||||||
| 486 | } | ||||||||||||||||||||||||||||
| 487 | |||||||||||||||||||||||||||||
| 488 | 0 | ▶ | sub target { return } | ||||||||||||||||||||||||||
|
Subroutine
target: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 489 | 0 | ▶ | sub score { return } | ||||||||||||||||||||||||||
|
Subroutine
score: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 490 | 0 | ▶ | sub stop { shift->end } | ||||||||||||||||||||||||||
|
Subroutine
stop: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 491 | 0 | ▶ | sub absolute { return 1 } | ||||||||||||||||||||||||||
|
Subroutine
absolute: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 492 | 0 | ▶ | sub desc { shift->as_string } | ||||||||||||||||||||||||||
|
Subroutine
desc: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 493 | 0 | ▶ | sub display_id { shift->display_name } | ||||||||||||||||||||||||||
|
Subroutine
display_id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 494 | 0 | ▶ | sub primary_seq { shift->seq } | ||||||||||||||||||||||||||
|
Subroutine
primary_seq: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 495 | 0 | ▶ | sub accession_number { return undef } # intended return undef | ||||||||||||||||||||||||||
|
Subroutine
accession_number: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 496 | 0 | ▶ | sub alphabet { return undef } # intended return undef | ||||||||||||||||||||||||||
|
Subroutine
alphabet: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 497 | |||||||||||||||||||||||||||||
| 498 | 11 | 1; | |||||||||||||||||||||||||||
| 499 | |||||||||||||||||||||||||||||
| 500 | __END__ | ||||||||||||||||||||||||||||