| 1 | # | ||
| 2 | # BioPerl module for FAST::Bio::Seq::GapSeqI | ||
| 3 | # | ||
| 4 | # Cared for by Dave Ardell dave.ardell@ebc.uu.se | ||
| 5 | # | ||
| 6 | # Copyright David H. Ardell | ||
| 7 | # | ||
| 8 | # You may distribute this module under the same terms as perl itself | ||
| 9 | |||
| 10 | # POD documentation - main docs before the code | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | FAST::Bio::Seq::GapSeqI - GapSeq interface, for gapped sequences | ||
| 15 | |||
| 16 | =head1 SYNOPSIS | ||
| 17 | |||
| 18 | $aa = $gapseq->translate; | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This interface extends the FAST::Bio::SeqI interface to give additional functionality | ||
| 23 | to gapped sequences. | ||
| 24 | |||
| 25 | =head1 FEEDBACK | ||
| 26 | |||
| 27 | =head2 Mailing Lists | ||
| 28 | |||
| 29 | User feedback is an integral part of the evolution of this | ||
| 30 | and other Bioperl modules. Send your comments and suggestions preferably | ||
| 31 | to one of the Bioperl mailing lists. | ||
| 32 | Your participation is much appreciated. | ||
| 33 | |||
| 34 | bioperl-l@bioperl.org - General discussion | ||
| 35 | http://bio.perl.org/MailList.html - About the mailing lists | ||
| 36 | |||
| 37 | =head2 Reporting Bugs | ||
| 38 | |||
| 39 | Report bugs to the Bioperl bug tracking system to help us keep track | ||
| 40 | the bugs and their resolution. | ||
| 41 | Bug reports can be submitted via email or the web: | ||
| 42 | |||
| 43 | bioperl-bugs@bio.perl.org | ||
| 44 | http://bio.perl.org/bioperl-bugs/ | ||
| 45 | |||
| 46 | =head1 AUTHOR - Dave Ardell | ||
| 47 | |||
| 48 | Email dave.ardell@ebc.uu.se | ||
| 49 | |||
| 50 | Describe contact details here | ||
| 51 | |||
| 52 | =head1 APPENDIX | ||
| 53 | |||
| 54 | The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ | ||
| 55 | |||
| 56 | =cut | ||
| 57 | |||
| 58 | |||
| 59 | # Let the code begin... | ||
| 60 | |||
| 61 | package FAST::Bio::GapSeqI; | ||
| 62 | use vars qw(@ISA); | ||
| 63 | use strict; | ||
| 64 | use FAST::Bio::MySeqI; | ||
| 65 | |||
| 66 | @ISA = ('FAST::Bio::MySeqI'); | ||
| 67 | |||
| 68 | |||
| 69 | =head2 translate | ||
| 70 | |||
| 71 | Title : translate | ||
| 72 | Usage : $protein_seq_obj = $dna_seq_obj->translate | ||
| 73 | #if full CDS expected: | ||
| 74 | $protein_seq_obj = $cds_seq_obj->translate(undef,undef,undef,undef,1); | ||
| 75 | Function: Translate with gaps, so that an amino acid is aligned with the last base of a codon, even if said codon | ||
| 76 | is interrupted by gaps. Generally this is only meaningful when input gaps are retained in the output; hence the sequence is suitable for alignment to a DNA sequence. Otherwise, see pod for FAST::Bio::PrimarySeqI | ||
| 77 | Example : "UUUC--CC -> "--F----P" | ||
| 78 | Returns : a protein sequence object | ||
| 79 | Args : none | ||
| 80 | |||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | sub translate{ | ||
| 87 | my ($self,@args) = @_; | ||
| 88 | |||
| 89 | $self->throw("hit translate in interface definition - error"); | ||
| 90 | |||
| 91 | } | ||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | 1; | ||
| 96 | |||
| 97 |