Bio/Location/Atomic.pm

filter: Statementstmt 69.9% 86 / 123 Branchbran 67.2% 39 / 58 Conditioncond 70.3% 19 / 27 MC/DCmcdc 33.3% 5 / 15 Subroutinesub 91.3% 21 / 23 Podpod 100% 20 / 20 totaltotal 71.4% 190 / 266 CC 39 SCAR 19.6
CC
39
Cov
69%
new
13.9
to_FTstring
12.0
trunc
12.0
CRAP 7.1
« Bio/SeqFeature/Gene/GeneStructure.pm ↑ Summary Bio/SeqIO/phd.pm »
1 #
2 # BioPerl module for Bio::Location::Atomic
3 # Please direct questions and support issues to <bioperl-l@bioperl.org>
4 #
5 # Cared for by Jason Stajich <jason@bioperl.org>
6 #
7 # Copyright Jason Stajich
8 #
9 # You may distribute this module under the same terms as perl itself
10 # POD documentation - main docs before the code
11  
12 =head1 NAME
13  
14 Bio::Location::Atomic - Implementation of a Atomic Location on a Sequence
15  
16 =head1 SYNOPSIS
17  
18 use Bio::Location::Atomic;
19  
20 my $location = Bio::Location::Atomic->new(-start => 1, -end => 100,
21 -strand => 1 );
22  
23 if( $location->strand == -1 ) {
24 printf "complement(%d..%d)\n", $location->start, $location->end;
25 } else {
26 printf "%d..%d\n", $location->start, $location->end;
27 }
28  
29 =head1 DESCRIPTION
30  
31 This is an implementation of Bio::LocationI to manage simple location
32 information on a Sequence.
33  
34 =head1 FEEDBACK
35  
36 User feedback is an integral part of the evolution of this and other
37 Bioperl modules. Send your comments and suggestions preferably to one
38 of the Bioperl mailing lists. Your participation is much appreciated.
39  
40 bioperl-l@bioperl.org - General discussion
41 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
42  
43 =head2 Support
44  
45 Please direct usage questions or support issues to the mailing list:
46  
47 I<bioperl-l@bioperl.org>
48  
49 rather than to the module maintainer directly. Many experienced and
50 reponsive experts will be able look at the problem and quickly
51 address it. Please include a thorough description of the problem
52 with code and data examples if at all possible.
53  
54 =head2 Reporting Bugs
55  
56 Report bugs to the Bioperl bug tracking system to help us keep track
57 the bugs and their resolution. Bug reports can be submitted via the
58 web:
59  
60 https://github.com/bioperl/bioperl-live/issues
61  
62 =head1 AUTHOR - Jason Stajich
63  
64 Email jason-at-bioperl-dot-org
65  
66 =head1 APPENDIX
67  
68 The rest of the documentation details each of the object
69 methods. Internal methods are usually preceded with a _
70  
71 =cut
72  
73 # Let the code begin...
74  
75  
76 package Bio::Location::Atomic;
77 328 $Bio::Location::Atomic::VERSION = '1.7.6';
78 328 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
79  
80 328 ▶use Bio::Location::WidestCoordPolicy;
Subroutine BEGIN: called CC=1 SCAR=0.0
81  
82 328 ▶use base qw(Bio::Root::Root Bio::LocationI);
Subroutine BEGIN: called CC=1 SCAR=0.0
83  
84 328 our $coord_policy = Bio::Location::WidestCoordPolicy->new();
85  
86 sub new {
87 59504 ▶ my ($class, @args) = @_;
Subroutine new: called CC=13 SCAR=26.3
Pod documented
88 59504 ▶ $class = ref $class || $class;
Condition66%2/3
ref $class || $class
l!l&&r!l&&!r
4595000
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table66%2/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
89 59504 my $self = {};
90 # This is for the case when we've done something like this
91 # get a 2 features from somewhere (like Bio::Tools::GFF)
92 # Do
93 # my $location = $f1->location->union($f2->location);
94 # We get an error without the following code which
95 # explicitly loads the Bio::Location::Simple class
96 59504 ▶ unless( $class->can('start') ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($class->can("start")) 0 59504 59504
97 0 eval { Bio::Root::Root->_load_module($class) };
98 0 ▶ if ( $@ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 0 0 0
99 0 Bio::Root::Root->throw("$class cannot be found\nException $@");
100 }
101 }
102 59504 bless $self,$class;
103  
104 59504 my ($v,$start,$end,$strand,$seqid) = $self->_rearrange([qw(VERBOSE
105 START
106 END
107 STRAND
108 SEQ_ID)],@args);
109 59504 ▶ defined $v && $self->verbose($v);
Branch: 1 branch
BranchTrueFalseTotal
defined $v and $self->verbose($v) 45078 14426 59504
110 59504 ▶ defined $strand && $self->strand($strand);
Branch: 1 branch
BranchTrueFalseTotal
defined $strand and $self->strand($strand) 41697 17807 59504
111  
112 59504 ▶ defined $start && $self->start($start);
Branch: 1 branch
BranchTrueFalseTotal
defined $start and $self->start($start) 41700 17804 59504
113 59504 ▶ defined $end && $self->end($end);
Branch: 1 branch
BranchTrueFalseTotal
defined $end and $self->end($end) 41700 17804 59504
114 59504 ▶ if( defined $self->start && defined $self->end &&
Branch: 1 branch
BranchTrueFalseTotal
if (defined $self->start and defined $self->end and $self->start > $self->end and $self->strand != -1) 1 59503 59504
Condition88%8/9
defined $self->start and defined $self->end and $self->start > $self->end and $self->strand != -1
!ll&&!rl&&r
5950301
defined $self->start and defined $self->end and $self->start > $self->end
!ll&&!rl&&r
17854416491
defined $self->start and defined $self->end
!ll&&!rl&&r
178262841650
MC/DC75%3/4
defined $self->start and defined $self->end and $self->start > $self->end and $self->strand != -1
defined $self->start defined $self->end $self->start > $self->end $self->strand != -1
Truth table80%4/5
A and B and C and D
A= defined $self->startB= defined $self->endC= $self->start > $self->endD= $self->strand != -1
ABCDresult
0XXX0
10XX0
110X0
11100
11111
115 $self->start > $self->end && $self->strand != -1 ) {
116 1 $self->warn("When building a location, start ($start) is expected to be less than end ($end), ".
117 "however it was not. Switching start and end and setting strand to -1");
118  
119 1 $self->strand(-1);
120 1 my $e = $self->end;
121 1 my $s = $self->start;
122 1 $self->start($e);
123 1 $self->end($s);
124 }
125 59504 ▶ $seqid && $self->seq_id($seqid);
Branch: 1 branch
BranchTrueFalseTotal
$seqid and $self->seq_id($seqid) 8 59496 59504
126  
127 59504 return $self;
128 }
129  
130 =head2 start
131  
132 Title : start
133 Usage : $start = $loc->start();
134 Function: get/set the start of this range
135 Returns : the start of this range
136 Args : optionally allows the start to be set
137 : using $loc->start($start)
138  
139 =cut
140  
141 sub start {
142 38895 ▶ my ($self, $value) = @_;
Subroutine start: called CC=2 SCAR=7.1
Pod documented
143 38895 ▶ $self->min_start($value) if( defined $value );
Branch: 1 branch
BranchTrueFalseTotal
if defined $value 0 38895 38895
144 38895 return $self->SUPER::start();
145 }
146  
147 =head2 end
148  
149 Title : end
150 Usage : $end = $loc->end();
151 Function: get/set the end of this range
152 Returns : the end of this range
153 Args : optionally allows the end to be set
154 : using $loc->end($start)
155  
156 =cut
157  
158 sub end {
159 35230 ▶ my ($self, $value) = @_;
Subroutine end: called CC=2 SCAR=7.1
Pod documented
160  
161 35230 ▶ $self->min_end($value) if( defined $value );
Branch: 1 branch
BranchTrueFalseTotal
if defined $value 0 35230 35230
162 35230 return $self->SUPER::end();
163 }
164  
165 =head2 strand
166  
167 Title : strand
168 Usage : $strand = $loc->strand();
169 Function: get/set the strand of this range
170 Returns : the strandidness (-1, 0, +1)
171 Args : optionally allows the strand to be set
172 : using $loc->strand($strand)
173  
174 =cut
175  
176 sub strand {
177 373420 ▶ my $self = shift;
Subroutine strand: called CC=9 SCAR=23.2
Pod documented
178  
179 373420 ▶ if ( @_ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 93508 279912 373420
180 93508 my $value = shift;
181 93508 ▶ if ( defined($value) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $value) 93108 400 93508
182 93108 ▶ if ( $value eq '+' ) { $value = 1; }
Branch: 4 branches
BranchTrueFalseTotal
if ($value eq '+') { } 22 93086 93108
elsif ($value eq '-') { } 0 93086 93086
elsif ($value eq '.') { } 0 93086 93086
elsif ($value != -1 and $value != 1 and $value != 0) { } 0 183797 183797
183 0 elsif ( $value eq '-' ) { $value = -1; }
184 0 elsif ( $value eq '.' ) { $value = 0; }
185 ▶ elsif ( $value != -1 && $value != 1 && $value != 0 ) {
Condition83%5/6
$value != -1 and $value != 1 and $value != 0
!ll&&!rl&&r
9071123750
$value != -1 and $value != 1
!ll&&!rl&&r
32472582392375
MC/DC0%0/3
$value != -1 and $value != 1 and $value != 0
$value != -1 $value != 1 $value != 0
Truth table75%3/4
A and B and C
A= $value != -1B= $value != 1C= $value != 0
ABCresult
0XX0
10X0
1100
1111
186 0 $self->throw("$value is not a valid strand info");
187 }
188 93108 $self->{'_strand'} = $value;
189 }
190 }
191 # do not pretend the strand has been set if in fact it wasn't
192 373420 return $self->{'_strand'};
193 #return $self->{'_strand'} || 0;
194 }
195  
196 =head2 flip_strand
197  
198 Title : flip_strand
199 Usage : $location->flip_strand();
200 Function: Flip-flop a strand to the opposite
201 Returns : None
202 Args : None
203  
204 =cut
205  
206  
207 sub flip_strand {
208 234 ▶ my $self= shift;
Subroutine flip_strand: called CC=2 SCAR=7.6
Pod documented
209 # Initialize strand if necessary to flip it
210 234 ▶ if (not defined $self->strand) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $self->strand) 0 234 234
211 0 $self->strand(1)
212 }
213 234 $self->strand($self->strand * -1);
214 }
215  
216  
217 =head2 seq_id
218  
219 Title : seq_id
220 Usage : my $seqid = $location->seq_id();
221 Function: Get/Set seq_id that location refers to
222 Returns : seq_id (a string)
223 Args : [optional] seq_id value to set
224  
225 =cut
226  
227  
228 sub seq_id {
229 419064 ▶ my ($self, $seqid) = @_;
Subroutine seq_id: called CC=2 SCAR=6.9
Pod documented
230 419064 ▶ if( defined $seqid ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $seqid) 43622 375442 419064
231 43622 $self->{'_seqid'} = $seqid;
232 }
233 419064 return $self->{'_seqid'};
234 }
235  
236 =head2 length
237  
238 Title : length
239 Usage : $len = $loc->length();
240 Function: get the length in the coordinate space this location spans
241 Example :
242 Returns : an integer
243 Args : none
244  
245  
246 =cut
247  
248 sub length {
249 6 ▶ my ($self) = @_;
Subroutine length: called CC=1 SCAR=0.0
Pod documented
250 6 return abs($self->end() - $self->start()) + 1;
251 }
252  
253 =head2 min_start
254  
255 Title : min_start
256 Usage : my $minstart = $location->min_start();
257 Function: Get minimum starting location of feature startpoint
258 Returns : integer or undef if no minimum starting point.
259 Args : none
260  
261 =cut
262  
263 sub min_start {
264 31886 ▶ my ($self,$value) = @_;
Subroutine min_start: called CC=2 SCAR=7.6
Pod documented
265  
266 31886 ▶ if(defined($value)) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $value) 0 31886 31886
267 0 $self->{'_start'} = $value;
268 }
269 31886 return $self->{'_start'};
270 }
271  
272 =head2 max_start
273  
274 Title : max_start
275 Usage : my $maxstart = $location->max_start();
276 Function: Get maximum starting location of feature startpoint.
277  
278 In this implementation this is exactly the same as min_start().
279  
280 Returns : integer or undef if no maximum starting point.
281 Args : none
282  
283 =cut
284  
285 sub max_start {
286 11 ▶ my ($self,@args) = @_;
Subroutine max_start: called CC=1 SCAR=0.0
Pod documented
287 11 return $self->min_start(@args);
288 }
289  
290 =head2 start_pos_type
291  
292 Title : start_pos_type
293 Usage : my $start_pos_type = $location->start_pos_type();
294 Function: Get start position type (ie <,>, ^).
295  
296 In this implementation this will always be 'EXACT'.
297  
298 Returns : type of position coded as text
299 ('BEFORE', 'AFTER', 'EXACT','WITHIN', 'BETWEEN')
300 Args : none
301  
302 =cut
303  
304 sub start_pos_type {
305 10 ▶ my($self) = @_;
Subroutine start_pos_type: called CC=1 SCAR=0.0
Pod documented
306 10 return 'EXACT';
307 }
308  
309 =head2 min_end
310  
311 Title : min_end
312 Usage : my $minend = $location->min_end();
313 Function: Get minimum ending location of feature endpoint
314 Returns : integer or undef if no minimum ending point.
315 Args : none
316  
317 =cut
318  
319 sub min_end {
320 32284 ▶ my($self,$value) = @_;
Subroutine min_end: called CC=2 SCAR=7.6
Pod documented
321  
322 32284 ▶ if(defined($value)) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $value) 0 32284 32284
323 0 $self->{'_end'} = $value;
324 }
325 32284 return $self->{'_end'};
326 }
327  
328 =head2 max_end
329  
330 Title : max_end
331 Usage : my $maxend = $location->max_end();
332 Function: Get maximum ending location of feature endpoint
333  
334 In this implementation this is exactly the same as min_end().
335  
336 Returns : integer or undef if no maximum ending point.
337 Args : none
338  
339 =cut
340  
341 sub max_end {
342 32275 ▶ my($self,@args) = @_;
Subroutine max_end: called CC=1 SCAR=0.0
Pod documented
343 32275 return $self->min_end(@args);
344 }
345  
346 =head2 end_pos_type
347  
348 Title : end_pos_type
349 Usage : my $end_pos_type = $location->end_pos_type();
350 Function: Get end position type (ie <,>, ^)
351  
352 In this implementation this will always be 'EXACT'.
353  
354 Returns : type of position coded as text
355 ('BEFORE', 'AFTER', 'EXACT','WITHIN', 'BETWEEN')
356 Args : none
357  
358 =cut
359  
360 sub end_pos_type {
361 9 ▶ my($self) = @_;
Subroutine end_pos_type: called CC=1 SCAR=0.0
Pod documented
362 9 return 'EXACT';
363 }
364  
365 =head2 location_type
366  
367 Title : location_type
368 Usage : my $location_type = $location->location_type();
369 Function: Get location type encoded as text
370 Returns : string ('EXACT', 'WITHIN', 'IN-BETWEEN')
371 Args : none
372  
373 =cut
374  
375 sub location_type {
376 5 ▶ my ($self) = @_;
Subroutine location_type: called CC=1 SCAR=0.0
Pod documented
377 5 return 'EXACT';
378 }
379  
380 =head2 is_remote
381  
382 Title : is_remote
383 Usage : $is_remote_loc = $loc->is_remote()
384 Function: Whether or not a location is a remote location.
385  
386 A location is said to be remote if it is on a different
387 'object' than the object which 'has' this
388 location. Typically, features on a sequence will sometimes
389 have a remote location, which means that the location of
390 the feature is on a different sequence than the one that is
391 attached to the feature. In such a case, $loc->seq_id will
392 be different from $feat->seq_id (usually they will be the
393 same).
394  
395 While this may sound weird, it reflects the location of the
396 kind of AL445212.9:83662..166657 which can be found in GenBank/EMBL
397 feature tables.
398  
399 Example :
400 Returns : TRUE if the location is a remote location, and FALSE otherwise
401 Args : Value to set to
402  
403 =cut
404  
405 sub is_remote {
406 48094 ▶ my $self = shift;
Subroutine is_remote: called CC=2 SCAR=6.9
Pod documented
407 48094 ▶ if( @_ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 102 47992 48094
408 102 my $value = shift;
409 102 $self->{'is_remote'} = $value;
410 }
411 48094 return $self->{'is_remote'};
412 }
413  
414 =head2 each_Location
415  
416 Title : each_Location
417 Usage : @locations = $locObject->each_Location($order);
418 Function: Conserved function call across Location:: modules - will
419 return an array containing the component Location(s) in
420 that object, regardless if the calling object is itself a
421 single location or one containing sublocations.
422 Returns : an array of Bio::LocationI implementing objects - for
423 Simple locations, the return value is just itself.
424 Args :
425  
426 =cut
427  
428 sub each_Location {
429 69407 ▶ my ($self) = @_;
Subroutine each_Location: called CC=1 SCAR=0.0
Pod documented
430 69407 return ($self);
431 }
432  
433 =head2 to_FTstring
434  
435 Title : to_FTstring
436 Usage : my $locstr = $location->to_FTstring()
437 Function: returns the FeatureTable string of this location
438 Returns : string
439 Args : none
440  
441 =cut
442  
443 sub to_FTstring {
444 0 ▶ my($self) = @_;
Subroutine to_FTstring: not called CC=3 SCAR=24.8
Pod documented
445 0 ▶ if( $self->start == $self->end ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->start == $self->end) 0 0 0
446 0 return $self->start;
447 }
448 0 my $str = $self->start . ".." . $self->end;
449 0 ▶ if( $self->strand == -1 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->strand == -1) 0 0 0
450 0 $str = sprintf("complement(%s)", $str);
451 }
452 0 return $str;
453 }
454  
455 =head2 valid_Location
456  
457 Title : valid_Location
458 Usage : if ($location->valid_location) {...};
459 Function: boolean method to determine whether location is considered valid
460 (has minimum requirements for Simple implementation)
461 Returns : Boolean value: true if location is valid, false otherwise
462 Args : none
463  
464 =cut
465  
466 sub valid_Location {
467 18873 ▶ my ($self) = @_;
Subroutine valid_Location: called CC=3 SCAR=11.0
Pod documented
468 18873 ▶ return 1 if $self->{'_start'} && $self->{'_end'};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"_start"} and $self->{"_end"} 16771 2102 18873
Condition66%2/3
$self->{"_start"} and $self->{"_end"}
!ll&&!rl&&r
2102016771
MC/DC50%1/2
$self->{"_start"} and $self->{"_end"}
$self->{"_start"} $self->{"_end"}
Truth table66%2/3
A and B
A= $self->{"_start"}B= $self->{"_end"}
ABresult
0X0
100
111
469 2102 return 0;
470 }
471  
472 =head2 coordinate_policy
473  
474 Title : coordinate_policy
475 Usage : $policy = $location->coordinate_policy();
476 $location->coordinate_policy($mypolicy); # set may not be possible
477 Function: Get the coordinate computing policy employed by this object.
478  
479 See L<Bio::Location::CoordinatePolicyI> for documentation
480 about the policy object and its use.
481  
482 The interface *does not* require implementing classes to
483 accept setting of a different policy. The implementation
484 provided here does, however, allow one to do so.
485  
486 Implementors of this interface are expected to initialize
487 every new instance with a
488 L<Bio::Location::CoordinatePolicyI> object. The
489 implementation provided here will return a default policy
490 object if none has been set yet. To change this default
491 policy object call this method as a class method with an
492 appropriate argument. Note that in this case only
493 subsequently created Location objects will be affected.
494  
495 Returns : A L<Bio::Location::CoordinatePolicyI> implementing object.
496 Args : On set, a L<Bio::Location::CoordinatePolicyI> implementing object.
497  
498 See L<Bio::Location::CoordinatePolicyI> for more information
499  
500  
501 =cut
502  
503 sub coordinate_policy {
504 74231 ▶ my ($self, $policy) = @_;
Subroutine coordinate_policy: called CC=6 SCAR=19.0
Pod documented
505  
506 74231 ▶ if(defined($policy)) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $policy) 3 74228 74231
507 3 ▶ if(! $policy->isa('Bio::Location::CoordinatePolicyI')) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($policy->isa("Bio::Location::CoordinatePolicyI")) 0 3 3
508 0 $self->throw("Object of class ".ref($policy)." does not implement".
509 " Bio::Location::CoordinatePolicyI");
510 }
511 3 ▶ if(ref($self)) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $self) { } 3 0 3
512 3 $self->{'_coordpolicy'} = $policy;
513 } else {
514 # called as class method
515 0 $coord_policy = $policy;
516 }
517 }
518 return (ref($self) && exists($self->{'_coordpolicy'}) ?
519 74231 ▶ $self->{'_coordpolicy'} : $coord_policy);
Branch: 1 branch
BranchTrueFalseTotal
ref $self && exists $self->{'_coordpolicy'} ? : 27 74204 74231
Condition66%2/3
ref $self and exists $self->{"_coordpolicy"}
!ll&&!rl&&r
07420427
MC/DC50%1/2
ref $self and exists $self->{"_coordpolicy"}
ref $self exists $self->{"_coordpolicy"}
Truth table66%2/3
A and B
A= ref $selfB= exists $self->{"_coordpolicy"}
ABresult
0X0
100
111
520 }
521  
522 =head2 trunc
523  
524 Title : trunc
525 Usage : $trunc_location = $location->trunc($start, $end, $relative_ori);
526 Function: To truncate a location and keep annotations and features
527 within the truncated segment intact.
528  
529 This might do things differently where the truncation
530 splits the location in half.
531 CAVEAT : As yet, this is an untested and unannounced method. Use
532 with caution!
533 Returns : A L<Bio::Location::Atomic> object.
534 Args : The start and end position for the trunction, and the relative
535 orientation.
536  
537 =cut
538  
539 sub trunc {
540 0 ▶ my ($self,$start,$end,$relative_ori) = @_;
Subroutine trunc: not called CC=3 SCAR=24.8
Pod documented
541  
542 0 my $newstart = $self->start - $start+1;
543 0 my $newend = $self->end - $start+1;
544 0 my $newstrand = $relative_ori * $self->strand;
545  
546 0 my $out;
547 0 ▶ if( $newstart < 1 || $newend > ($end-$start+1) ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($newstart < 1 or $newend > $end - $start + 1) { } 0 0 0
Condition0%0/3
$newstart < 1 or $newend > $end - $start + 1
l!l&&r!l&&!r
000
MC/DC0%0/2
$newstart < 1 or $newend > $end - $start + 1
$newstart < 1 $newend > $end - $start + 1
Truth table0%0/3
A or B
A= $newstart < 1B= $newend > $end - $start + 1
ABresult
1X1
011
000
548 0 $out = Bio::Location::Atomic->new();
549 0 $out->start($self->start);
550 0 $out->end($self->end);
551 0 $out->strand($self->strand);
552 0 $out->seq_id($self->seqid);
553 0 $out->is_remote(1);
554 } else {
555 0 $out = Bio::Location::Atomic->new();
556 0 $out->start($newstart);
557 0 $out->end($newend);
558 0 $out->strand($newstrand);
559 0 $out->seq_id();
560 }
561  
562 0 return $out;
563 }
564  
565 328 1;
« Bio/SeqFeature/Gene/GeneStructure.pm ↑ Summary Bio/SeqIO/phd.pm »