lib/Bio/Roary/ParseGFFAnnotationRole.pm

filter: Statementstmt 87.5% 14 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 85.0% 17 / 20 CC 1 SCAR 2.2
CC
1
Cov
88%
_build__awk_filter
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Bio/Roary/SequenceLengths.pm ↑ Summary lib/Bio/Roary/CommandLine/CreatePanGenome.pm »
1 package Bio::Roary::ParseGFFAnnotationRole;
2 20 $Bio::Roary::ParseGFFAnnotationRole::VERSION = '3.13.0';
3 # ABSTRACT: A role for parsing a gff file efficiently
4  
5 20 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 20 ▶use Bio::Tools::GFF;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 20 has 'gff_file' => ( is => 'ro', isa => 'Str', required => 1 );
9  
10 20 has '_tags_to_filter' => ( is => 'ro', isa => 'Str', default => 'CDS' );
11 20 has '_gff_parser' => ( is => 'ro', isa => 'Bio::Tools::GFF', lazy => 1, builder => '_build__gff_parser' );
12 20 has '_awk_filter' => ( is => 'ro', isa => 'Str', lazy => 1, builder => '_build__awk_filter' );
13  
14 110 ▶sub _gff_fh_input_string {
Subroutine _gff_fh_input_string: called CC=1 SCAR=0.0
15 110 my ($self) = @_;
16 110 return 'sed -n \'/##gff-version 3/,/^>/p\' '.$self->gff_file.'| grep -v \'^>\''." | " . $self->_awk_filter;
17 }
18  
19 0 ▶sub _build__awk_filter {
Subroutine _build__awk_filter: not called CC=1 SCAR=6.9
20 0 my ($self) = @_;
21 return
22 0 'awk \'BEGIN {FS="\t"};{ if ($3 ~/'
23 . $self->_tags_to_filter
24 . '/) print $9;}\' ';
25 }
26  
27 20 1;
28  
29 __END__
« lib/Bio/Roary/SequenceLengths.pm ↑ Summary lib/Bio/Roary/CommandLine/CreatePanGenome.pm »