| 1 | =head1 LICENSE | ||
| 2 | |||
| 3 | See the NOTICE file distributed with this work for additional information | ||
| 4 | regarding copyright ownership. | ||
| 5 | |||
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 7 | you may not use this file except in compliance with the License. | ||
| 8 | You may obtain a copy of the License at | ||
| 9 | |||
| 10 | http://www.apache.org/licenses/LICENSE-2.0 | ||
| 11 | |||
| 12 | Unless required by applicable law or agreed to in writing, software | ||
| 13 | distributed under the License is distributed on an "AS IS" BASIS, | ||
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 15 | See the License for the specific language governing permissions and | ||
| 16 | limitations under the License. | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | |||
| 21 | =head1 CONTACT | ||
| 22 | |||
| 23 | Please email comments or questions to the public Ensembl | ||
| 24 | developers list at <http://lists.ensembl.org/mailman/listinfo/dev>. | ||
| 25 | |||
| 26 | Questions may also be sent to the Ensembl help desk at | ||
| 27 | <http://www.ensembl.org/Help/Contact>. | ||
| 28 | |||
| 29 | =cut | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | Bio::EnsEMBL::DnaPepAlignFeature - Ensembl specific dna-pep pairwise | ||
| 34 | alignment feature | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | See BaseAlignFeature | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | |||
| 43 | package Bio::EnsEMBL::DnaPepAlignFeature; | ||
| 44 | $Bio::EnsEMBL::DnaPepAlignFeature::VERSION = '114.0.0_50'; # TRIAL | ||
| 45 | $Bio::EnsEMBL::DnaPepAlignFeature::VERSION = '114.0.050'; | ||
| 46 | use strict; | ||
| 47 | |||
| 48 | use Bio::EnsEMBL::BaseAlignFeature; | ||
| 49 | use Scalar::Util qw(weaken isweak); | ||
| 50 | |||
| 51 | use vars qw(@ISA); | ||
| 52 | |||
| 53 | @ISA = qw( Bio::EnsEMBL::BaseAlignFeature ); | ||
| 54 | |||
| 55 | use constant SEQUENCE_ONTOLOGY => { | ||
| 56 | acc => 'SO:0000349', | ||
| 57 | term => 'protein_match', | ||
| 58 | }; | ||
| 59 | |||
| 60 | =head2 _hit_unit | ||
| 61 | |||
| 62 | Arg [1] : none | ||
| 63 | Description: PRIVATE implementation of abstract superclass method. Returns | ||
| 64 | 1 as the 'unit' used for the hit sequence. | ||
| 65 | Returntype : int | ||
| 66 | Exceptions : none | ||
| 67 | Caller : Bio::EnsEMBL::BaseAlignFeature | ||
| 68 | Status : Stable | ||
| 69 | |||
| 70 | |||
| 71 | =cut | ||
| 72 | |||
| 73 | sub _hit_unit { | ||
| 74 | return 1; | ||
| 75 | } | ||
| 76 | |||
| 77 | |||
| 78 | =head2 _query_unit | ||
| 79 | |||
| 80 | Arg [1] : none | ||
| 81 | Description: PRIVATE implementation of abstract superclass method. Returns | ||
| 82 | 3 as the 'unit' used for the query sequence. | ||
| 83 | Returntype : int | ||
| 84 | Exceptions : none | ||
| 85 | Caller : Bio::EnsEMBL::BaseAlignFeature | ||
| 86 | Status : Stable | ||
| 87 | |||
| 88 | |||
| 89 | =cut | ||
| 90 | |||
| 91 | sub _query_unit { | ||
| 92 | return 3; | ||
| 93 | } | ||
| 94 | |||
| 95 | |||
| 96 | 1; |