comparison variant_effect_predictor/Bio/EnsEMBL/Variation/IntergenicStructuralVariation.pm @ 0:1f6dce3d34e0

Uploaded
author mahtabm
date Thu, 11 Apr 2013 02:01:53 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1f6dce3d34e0
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::IntergenicStructuralVariation;
22
23 use strict;
24 use warnings;
25
26 use Bio::EnsEMBL::Variation::IntergenicStructuralVariationAllele;
27
28 use Bio::EnsEMBL::Utils::Exception qw(throw warning);
29
30 use base qw(Bio::EnsEMBL::Variation::StructuralVariationOverlap);
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::IntergenicStructuralVariationAllele' }
48 @{ $self->get_all_IntergenicStructuralVariationAlleles };
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_IntergenicStructuralVariationAllele {
60 my $self = shift;
61 return $self->SUPER::add_StructuralVariationOverlapAllele(@_);
62 }
63
64 sub get_reference_IntergenicStructuralVariationAllele {
65 my $self = shift;
66 return $self->SUPER::get_reference_StructuralVariationOverlapAllele(@_);
67 }
68
69 sub get_all_alternate_IntergenicStructuralVariationAlleles {
70 my $self = shift;
71 return $self->SUPER::get_all_alternate_StructuralVariationOverlapAlleles(@_);
72 }
73
74 sub get_all_IntergenicStructuralVariationAlleles {
75 my $self = shift;
76 return $self->SUPER::get_all_StructuralVariationOverlapAlleles(@_);
77 }
78
79 1;