lib/Bio/Roary/Output/EMBLHeaderCommon.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 92.5% 25 / 27 CC 2 SCAR 3.6
CC
2
Cov
91%
_annotation_type
2.1
BEGIN
1.0
_header_top
1.0
CRAP 1.4
« lib/Bio/Roary/Output/GroupsMultifastaProtein.pm ↑ Summary lib/Bio/Roary/ChunkFastaFile.pm »
1 package Bio::Roary::Output::EMBLHeaderCommon;
2 4 $Bio::Roary::Output::EMBLHeaderCommon::VERSION = '3.13.0';
3 # ABSTRACT: a role containing some common methods for embl header files
4  
5  
6 4 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶sub _header_top {
Subroutine _header_top: called CC=1 SCAR=0.0
9 3 my ($self) = @_;
10 3 my $header_lines = 'ID Genome standard; DNA; PRO; 1234 BP.' . "\n";
11 3 $header_lines .= 'XX' . "\n";
12 3 $header_lines .= 'FH Key Location/Qualifiers' . "\n";
13 3 $header_lines .= 'FH' . "\n";
14 3 return $header_lines;
15 }
16  
17 3 ▶sub _header_bottom {
Subroutine _header_bottom: called CC=1 SCAR=0.0
18 3 my ($self) = @_;
19 3 my $header_lines = 'XX' . "\n";
20 3 $header_lines .= 'SQ Sequence 1234 BP; 789 A; 1717 C; 1693 G; 691 T; 0 other;' . "\n";
21 3 $header_lines .= '//' . "\n";
22 3 return $header_lines;
23 }
24  
25 8 ▶sub _annotation_type {
Subroutine _annotation_type: called CC=2 SCAR=7.4
26 8 my ( $self, $annotated_group_name ) = @_;
27 8 my $annotation_type = " feature ";
28 8 ▶ if ( $annotated_group_name =~ /group_/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($annotated_group_name =~ /group_/) 0 8 8
29 0 $annotation_type = " misc_feature ";
30 }
31 8 return $annotation_type;
32 }
33  
34  
35 4 1;
36  
37 __END__
« lib/Bio/Roary/Output/GroupsMultifastaProtein.pm ↑ Summary lib/Bio/Roary/ChunkFastaFile.pm »