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 # Ensembl module for Bio::EnsEMBL::Variation::SupportingStructuralVariation
|
|
22 #
|
|
23 # Copyright (c) 2011 Ensembl
|
|
24 #
|
|
25
|
|
26
|
|
27 =head1 NAME
|
|
28
|
|
29 Bio::EnsEMBL::Variation::SupportingStructuralVariation - A supporting evidence for a structural variation.
|
|
30
|
|
31 =head1 SYNOPSIS
|
|
32
|
|
33 # Supporting evidence of a structural variation
|
|
34 $ssv = Bio::EnsEMBL::Variation::SupportingStructuralVariation->new
|
|
35 (-supporting_structural_evidence => 'ssv001'
|
|
36 -structural_variation => $structural_variation);
|
|
37
|
|
38 ...
|
|
39
|
|
40
|
|
41 =head1 DESCRIPTION
|
|
42
|
|
43 This is a class representing the supporting evidence of a structural variation
|
|
44 from the ensembl-variation database.
|
|
45
|
|
46 =head1 METHODS
|
|
47
|
|
48 =cut
|
|
49
|
|
50 use strict;
|
|
51 use warnings;
|
|
52
|
|
53 package Bio::EnsEMBL::Variation::SupportingStructuralVariation;
|
|
54
|
|
55 use Bio::EnsEMBL::Variation::BaseStructuralVariation;
|
|
56 use Bio::EnsEMBL::Utils::Exception qw(throw warning);
|
|
57
|
|
58 our @ISA = ('Bio::EnsEMBL::Variation::BaseStructuralVariation');
|
|
59
|
|
60
|
|
61 sub new {
|
|
62 my $caller = shift;
|
|
63 my $class = ref($caller) || $caller;
|
|
64
|
|
65 my $self = Bio::EnsEMBL::Variation::BaseStructuralVariation->new(@_);
|
|
66 return(bless($self, $class));
|
|
67 }
|
|
68
|
|
69
|
|
70 =head2 get_all_StructuralVariations
|
|
71 Example : $ssv = $obj->get_all_StructuralVariations()
|
|
72 Description: Getter of the structural variations supported by the supporting evidence.
|
|
73 Returntype : reference to list of Bio::EnsEMBL::Variation::StructuralVariation objects
|
|
74 Exceptions : none
|
|
75 Caller : general
|
|
76 Status : At Risk
|
|
77
|
|
78 =cut
|
|
79
|
|
80 sub get_all_StructuralVariations {
|
|
81 my $self = shift;
|
|
82
|
|
83 if(defined $self->{'adaptor'}) {
|
|
84 my $sva = $self->{'adaptor'}->db()->get_StructuralVariationAdaptor();
|
|
85 return $sva->fetch_all_by_supporting_evidence($self);
|
|
86 }
|
|
87 else {
|
|
88 warn("No variation database attached");
|
|
89 return [];
|
|
90 }
|
|
91 }
|
|
92
|
|
93 1;
|
|
94
|