0
|
1 =head1 LICENSE
|
|
2
|
|
3 Copyright (c) 1999-2012 The European Bioinformatics Institute and
|
|
4 Genome Research Limited. All rights reserved.
|
|
5
|
|
6 This software is distributed under a modified Apache license.
|
|
7 For license details, please see
|
|
8
|
|
9 http://www.ensembl.org/info/about/code_licence.html
|
|
10
|
|
11 =head1 CONTACT
|
|
12
|
|
13 Please email comments or questions to the public Ensembl
|
|
14 developers list at <dev@ensembl.org>.
|
|
15
|
|
16 Questions may also be sent to the Ensembl help desk at
|
|
17 <helpdesk@ensembl.org>.
|
|
18
|
|
19 =cut
|
|
20
|
|
21 package Bio::EnsEMBL::Variation::IntergenicVariation;
|
|
22
|
|
23 use strict;
|
|
24 use warnings;
|
|
25
|
|
26 use Bio::EnsEMBL::Variation::IntergenicVariationAllele;
|
|
27
|
|
28 use Bio::EnsEMBL::Utils::Exception qw(throw warning);
|
|
29
|
|
30 use base qw(Bio::EnsEMBL::Variation::VariationFeatureOverlap);
|
|
31
|
|
32 sub new {
|
|
33 my $class = shift;
|
|
34
|
|
35 my %args = @_;
|
|
36
|
|
37 for my $arg (keys %args) {
|
|
38 if (lc($arg) eq '-feature') {
|
|
39 throw("Intergenic variations do not have an associated feature!");
|
|
40 }
|
|
41 }
|
|
42
|
|
43 # call the superclass constructor
|
|
44 my $self = $class->SUPER::new(%args) || return undef;
|
|
45
|
|
46 # rebless the alleles from vfoas to ivas
|
|
47 map { bless $_, 'Bio::EnsEMBL::Variation::IntergenicVariationAllele' }
|
|
48 @{ $self->get_all_IntergenicVariationAlleles };
|
|
49
|
|
50 return $self;
|
|
51 }
|
|
52
|
|
53 sub feature {
|
|
54 my $self = shift;
|
|
55 warning("Intergenic variants do not have an associated feature!") if @_;
|
|
56 return undef;
|
|
57 }
|
|
58
|
|
59 sub add_IntergenicVariationAllele {
|
|
60 my $self = shift;
|
|
61 return $self->SUPER::add_VariationFeatureOverlapAllele(@_);
|
|
62 }
|
|
63
|
|
64 sub get_reference_IntergenicVariationAllele {
|
|
65 my $self = shift;
|
|
66 return $self->SUPER::get_reference_VariationFeatureOverlapAllele(@_);
|
|
67 }
|
|
68
|
|
69 sub get_all_alternate_IntergenicVariationAlleles {
|
|
70 my $self = shift;
|
|
71 return $self->SUPER::get_all_alternate_VariationFeatureOverlapAlleles(@_);
|
|
72 }
|
|
73
|
|
74 sub get_all_IntergenicVariationAlleles {
|
|
75 my $self = shift;
|
|
76 return $self->SUPER::get_all_VariationFeatureOverlapAlleles(@_);
|
|
77 }
|
|
78
|
|
79 1;
|