line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Sandy::BGZF; |
2
|
|
|
|
|
|
|
# ABSTRACT: Wrapper around Compress::BGZF::Writer in order |
3
|
|
|
|
|
|
|
# to enable compression-level option |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
47
|
use App::Sandy::Base 'class'; |
|
6
|
|
|
|
|
21
|
|
|
6
|
|
|
|
|
43
|
|
6
|
6
|
|
|
6
|
|
3930
|
use Compress::BGZF::Writer; |
|
6
|
|
|
|
|
45822
|
|
|
6
|
|
|
|
|
1051
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.24'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub TIEHANDLE { |
11
|
0
|
|
|
0
|
|
|
my ($class, $file, $level) = @_; |
12
|
0
|
|
|
|
|
|
my $writer = Compress::BGZF::Writer->new($file); |
13
|
0
|
|
|
|
|
|
$writer->set_level($level); |
14
|
0
|
|
|
|
|
|
return $writer; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub new_filehandle { |
18
|
0
|
|
|
0
|
0
|
|
my ($class, $file, $level) = @_; |
19
|
0
|
|
|
|
|
|
open my $fh, "<", undef; |
20
|
0
|
0
|
|
|
|
|
tie *$fh, $class, $file, $level |
21
|
|
|
|
|
|
|
or croak "Failed to tie filehandle: $!"; |
22
|
0
|
|
|
|
|
|
return $fh; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
App::Sandy::BGZF - Wrapper around Compress::BGZF::Writer in order |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 0.24 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 AUTHORS |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=over 4 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item * |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Thiago L. A. Miller <tmiller@mochsl.org.br> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item * |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
J. Leonel Buzzo <lbuzzo@mochsl.org.br> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item * |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Felipe R. C. dos Santos <fsantos@mochsl.org.br> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item * |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Helena B. Conceição <hconceicao@mochsl.org.br> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item * |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Rodrigo Barreiro <rbarreiro@mochsl.org.br> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item * |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Gabriela Guardia <gguardia@mochsl.org.br> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Fernanda Orpinelli <forpinelli@mochsl.org.br> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Rafael Mercuri <rmercuri@mochsl.org.br> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item * |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Rodrigo Barreiro <rbarreiro@mochsl.org.br> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Pedro A. F. Galante <pgalante@mochsl.org.br> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=back |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This software is Copyright (c) 2023 by Teaching and Research Institute from Sírio-Libanês Hospital. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This is free software, licensed under: |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=cut |