0
|
1 # $Id: UTR.pm,v 1.6 2002/10/22 07:45:20 lapp Exp $
|
|
2 #
|
|
3 # BioPerl module for Bio::SeqFeature::Gene::UTR
|
|
4 #
|
|
5 # Cared for by David Block <dblock@gene.pbi.nrc.ca>
|
|
6 #
|
|
7 # Copyright David Block
|
|
8 #
|
|
9 # You may distribute this module under the same terms as perl itself
|
|
10
|
|
11 # POD documentation - main docs before the code
|
|
12
|
|
13 =head1 NAME
|
|
14
|
|
15 Bio::SeqFeature::Gene::UTR - A feature representing an untranslated region
|
|
16 that is part of a transcription unit
|
|
17
|
|
18 =head1 SYNOPSIS
|
|
19
|
|
20 See documentation of methods
|
|
21
|
|
22 =head1 DESCRIPTION
|
|
23
|
|
24 A UTR is a Bio::SeqFeature::Gene::ExonI compliant object that is
|
|
25 non-coding, and can be either 5' or 3' in a transcript.
|
|
26
|
|
27 =head1 FEEDBACK
|
|
28
|
|
29 =head2 Mailing Lists
|
|
30
|
|
31 User feedback is an integral part of the evolution of this and other
|
|
32 Bioperl modules. Send your comments and suggestions preferably to
|
|
33 the Bioperl mailing list. Your participation is much appreciated.
|
|
34
|
|
35 bioperl-l@bioperl.org - General discussion
|
|
36 http://bioperl.org/MailList.shtml - About the mailing lists
|
|
37
|
|
38 =head2 Reporting Bugs
|
|
39
|
|
40 Report bugs to the Bioperl bug tracking system to help us keep track
|
|
41 of the bugs and their resolution. Bug reports can be submitted via
|
|
42 email or the web:
|
|
43
|
|
44 bioperl-bugs@bioperl.org
|
|
45 http://bugzilla.bioperl.org/
|
|
46
|
|
47 =head1 AUTHOR - David Block
|
|
48
|
|
49 Email dblock@gene.pbi.nrc.ca
|
|
50
|
|
51 =head1 CONTRIBUTORS
|
|
52
|
|
53 This is based on the Gene Structure scaffolding erected by Hilmar Lapp
|
|
54 (hlapp@gmx.net).
|
|
55
|
|
56 =head1 APPENDIX
|
|
57
|
|
58 The rest of the documentation details each of the object methods.
|
|
59 Internal methods are usually preceded with a _
|
|
60
|
|
61 =cut
|
|
62
|
|
63
|
|
64 # Let the code begin...
|
|
65
|
|
66
|
|
67 package Bio::SeqFeature::Gene::UTR;
|
|
68 use vars qw(@ISA);
|
|
69 use strict;
|
|
70
|
|
71 # Object preamble - inherits from Bio::Root::Root
|
|
72
|
|
73 use Bio::SeqFeature::Gene::NC_Feature;
|
|
74
|
|
75 @ISA = qw(Bio::SeqFeature::Gene::NC_Feature);
|
|
76
|
|
77 sub new {
|
|
78 my($class,@args) = @_;
|
|
79
|
|
80 my $self = $class->SUPER::new(@args);
|
|
81 return $self;
|
|
82 }
|
|
83
|
|
84 =head2 primary_tag
|
|
85
|
|
86 Title : primary_tag
|
|
87 Usage : $tag = $feat->primary_tag()
|
|
88 Function: Returns the primary tag for a feature,
|
|
89 eg 'utr5prime'. This method insures that 5prime/3prime information
|
|
90 is uniformly stored
|
|
91 Returns : a string
|
|
92 Args : none
|
|
93
|
|
94 =cut
|
|
95
|
|
96 sub primary_tag{
|
|
97 my ($self,$val) = @_;
|
|
98 if( defined $val ) {
|
|
99 if ($val =~ /(3|5)/ ) { $val = "utr$1prime" }
|
|
100 else { $self->warn("tag should contain indication if this is 3 or 5 prime. Preferred text is 'utr3prime' or 'utr5prime'. Using user text of '$val'");}
|
|
101 }
|
|
102 $self->SUPER::primary_tag($val);
|
|
103
|
|
104 }
|
|
105
|
|
106 1;
|