Mercurial > repos > willmclaren > ensembl_vep
comparison variant_effect_predictor/Bio/EnsEMBL/Variation/TranscriptStructuralVariationAllele.pm @ 0:21066c0abaf5 draft
Uploaded
author | willmclaren |
---|---|
date | Fri, 03 Aug 2012 10:04:48 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:21066c0abaf5 |
---|---|
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 =head1 NAME | |
22 | |
23 Bio::EnsEMBL::Variation::TranscriptStructuralVariationAllele | |
24 | |
25 =head1 SYNOPSIS | |
26 | |
27 use Bio::EnsEMBL::Variation::TranscriptStructuralVariationAllele; | |
28 | |
29 =head1 DESCRIPTION | |
30 | |
31 A TranscriptStructuralVariationAllele object represents a single allele of a | |
32 TranscriptStructuralVariation. | |
33 | |
34 =cut | |
35 | |
36 package Bio::EnsEMBL::Variation::TranscriptStructuralVariationAllele; | |
37 | |
38 use strict; | |
39 use warnings; | |
40 | |
41 use base qw(Bio::EnsEMBL::Variation::StructuralVariationOverlapAllele Bio::EnsEMBL::Variation::BaseTranscriptVariationAllele); | |
42 | |
43 sub new_fast { | |
44 my ($class, $hashref) = @_; | |
45 | |
46 # swap a transcript_structural_variation argument for a structural_variation_overlap one | |
47 | |
48 if ($hashref->{transcript_structural_variation}) { | |
49 $hashref->{structural_variation_overlap} = delete $hashref->{transcript_structural_variation}; | |
50 } | |
51 | |
52 # and call the superclass | |
53 | |
54 return $class->SUPER::new_fast($hashref); | |
55 } | |
56 | |
57 =head2 transcript_structural_variation | |
58 | |
59 Description: Get the associated TranscriptStructuralVariation | |
60 Returntype : Bio::EnsEMBL::Variation::TranscriptStructuralVariation | |
61 Exceptions : none | |
62 Status : At Risk | |
63 | |
64 =cut | |
65 | |
66 sub transcript_structural_variation { | |
67 my ($self, $svo) = @_; | |
68 if ($svo) { | |
69 assert_ref($svo, 'Bio::EnsEMBL::Variation::TranscriptStructuralVariation'); | |
70 } | |
71 return $self->base_variation_feature_overlap($svo); | |
72 } | |
73 | |
74 | |
75 1; | |
76 |