line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::SFF::Header; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Bio::SFF::Header::VERSION = '0.007'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
10
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
7
|
1
|
|
|
1
|
|
569
|
use Sub::Name; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
81
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
28
|
use Scalar::Util qw/looks_like_number/; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
270
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
for my $attr (qw/magic version index_offset index_length number_of_reads header_length number_of_flows_per_read flowgram_format_code/) { |
12
|
|
|
|
|
|
|
has $attr => ( |
13
|
|
|
|
|
|
|
is => 'ro', |
14
|
|
|
|
|
|
|
required => 1, |
15
|
|
|
|
|
|
|
isa => sub { |
16
|
|
|
|
|
|
|
return looks_like_number($_[0]); |
17
|
|
|
|
|
|
|
}, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
for my $attr(qw/flow_chars key_sequences/) { |
22
|
|
|
|
|
|
|
has $attr => ( |
23
|
|
|
|
|
|
|
is => 'ro', |
24
|
|
|
|
|
|
|
required => 1, |
25
|
|
|
|
|
|
|
isa => sub { |
26
|
|
|
|
|
|
|
return defined && ref($_[0]) eq ''; |
27
|
|
|
|
|
|
|
}, |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
#ABSTRACT: An SFF header |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |