VCF/V3_3.pm

filter: Statementstmt 38.4% 5 / 13 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 33.3% 7 / 21 CC 3 SCAR 22.2
CC
3
Cov
31%
new
12.0
BEGIN
1.0
CRAP 9.2
« 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.0';
6 1 ▶use base qw(VCF::Reader);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub new
9 {
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/3
ref $class || $class
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table0%0/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 »