Mercurial > repos > mahtabm > ensembl
comparison variant_effect_predictor/Bio/EnsEMBL/Variation/RegulatoryFeatureVariationAllele.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::RegulatoryFeatureVariationAllele; | |
22 | |
23 use strict; | |
24 use warnings; | |
25 | |
26 use base qw(Bio::EnsEMBL::Variation::VariationFeatureOverlapAllele); | |
27 | |
28 sub new_fast { | |
29 my ($self, $hashref) = @_; | |
30 | |
31 # swap a regulatory_variation argument for a variation_feature_overlap one | |
32 | |
33 if ($hashref->{regulatory_feature_variation}) { | |
34 $hashref->{variation_feature_overlap} = delete $hashref->{regulatory_feature_variation}; | |
35 } | |
36 | |
37 # and call the superclass | |
38 | |
39 return $self->SUPER::new_fast($hashref); | |
40 } | |
41 | |
42 sub regulatory_feature_variation { | |
43 my $self = shift; | |
44 return $self->variation_feature_overlap(@_); | |
45 } | |
46 | |
47 sub regulatory_feature { | |
48 my $self = shift; | |
49 return $self->regulatory_feature_variation->regulatory_feature; | |
50 } | |
51 | |
52 1; |