VCF/V3_2.pm

filter: Statementstmt 20.0% 4 / 20 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 33.3% 1 / 3 Podpod 100% 2 / 2 totaltotal 20.0% 7 / 35 CC 5 SCAR 23.4
CC
5
Cov
15%
new
12.0
new
12.0
BEGIN
1.0
CRAP 10.4
« VCF.pm ↑ Summary VCF/V3_3.pm »
1 #------------------------------------------------
2 # Version 3.2 specific functions
3  
4 package VCF::V3_2;
5 1 $VCF::V3_2::VERSION = '1.003';
6 1 ▶use base qw(VCF::Reader);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub new
9 0 ▶{
Subroutine new: not called CC=3 SCAR=24.8
Pod documented
10 0 ▶ my ($class,@args) = @_;
Subroutine new: not called CC=3 SCAR=24.8
Pod documented
11 0 my $self = $class->SUPER::new(@args);
12 0 ▶ bless $self, ref($class) || $class;
Condition0%0/6
ref $class || $class
l!l&&r!l&&!r
000
ref $class || $class
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $class || $class
ref $class $class
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table0%0/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
Truth table0%0/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
13  
14 $$self{_defaults} =
15 {
16 0 version => '3.2',
17 drop_trailings => 1,
18 filter_passed => 0,
19  
20 defaults =>
21 {
22 QUAL => '-1',
23 default => '.',
24 Flag => undef,
25 GT => '.',
26 },
27  
28 handlers =>
29 {
30 Integer => \&VCF::Reader::validate_int,
31 Float => \&VCF::Reader::validate_float,
32 Character => \&VCF::Reader::validate_char,
33 String => undef,
34 Flag => undef,
35 },
36  
37 regex_snp => qr/^[ACGTN]$/i,
38 regex_ins => qr/^I[ACGTN]+$/,
39 regex_del => qr/^D\d+$/,
40 regex_gtsep => qr{[\\|/]},
41 regex_gt => qr{^(\.|\d+)([\\|/]?)(\.?|\d*)$},
42 regex_gt2 => qr{^(\.|[0-9ACGTNIDacgtn]+)([\\|/]?)},
43 };
44  
45 0 for my $key (keys %{$$self{_defaults}})
46 {
47 0 $$self{$key}=$$self{_defaults}{$key};
48 }
49  
50  
51 0 return $self;
52 }
« VCF.pm ↑ Summary VCF/V3_3.pm »