line |
bran |
sub |
pod |
code |
1
|
|
|
|
package Sanger::CGP::Vcf::VcfProcessLog; |
2
|
|
|
|
|
3
|
|
|
|
##########LICENCE########## |
4
|
|
|
|
# Copyright (c) 2014,2015 Genome Research Ltd. |
5
|
|
|
|
# |
6
|
|
|
|
# Author: Jon Hinton <cgpit@sanger.ac.uk> |
7
|
|
|
|
# |
8
|
|
|
|
# This file is part of cgpVcf. |
9
|
|
|
|
# |
10
|
|
|
|
# cgpVcf is free software: you can redistribute it and/or modify it under |
11
|
|
|
|
# the terms of the GNU Affero General Public License as published by the Free |
12
|
|
|
|
# Software Foundation; either version 3 of the License, or (at your option) any |
13
|
|
|
|
# later version. |
14
|
|
|
|
# |
15
|
|
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT |
16
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
17
|
|
|
|
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more |
18
|
|
|
|
# details. |
19
|
|
|
|
# |
20
|
|
|
|
# You should have received a copy of the GNU Affero General Public License |
21
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
22
|
|
|
|
# |
23
|
|
|
|
# 1. The usage of a range of years within a copyright statement contained within |
24
|
|
|
|
# this distribution should be interpreted as being equivalent to a list of years |
25
|
|
|
|
# including the first and last year specified and all consecutive years between |
26
|
|
|
|
# them. For example, a copyright statement that reads âCopyright (c) 2005, 2007- |
27
|
|
|
|
# 2009, 2011-2012â should be interpreted as being identical to a statement that |
28
|
|
|
|
# reads âCopyright (c) 2005, 2007, 2008, 2009, 2011, 2012â and a copyright |
29
|
|
|
|
# statement that reads âCopyright (c) 2005-2012â should be interpreted as being |
30
|
|
|
|
# identical to a statement that reads âCopyright (c) 2005, 2006, 2007, 2008, |
31
|
|
|
|
# 2009, 2010, 2011, 2012â." |
32
|
|
|
|
########## LICENCE ########## |
33
|
|
|
|
|
34
|
|
|
|
|
35
|
|
3
|
|
use Sanger::CGP::Vcf; |
36
|
|
|
|
our $VERSION = Sanger::CGP::Vcf->VERSION; |
37
|
|
|
|
|
38
|
|
3
|
|
use strict; |
39
|
|
3
|
|
use warnings FATAL => 'all'; |
40
|
|
|
|
|
41
|
|
|
|
1; |
42
|
|
|
|
|
43
|
|
|
|
sub new{ |
44
|
|
4
|
0
|
my $proto = shift; |
45
|
|
|
|
my (%args) = @_; |
46
|
|
|
|
my $class = ref($proto) || $proto; |
47
|
|
|
|
|
48
|
|
|
|
my $self = { |
49
|
|
|
|
_input_vcf => $args{'-input_vcf'}, |
50
|
|
|
|
_input_vcf_source => $args{'-input_vcf_source'}, |
51
|
|
|
|
_input_vcf_ver => $args{'-input_vcf_ver'}, |
52
|
|
|
|
_input_vcf_params => $args{'-input_vcf_params'}, |
53
|
|
|
|
}; |
54
|
|
|
|
bless $self, $class; |
55
|
|
|
|
return $self; |
56
|
|
|
|
} |
57
|
|
|
|
|
58
|
|
|
|
sub input_vcf{ |
59
|
|
3
|
0
|
my($self,$value) = @_; |
60
|
50
|
|
|
$self->{_input_vcf} = $value if defined $value; |
61
|
|
|
|
return $self->{_input_vcf}; |
62
|
|
|
|
} |
63
|
|
|
|
|
64
|
|
|
|
sub input_vcf_source{ |
65
|
|
6
|
0
|
my($self,$value) = @_; |
66
|
50
|
|
|
$self->{_input_vcf_source} = $value if defined $value; |
67
|
|
|
|
return $self->{_input_vcf_source}; |
68
|
|
|
|
} |
69
|
|
|
|
|
70
|
|
|
|
sub input_vcf_ver{ |
71
|
|
6
|
0
|
my($self,$value) = @_; |
72
|
50
|
|
|
$self->{_input_vcf_ver} = $value if defined $value; |
73
|
|
|
|
return $self->{_input_vcf_ver}; |
74
|
|
|
|
} |
75
|
|
|
|
|
76
|
|
|
|
sub input_vcf_params{ |
77
|
|
4
|
0
|
my($self,$value) = @_; |
78
|
50
|
|
|
$self->{_input_vcf_params} = $value if defined $value; |
79
|
|
|
|
return $self->{_input_vcf_params}; |
80
|
|
|
|
} |