VCF/V3_3.pm

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