| 1 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | # BioPerl module for Bio::SearchIO::hmmer3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | # Please direct questions and support issues to <bioperl-l@bioperl.org> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | # Cared for by Thomas Sharpton <thomas.sharpton@gmail.com> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | # Copyright Thomas Sharpton | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | # You may distribute this module under the same terms as perl itself | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | # POD documentation - main docs before the code | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | Bio::SearchIO::hmmer3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | use Bio::SearchIO; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | my $searchio = Bio::SearchIO->new( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | -format => 'hmmer', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | -version => 3, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | -file => 'hmmsearch.out' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | my $result = $searchio->next_result; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | my $hit = $result->next_hit; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | print $hit->name, $hit->description, $hit->significance, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | $hit->score, "\n"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | my $hsp = $hit->next_hsp; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | print $hsp->start('hit'), $hsp->end('hit'), $hsp->start('query'), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | $hsp->end('query'), "\n"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | Code to parse output from hmmsearch, hmmscan, phmmer and nhmmer, compatible with | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | both version 2 and version 3 of the HMMER package from L<http://hmmer.org>. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | =head1 FEEDBACK | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | =head2 Mailing Lists | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | User feedback is an integral part of the evolution of this and other | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | Bioperl modules. Send your comments and suggestions preferably to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | the Bioperl mailing list. Your participation is much appreciated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | bioperl-l@bioperl.org - General discussion | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | http://bioperl.org/wiki/Mailing_lists - About the mailing lists | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | =head2 Support | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | Please direct usage questions or support issues to the mailing list: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | L<bioperl-l@bioperl.org> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | rather than to the module maintainer directly. Many experienced and | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | reponsive experts will be able look at the problem and quickly | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | address it. Please include a thorough description of the problem | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | with code and data examples if at all possible. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | =head2 Reporting Bugs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | Report bugs to the Bioperl bug tracking system to help us keep track | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | of the bugs and their resolution. Bug reports can be submitted via | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | the web: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | https://github.com/bioperl/bioperl-live/issues | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | =head1 AUTHOR - Thomas Sharpton | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | Email thomas.sharpton@gmail.com | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | Describe contact details here | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | =head1 CONTRIBUTORS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | Additional contributors names and emails here | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | briano at bioteam.net | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | =head1 APPENDIX | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | The rest of the documentation details each of the object methods. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | Internal methods are usually preceded with a _ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | # Let the code begin... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | package Bio::SearchIO::hmmer3; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | 2 | $Bio::SearchIO::hmmer3::VERSION = '1.7.3'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | 2 | ▶ | use Data::Dumper; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | 2 | ▶ | use Bio::Factory::ObjectFactory; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | 2 | ▶ | use Bio::Tools::IUPAC; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | 2 | ▶ | use vars qw(%MAPPING %MODEMAP); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | 2 | ▶ | use base qw(Bio::SearchIO::hmmer); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | 2 | ▶ | BEGIN { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | # mapping of HMMER items to Bioperl hash keys | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | 2 | %MODEMAP = ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | 'HMMER_Output' => 'result', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | 'Hit' => 'hit', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | 'Hsp' => 'hsp' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | 2 | %MAPPING = ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | 'Hsp_bit-score' => 'HSP-bits', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | 'Hsp_score' => 'HSP-score', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | 'Hsp_evalue' => 'HSP-evalue', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | 'Hsp_query-from' => 'HSP-query_start', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | 'Hsp_query-to' => 'HSP-query_end', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | 'Hsp_query-strand' => 'HSP-query_strand', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | 'Hsp_hit-from' => 'HSP-hit_start', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | 'Hsp_hit-to' => 'HSP-hit_end', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | 'Hsp_hit-strand' => 'HSP-hit_strand', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | 'Hsp_positive' => 'HSP-conserved', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | 'Hsp_identity' => 'HSP-identical', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | 'Hsp_gaps' => 'HSP-hsp_gaps', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | 'Hsp_hitgaps' => 'HSP-hit_gaps', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | 'Hsp_querygaps' => 'HSP-query_gaps', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | 'Hsp_qseq' => 'HSP-query_seq', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | 'Hsp_csline' => 'HSP-cs_seq', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | 'Hsp_hseq' => 'HSP-hit_seq', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | 'Hsp_midline' => 'HSP-homology_seq', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | 'Hsp_pline' => 'HSP-pp_seq', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | 'Hsp_align-len' => 'HSP-hsp_length', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | 'Hsp_query-frame' => 'HSP-query_frame', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | 'Hsp_hit-frame' => 'HSP-hit_frame', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | 'Hit_id' => 'HIT-name', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | 'Hit_len' => 'HIT-length', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | 'Hit_accession' => 'HIT-accession', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | 'Hit_desc' => 'HIT-description', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | 'Hit_signif' => 'HIT-significance', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | 'Hit_score' => 'HIT-score', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | 'HMMER_program' => 'RESULT-algorithm_name', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | 'HMMER_version' => 'RESULT-algorithm_version', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | 'HMMER_query-def' => 'RESULT-query_name', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | 'HMMER_query-len' => 'RESULT-query_length', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | 'HMMER_query-acc' => 'RESULT-query_accession', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | 'HMMER_querydesc' => 'RESULT-query_description', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | 'HMMER_hmm' => 'RESULT-hmm_name', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | 'HMMER_seqfile' => 'RESULT-sequence_file', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | 'HMMER_db' => 'RESULT-database_name', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | =head2 next_result | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | Title : next_result | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | Usage : my $hit = $searchio->next_result; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | Function: Returns the next Result from a search | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | Returns : Bio::Search::Result::ResultI object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | Args : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | 25 | ▶ | sub next_result { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
next_result: called CC=129 SCAR=50.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | 25 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | 25 | my ( $buffer, $last, @hit_list, @hsp_list, %hspinfo, %hitinfo, %domaincounter ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | 25 | local $/ = "\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | 25 | my @ambiguous_nt = keys %Bio::Tools::IUPAC::IUB; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | 25 | my $ambiguous_nt = join '', @ambiguous_nt; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | 25 | my $verbose = $self->verbose; # cache for speed? JES's idea in hmmer.pm | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | 25 | $self->start_document(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | # This is here to ensure that next_result doesn't produce infinite loop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | 25 | ▶ | if ( !defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | 5 | return undef; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | 20 | $self->_pushback($buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | 20 | my $hit_counter = 0; # helper variable for non-unique hit IDs | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | # Regex goes here for HMMER3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | # Start with hmmsearch processing | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | 20 | ▶ | while ( defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | 245 | my $lineorig = $buffer; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | 245 | chomp $buffer; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | # Grab the program name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | 245 | ▶ | if ( $buffer =~ m/^\#\s(\S+)\s\:\:\s/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 9 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | 14 | my $prog = $1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | # TO DO: customize the above regex to adapt to other | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | # program types (hmmscan, etc) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | 14 | $self->start_element( { 'Name' => 'HMMER_Output' } ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | 14 | $self->{'_result_count'}++; #Might need to move to another block | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | 14 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | { 'Name' => 'HMMER_program', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | 'Data' => uc($prog) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | # Get the HMMER package version and release date | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | elsif ( $buffer =~ m/^\#\sHMMER\s+(\S+)\s+\((.+)\)/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | 14 | my $version = $1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | 14 | my $versiondate = $2; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | 14 | $self->{'_hmmidline'} = $buffer; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | 14 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | { 'Name' => 'HMMER_version', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | 'Data' => $version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | # Get the query info | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | elsif ( $buffer =~ /^\#\squery (?:\w+ )?file\:\s+(\S+)/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | 14 | ▶ | if ( $self->{'_reporttype'} eq 'HMMSEARCH' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition100%6/6
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER" or $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER"
MC/DC100%3/3
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER" or $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH"
$self->{"_reporttype"} eq "PHMMER"
$self->{"_reporttype"} eq "NHMMER"
Truth table100%4/4
A or B or C
A= $self->{"_reporttype"} eq "HMMSEARCH"B= $self->{"_reporttype"} eq "PHMMER"C= $self->{"_reporttype"} eq "NHMMER"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | || $self->{'_reporttype'} eq 'PHMMER' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | || $self->{'_reporttype'} eq 'NHMMER' ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | 7 | $self->{'_hmmfileline'} = $lineorig; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | 7 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | { 'Name' => 'HMMER_hmm', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | 'Data' => $1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | elsif ( $self->{'_reporttype'} eq 'HMMSCAN' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | 7 | $self->{'_hmmseqline'} = $lineorig; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | 7 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | { 'Name' => 'HMMER_seqfile', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | 'Data' => $1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | # If this is a report without alignments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | elsif ( $buffer =~ m/^\#\sshow\salignments\sin\soutput/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | 0 | $self->{'_alnreport'} = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | # Get the database info | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | elsif ( $buffer =~ m/^\#\starget\s\S+\sdatabase\:\s+(\S+)/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | 14 | ▶ | if ( $self->{'_reporttype'} eq 'HMMSEARCH' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition100%6/6
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER" or $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER"
MC/DC100%3/3
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER" or $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH"
$self->{"_reporttype"} eq "PHMMER"
$self->{"_reporttype"} eq "NHMMER"
Truth table100%4/4
A or B or C
A= $self->{"_reporttype"} eq "HMMSEARCH"B= $self->{"_reporttype"} eq "PHMMER"C= $self->{"_reporttype"} eq "NHMMER"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | || $self->{'_reporttype'} eq 'PHMMER' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | || $self->{'_reporttype'} eq 'NHMMER' ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | 7 | $self->{'_hmmseqline'} = $lineorig; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | 7 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | { 'Name' => 'HMMER_seqfile', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | 'Data' => $1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | elsif ( $self->{'_reporttype'} eq 'HMMSCAN' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | 7 | $self->{'_hmmfileline'} = $lineorig; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | 7 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | { 'Name' => 'HMMER_hmm', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | 'Data' => $1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | # Get query data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | elsif ( $buffer =~ s/^Query:\s+// ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | # For multi-query reports | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | 20 | ▶ | if ( ( not exists $self->{_values}->{"RESULT-algorithm_name"} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
not exists $self->{"_values"}{"RESULT-algorithm_name"} && exists $self->{"_values"}{"RESULT-algorithm_version"} and exists $self->{"_hmmidline"}
exists $self->{'_values'}{'RESULT-algorithm_name'} && exists $self->{'_values'}{'RESULT-algorithm_version'}
MC/DC33%1/3
not exists $self->{"_values"}{"RESULT-algorithm_name"} && exists $self->{"_values"}{"RESULT-algorithm_version"} and exists $self->{"_hmmidline"}
exists $self->{'_values'}{'RESULT-algorithm_name'}
exists $self->{'_values'}{'RESULT-algorithm_version'}
exists $self->{"_hmmidline"}
Truth table40%2/5
not(A && B) and C
A= exists $self->{'_values'}{'RESULT-algorithm_name'}B= exists $self->{'_values'}{'RESULT-algorithm_version'}C= exists $self->{"_hmmidline"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | or not exists $self->{_values}->{"RESULT-algorithm_version"} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | and exists $self->{_hmmidline} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | 6 | my ($version, $versiondate) = $self->{_hmmidline} =~ m/^\#\sHMMER\s+(\S+)\s+\((.+)\)/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | $self->element( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | { 'Name' => 'HMMER_program', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | 'Data' => $self->{_reporttype} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | 6 | ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | 6 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | { 'Name' => 'HMMER_version', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | 'Data' => $version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | 20 | ▶ | if ( ( not exists $self->{_values}->{"RESULT-hmm_name"} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition55%5/9
not exists $self->{"_values"}{"RESULT-hmm_name"} && exists $self->{"_values"}{"RESULT-sequence_file"} and exists $self->{"_hmmfileline"} || exists $self->{"_hmmseqline"}
exists $self->{'_values'}{'RESULT-hmm_name'} && exists $self->{'_values'}{'RESULT-sequence_file'}
exists $self->{"_hmmfileline"} or exists $self->{"_hmmseqline"}
MC/DC25%1/4
not exists $self->{"_values"}{"RESULT-hmm_name"} && exists $self->{"_values"}{"RESULT-sequence_file"} and exists $self->{"_hmmfileline"} || exists $self->{"_hmmseqline"}
exists $self->{'_values'}{'RESULT-hmm_name'}
exists $self->{'_values'}{'RESULT-sequence_file'}
exists $self->{"_hmmfileline"}
exists $self->{"_hmmseqline"}
Truth table28%2/7
not(A && B) and C or D
A= exists $self->{'_values'}{'RESULT-hmm_name'}B= exists $self->{'_values'}{'RESULT-sequence_file'}C= exists $self->{"_hmmfileline"}D= exists $self->{"_hmmseqline"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | or not exists $self->{_values}->{"RESULT-sequence_file"} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | and ( exists $self->{_hmmfileline} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | or exists $self->{_hmmseqline} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 297 | 6 | ▶ | if ( $self->{'_reporttype'} eq 'HMMSEARCH' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition66%4/6
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER" or $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER"
MC/DC33%1/3
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER" or $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH"
$self->{"_reporttype"} eq "PHMMER"
$self->{"_reporttype"} eq "NHMMER"
Truth table50%2/4
A or B or C
A= $self->{"_reporttype"} eq "HMMSEARCH"B= $self->{"_reporttype"} eq "PHMMER"C= $self->{"_reporttype"} eq "NHMMER"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 298 | or $self->{'_reporttype'} eq 'PHMMER' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 299 | or $self->{'_reporttype'} eq 'NHMMER' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 300 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 301 | 4 | my ($qry_file) = $self->{_hmmfileline} =~ m/^\#\squery (?:\w+ )?file\:\s+(\S+)/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 302 | 4 | my ($target_file) = $self->{_hmmseqline} =~ m/^\#\starget\s\S+\sdatabase\:\s+(\S+)/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 303 | 4 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 304 | { 'Name' => 'HMMER_hmm', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 305 | 'Data' => $qry_file | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 306 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 307 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 308 | 4 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 309 | { 'Name' => 'HMMER_seqfile', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 310 | 'Data' => $target_file | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 311 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 312 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 313 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 314 | elsif ( $self->{'_reporttype'} eq 'HMMSCAN' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 315 | 2 | my ($qry_file) = $self->{_hmmseqline} =~ m/^\#\squery \w+ file\:\s+(\S+)/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 316 | 2 | my ($target_file) = $self->{_hmmfileline} =~ m/^\#\starget\s\S+\sdatabase\:\s+(\S+)/; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 317 | 2 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 318 | { 'Name' => 'HMMER_seqfile', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 319 | 'Data' => $qry_file | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 320 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 321 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 322 | 2 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 323 | { 'Name' => 'HMMER_hmm', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 324 | 'Data' => $target_file | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 325 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 326 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 327 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 328 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 330 | 20 | ▶ | unless ($buffer =~ s/\s+\[[L|M]\=(\d+)\]$//) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 331 | 0 | warn "Error parsing length for query, offending line $buffer\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 332 | 0 | exit(0); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 333 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 334 | 20 | my $querylen = $1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 335 | 20 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 336 | { 'Name' => 'HMMER_query-len', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 337 | 'Data' => $querylen | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 338 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 339 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 340 | 20 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 341 | { 'Name' => 'HMMER_query-def', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 342 | 'Data' => $buffer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 343 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 344 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 345 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 346 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 347 | # Get Accession data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 348 | elsif ( $buffer =~ s/^Accession:\s+// ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 349 | 6 | $buffer =~ s/\s+$//; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 350 | 6 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 351 | { 'Name' => 'HMMER_query-acc', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 352 | 'Data' => $buffer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 353 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 354 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 355 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 356 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 357 | # Get description data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 358 | elsif ( $buffer =~ s/^Description:\s+// ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 359 | 9 | $buffer =~ s/\s+$//; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 360 | 9 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 361 | { 'Name' => 'HMMER_querydesc', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 362 | 'Data' => $buffer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 363 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 364 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 365 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 366 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 367 | # hmmsearch, nhmmer, and hmmscan-specific formatting here | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 368 | ▶ | elsif ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition75%9/12
defined $self->{"_reporttype"} and $self->{"_reporttype"} eq "HMMSEARCH" || $self->{"_reporttype"} eq "HMMSCAN" || $self->{"_reporttype"} eq "PHMMER" || $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "HMMSCAN" or $self->{"_reporttype"} eq "PHMMER" or $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "HMMSCAN" or $self->{"_reporttype"} eq "PHMMER"
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "HMMSCAN"
MC/DC0%0/5
defined $self->{"_reporttype"} and $self->{"_reporttype"} eq "HMMSEARCH" || $self->{"_reporttype"} eq "HMMSCAN" || $self->{"_reporttype"} eq "PHMMER" || $self->{"_reporttype"} eq "NHMMER"
defined $self->{"_reporttype"}
$self->{"_reporttype"} eq "HMMSEARCH"
$self->{"_reporttype"} eq "HMMSCAN"
$self->{"_reporttype"} eq "PHMMER"
$self->{"_reporttype"} eq "NHMMER"
Truth table66%4/6
A and B or C or D or E
A= defined $self->{"_reporttype"}B= $self->{"_reporttype"} eq "HMMSEARCH"C= $self->{"_reporttype"} eq "HMMSCAN"D= $self->{"_reporttype"} eq "PHMMER"E= $self->{"_reporttype"} eq "NHMMER"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 369 | defined $self->{'_reporttype'} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 370 | && ( $self->{'_reporttype'} eq 'HMMSEARCH' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 371 | || $self->{'_reporttype'} eq 'HMMSCAN' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 372 | || $self->{'_reporttype'} eq 'PHMMER' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 373 | || $self->{'_reporttype'} eq 'NHMMER' ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 374 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 375 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 376 | # Complete sequence table data above inclusion threshold, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 377 | # hmmsearch or hmmscan | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 378 | 154 | ▶ | if ( $buffer =~ m/Scores for complete sequence/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 5 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 379 | 19 | ▶ | while ( defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 380 | 125 | ▶ | if ( $buffer =~ m/inclusion threshold/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition100%9/9
$buffer =~ /inclusion threshold/ or $buffer =~ /Domain( and alignment)? annotation for each/ or $buffer =~ /\[No hits detected/ or $buffer =~ m[^//]
$buffer =~ /inclusion threshold/ or $buffer =~ /Domain( and alignment)? annotation for each/ or $buffer =~ /\[No hits detected/
$buffer =~ /inclusion threshold/ or $buffer =~ /Domain( and alignment)? annotation for each/
MC/DC100%4/4
$buffer =~ /inclusion threshold/ or $buffer =~ /Domain( and alignment)? annotation for each/ or $buffer =~ /\[No hits detected/ or $buffer =~ m[^//]
$buffer =~ /inclusion threshold/
$buffer =~ /Domain( and alignment)? annotation for each/
$buffer =~ /\[No hits detected/
$buffer =~ m[^//]
Truth table100%5/5
A or B or C or D
A= $buffer =~ /inclusion threshold/B= $buffer =~ /Domain( and alignment)? annotation for each/C= $buffer =~ /\[No hits detected/D= $buffer =~ m[^//]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 381 | || $buffer =~ m/Domain( and alignment)? annotation for each/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 382 | || $buffer =~ m/\[No hits detected/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 383 | || $buffer =~ m!^//! ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 384 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 385 | 19 | $self->_pushback($buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 386 | 19 | last; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 387 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 388 | ▶ | elsif ( $buffer =~ m/^\s+E-value\s+score/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%6/6
$buffer =~ /^\s+E-value\s+score/ or $buffer =~ /\-\-\-/ or $buffer =~ /^$/
$buffer =~ /^\s+E-value\s+score/ or $buffer =~ /\-\-\-/
MC/DC100%3/3
$buffer =~ /^\s+E-value\s+score/ or $buffer =~ /\-\-\-/ or $buffer =~ /^$/
$buffer =~ /^\s+E-value\s+score/
$buffer =~ /\-\-\-/
$buffer =~ /^$/
Truth table100%4/4
A or B or C
A= $buffer =~ /^\s+E-value\s+score/B= $buffer =~ /\-\-\-/C= $buffer =~ /^$/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 389 | || $buffer =~ m/\-\-\-/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 390 | || $buffer =~ m/^$/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 391 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 392 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 393 | 76 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 394 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 395 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 396 | # Grab table data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 397 | 30 | $hit_counter++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 398 | 30 | my ($eval_full, $score_full, $bias_full, $eval_best, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 399 | $score_best, $bias_best, $exp, $n, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 400 | $hitid, $desc, @hitline | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 401 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 402 | 30 | @hitline = split( " ", $buffer ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 403 | 30 | $eval_full = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 404 | 30 | $score_full = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 405 | 30 | $bias_full = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 406 | 30 | $eval_best = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 407 | 30 | $score_best = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 408 | 30 | $bias_best = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 409 | 30 | $exp = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 410 | 30 | $n = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 411 | 30 | $hitid = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 412 | 30 | $desc = join " ", @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 413 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 414 | 30 | ▶ | $desc = '' if ( !defined($desc) ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 415 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 416 | 30 | push @hit_list, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 417 | [ $hitid, $desc, $eval_full, $score_full ]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 418 | 30 | $hitinfo{"$hitid.$hit_counter"} = $#hit_list; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 419 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 420 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 421 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 422 | # nhmmer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 423 | elsif ( $buffer =~ /Scores for complete hits/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 424 | 1 | ▶ | while ( defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 425 | 7 | ▶ | if ( $buffer =~ /inclusion threshold/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition66%6/9
$buffer =~ /inclusion threshold/ or $buffer =~ /Annotation for each hit/ or $buffer =~ /\[No hits detected/ or $buffer =~ m[^//]
$buffer =~ /inclusion threshold/ or $buffer =~ /Annotation for each hit/ or $buffer =~ /\[No hits detected/
$buffer =~ /inclusion threshold/ or $buffer =~ /Annotation for each hit/
MC/DC25%1/4
$buffer =~ /inclusion threshold/ or $buffer =~ /Annotation for each hit/ or $buffer =~ /\[No hits detected/ or $buffer =~ m[^//]
$buffer =~ /inclusion threshold/
$buffer =~ /Annotation for each hit/
$buffer =~ /\[No hits detected/
$buffer =~ m[^//]
Truth table40%2/5
A or B or C or D
A= $buffer =~ /inclusion threshold/B= $buffer =~ /Annotation for each hit/C= $buffer =~ /\[No hits detected/D= $buffer =~ m[^//]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 426 | || $buffer =~ /Annotation for each hit/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 427 | || $buffer =~ /\[No hits detected/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 428 | || $buffer =~ m!^//! ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 429 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 430 | 1 | $self->_pushback($buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 431 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 432 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 433 | ▶ | elsif ( $buffer =~ m/^\s+E-value\s+score/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%6/6
$buffer =~ /^\s+E-value\s+score/ or $buffer =~ /\-\-\-/ or $buffer =~ /^$/
$buffer =~ /^\s+E-value\s+score/ or $buffer =~ /\-\-\-/
MC/DC100%3/3
$buffer =~ /^\s+E-value\s+score/ or $buffer =~ /\-\-\-/ or $buffer =~ /^$/
$buffer =~ /^\s+E-value\s+score/
$buffer =~ /\-\-\-/
$buffer =~ /^$/
Truth table100%4/4
A or B or C
A= $buffer =~ /^\s+E-value\s+score/B= $buffer =~ /\-\-\-/C= $buffer =~ /^$/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 434 | || $buffer =~ m/\-\-\-/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 435 | || $buffer =~ m/^$/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 436 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 437 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 438 | 4 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 439 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 440 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 441 | # Grab table data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 442 | 2 | $hit_counter++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 443 | 2 | my ($eval, $score, $bias, $hitid, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 444 | $start, $end, $desc, @hitline | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 445 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 446 | 2 | @hitline = split( " ", $buffer ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 447 | 2 | $eval = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 448 | 2 | $score = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 449 | 2 | $bias = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 450 | 2 | $hitid = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 451 | 2 | $start = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 452 | 2 | $end = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 453 | 2 | $desc = join ' ', @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 454 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 455 | 2 | ▶ | $desc = '' if ( !defined($desc) ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 456 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 457 | 2 | push @hit_list, [ $hitid, $desc, $eval, $score ]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 458 | 2 | $hitinfo{"$hitid.$hit_counter"} = $#hit_list; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 459 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 460 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 461 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 462 | # Complete sequence table data below inclusion threshold | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 463 | elsif ( $buffer =~ /inclusion threshold/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 464 | 5 | ▶ | while ( defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 465 | 35 | ▶ | if ( $buffer =~ /Domain( and alignment)? annotation for each/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition66%4/6
$buffer =~ /Domain( and alignment)? annotation for each/ or $buffer =~ /Internal pipeline statistics summary/ or $buffer =~ /Annotation for each hit\s+\(and alignments\)/
$buffer =~ /Domain( and alignment)? annotation for each/ or $buffer =~ /Internal pipeline statistics summary/
MC/DC33%1/3
$buffer =~ /Domain( and alignment)? annotation for each/ or $buffer =~ /Internal pipeline statistics summary/ or $buffer =~ /Annotation for each hit\s+\(and alignments\)/
$buffer =~ /Domain( and alignment)? annotation for each/
$buffer =~ /Internal pipeline statistics summary/
$buffer =~ /Annotation for each hit\s+\(and alignments\)/
Truth table50%2/4
A or B or C
A= $buffer =~ /Domain( and alignment)? annotation for each/B= $buffer =~ /Internal pipeline statistics summary/C= $buffer =~ /Annotation for each hit\s+\(and alignments\)/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 466 | || $buffer =~ /Internal pipeline statistics summary/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 467 | || $buffer =~ /Annotation for each hit\s+\(and alignments\)/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 468 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 469 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 470 | 5 | $self->_pushback($buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 471 | 5 | last; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 472 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 473 | ▶ | elsif ( $buffer =~ m/inclusion threshold/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition66%2/3
$buffer =~ /inclusion threshold/ or $buffer =~ /^$/
MC/DC50%1/2
$buffer =~ /inclusion threshold/ or $buffer =~ /^$/
$buffer =~ /inclusion threshold/
$buffer =~ /^$/
Truth table66%2/3
A or B
A= $buffer =~ /inclusion threshold/B= $buffer =~ /^$/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 474 | || $buffer =~ m/^$/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 475 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 476 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 477 | 10 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 478 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 479 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 480 | # Grab table data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 481 | 20 | $hit_counter++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 482 | 20 | my ($eval_full, $score_full, $bias_full, $eval_best, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 483 | $score_best, $bias_best, $exp, $n, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 484 | $hitid, $desc, @hitline | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 485 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 486 | 20 | @hitline = split( " ", $buffer ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 487 | 20 | $eval_full = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 488 | 20 | $score_full = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 489 | 20 | $bias_full = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 490 | 20 | $eval_best = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 491 | 20 | $score_best = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 492 | 20 | $bias_best = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 493 | 20 | $exp = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 494 | 20 | $n = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 495 | 20 | $hitid = shift @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 496 | 20 | $desc = join " ", @hitline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 497 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 498 | 20 | ▶ | $desc = '' if ( !defined($desc) ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 499 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 | 20 | push @hit_list, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 501 | [ $hitid, $desc, $eval_full, $score_full ]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 502 | 20 | $hitinfo{"$hitid.$hit_counter"} = $#hit_list; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 503 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 504 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 505 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 506 | # Domain annotation for each sequence table data, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 507 | # for hmmscan, hmmsearch & nhmmer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 508 | ▶ | elsif ( $buffer =~ /Domain( and alignment)? annotation for each/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%3/3
$buffer =~ /Domain( and alignment)? annotation for each/ or $buffer =~ /Annotation for each hit\s+\(and alignments\)/
MC/DC100%2/2
$buffer =~ /Domain( and alignment)? annotation for each/ or $buffer =~ /Annotation for each hit\s+\(and alignments\)/
$buffer =~ /Domain( and alignment)? annotation for each/
$buffer =~ /Annotation for each hit\s+\(and alignments\)/
Truth table100%3/3
A or B
A= $buffer =~ /Domain( and alignment)? annotation for each/B= $buffer =~ /Annotation for each hit\s+\(and alignments\)/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 509 | or $buffer =~ /Annotation for each hit\s+\(and alignments\)/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 510 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 511 | 17 | @hsp_list = (); # Here for multi-query reports | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 512 | 17 | my $name; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 513 | 17 | my $annot_counter = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 514 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 515 | 17 | ▶ | while ( defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 516 | 111 | ▶ | if ( $buffer =~ /\[No targets detected/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$buffer =~ /\[No targets detected/ or $buffer =~ /Internal pipeline statistics/
MC/DC100%2/2
$buffer =~ /\[No targets detected/ or $buffer =~ /Internal pipeline statistics/
$buffer =~ /\[No targets detected/
$buffer =~ /Internal pipeline statistics/
Truth table100%3/3
A or B
A= $buffer =~ /\[No targets detected/B= $buffer =~ /Internal pipeline statistics/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 517 | || $buffer =~ /Internal pipeline statistics/ ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 518 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 519 | 17 | $self->_pushback($buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 520 | 17 | last; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 521 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 522 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 523 | 94 | ▶ | if ( $buffer =~ m/^\>\>\s(\S*)\s+(.*)/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 524 | 46 | $name = $1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 525 | 46 | my $desc = $2; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 526 | 46 | $annot_counter++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 527 | 46 | $domaincounter{"$name.$annot_counter"} = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 528 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 529 | # The Hit Description from the Scores table can be truncated if | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 530 | # its too long, so use the '>>' line description when its longer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 531 | 46 | ▶ | if (length $hit_list[ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 532 | $hitinfo{"$name.$annot_counter"} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 533 | ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 534 | [1] < length $desc | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 535 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 536 | 6 | $hit_list[ $hitinfo{"$name.$annot_counter"} ][1] = $desc; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 537 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 538 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 539 | 46 | ▶ | while ( defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 540 | 263 | ▶ | if ( $buffer =~ m/Internal pipeline statistics/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition77%7/9
$buffer =~ /Internal pipeline statistics/ or $buffer =~ /Alignments for each domain/ or $buffer =~ /^\s+Alignment:/ or $buffer =~ /^\>\>/
$buffer =~ /Internal pipeline statistics/ or $buffer =~ /Alignments for each domain/ or $buffer =~ /^\s+Alignment:/
$buffer =~ /Internal pipeline statistics/ or $buffer =~ /Alignments for each domain/
MC/DC50%2/4
$buffer =~ /Internal pipeline statistics/ or $buffer =~ /Alignments for each domain/ or $buffer =~ /^\s+Alignment:/ or $buffer =~ /^\>\>/
$buffer =~ /Internal pipeline statistics/
$buffer =~ /Alignments for each domain/
$buffer =~ /^\s+Alignment:/
$buffer =~ /^\>\>/
Truth table60%3/5
A or B or C or D
A= $buffer =~ /Internal pipeline statistics/B= $buffer =~ /Alignments for each domain/C= $buffer =~ /^\s+Alignment:/D= $buffer =~ /^\>\>/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 541 | || $buffer =~ m/Alignments for each domain/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 542 | || $buffer =~ m/^\s+Alignment:/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 543 | || $buffer =~ m/^\>\>/ ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 544 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 545 | 46 | $self->_pushback($buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 546 | 46 | last; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 547 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 548 | ▶ | elsif ( $buffer =~ m/^\s+score\s+bias/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%12/12
$buffer =~ /^\s+score\s+bias/ or $buffer =~ /^\s+\#\s+score/ or $buffer =~ /^\s+------\s+/ or $buffer =~ /^\s\-\-\-\s+/ or $buffer =~ /^$/
$buffer =~ /^\s+score\s+bias/ or $buffer =~ /^\s+\#\s+score/ or $buffer =~ /^\s+------\s+/ or $buffer =~ /^\s\-\-\-\s+/
$buffer =~ /^\s+score\s+bias/ or $buffer =~ /^\s+\#\s+score/ or $buffer =~ /^\s+------\s+/
$buffer =~ /^\s+score\s+bias/ or $buffer =~ /^\s+\#\s+score/
MC/DC100%5/5
$buffer =~ /^\s+score\s+bias/ or $buffer =~ /^\s+\#\s+score/ or $buffer =~ /^\s+------\s+/ or $buffer =~ /^\s\-\-\-\s+/ or $buffer =~ /^$/
$buffer =~ /^\s+score\s+bias/
$buffer =~ /^\s+\#\s+score/
$buffer =~ /^\s+------\s+/
$buffer =~ /^\s\-\-\-\s+/
$buffer =~ /^$/
Truth table100%6/6
A or B or C or D or E
A= $buffer =~ /^\s+score\s+bias/B= $buffer =~ /^\s+\#\s+score/C= $buffer =~ /^\s+------\s+/D= $buffer =~ /^\s\-\-\-\s+/E= $buffer =~ /^$/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 549 | || $buffer =~ m/^\s+\#\s+score/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 550 | || $buffer =~ m/^\s+------\s+/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 551 | || $buffer =~ m/^\s\-\-\-\s+/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 552 | || $buffer =~ m/^$/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 553 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 554 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 555 | 138 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 556 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 557 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 558 | # Grab hsp data from table, push into @hsp; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 559 | 79 | ▶ | if ($self->{'_reporttype'} =~ m/(?:HMMSCAN|HMMSEARCH|PHMMER|NHMMER)/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 560 | 79 | my ( $domain_num, $score, $bias, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 561 | $ceval, $ieval, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 562 | $hmm_start, $hmm_stop, $hmm_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 563 | $seq_start, $seq_stop, $seq_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 564 | $env_start, $env_stop, $env_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 565 | $hitlength, $acc ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 566 | 79 | my @vals; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 567 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 568 | 79 | ▶ | if ( # HMMSCAN & HMMSEARCH | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 569 | ( $domain_num, $score, $bias, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 570 | $ceval, $ieval, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 571 | $hmm_start, $hmm_stop, $hmm_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 572 | $seq_start, $seq_stop, $seq_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 573 | $env_start, $env_stop, $env_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 574 | $acc ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 575 | = ( $buffer =~ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 576 | m|^\s+(\d+)\s\!*\?*\s+ # domain number | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 577 | (\S+)\s+(\S+)\s+ # score, bias | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 578 | (\S+)\s+(\S+)\s+ # c-eval, i-eval | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 579 | (\d+)\s+(\d+)\s+(\S+)\s+ # hmm start, stop, coverage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 580 | (\d+)\s+(\d+)\s+(\S+)\s+ # seq start, stop, coverage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 581 | (\d+)\s+(\d+)\s+(\S+)\s+ # env start, stop, coverage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 582 | (\S+) # posterior probability accuracy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 583 | \s*$|ox | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 584 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 585 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 586 | # Values assigned when IF succeeded | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 587 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 588 | # Try to get the Hit length from the alignment information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 589 | 77 | $hitlength = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 590 | 77 | ▶ | if ($self->{'_reporttype'} eq 'HMMSEARCH' || $self->{'_reporttype'} eq 'PHMMER') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition100%3/3
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER"
MC/DC100%2/2
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "PHMMER"
$self->{"_reporttype"} eq "HMMSEARCH"
$self->{"_reporttype"} eq "PHMMER"
Truth table100%3/3
A or B
A= $self->{"_reporttype"} eq "HMMSEARCH"B= $self->{"_reporttype"} eq "PHMMER"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 591 | # For Hmmsearch, if seq coverage ends in ']' it means that the alignment | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 592 | # runs until the end. In that case add the END coordinate to @hitinfo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 593 | # to use it as Hit Length | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 594 | 22 | ▶ | if ( $seq_cov =~ m/\]$/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 595 | 2 | $hitlength = $seq_stop; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 596 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 597 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 598 | elsif ($self->{'_reporttype'} eq 'HMMSCAN') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 599 | # For Hmmscan, if hmm coverage ends in ']' it means that the alignment | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 600 | # runs until the end. In that case add the END coordinate to @hitinfo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 601 | # to use it as Hit Length | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 602 | 55 | ▶ | if ( $hmm_cov =~ m/\]$/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 603 | 5 | $hitlength = $hmm_stop; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 604 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 605 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 606 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 607 | elsif ( # NHMMER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 608 | ( $score, $bias, $ceval, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 609 | $hmm_start, $hmm_stop, $hmm_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 610 | $seq_start, $seq_stop, $seq_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 611 | $env_start, $env_stop, $env_cov, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 612 | $hitlength, $acc ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 613 | = ( $buffer =~ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 614 | m|^\s+[!?]\s+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 615 | (\S+)\s+(\S+)\s+(\S+)\s+ # score, bias, evalue | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 616 | (\d+)\s+(\d+)\s+(\S+)\s+ # hmm start, stop, coverage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 617 | (\d+)\s+(\d+)\s+(\S+)\s+ # seq start, stop, coverage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 618 | (\d+)\s+(\d+)\s+(\S+)\s+ # env start, stop, coverage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 619 | (\d+)\s+(\S+) # target length, pp accuracy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 620 | .*$|ox | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 621 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 622 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 623 | # Values assigned when IF succeeded | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 624 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 625 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 626 | 0 | print STDERR "Missed this line: $buffer\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 627 | 0 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 628 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 629 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 630 | 79 | my $info = $hit_list[ $hitinfo{"$name.$annot_counter"} ]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 631 | 79 | ▶ | if ( !defined $info ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632 | 0 | $self->warn( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 633 | "Incomplete information: can't find HSP $name in list of hits\n" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 634 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 635 | 0 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 636 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 637 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 638 | 79 | $domaincounter{"$name.$annot_counter"}++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 639 | my $hsp_key | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 640 | 79 | = $name . "_" . $domaincounter{"$name.$annot_counter"}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 641 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 642 | # Keep it simple for now. let's customize later | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 643 | 79 | @vals = ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 644 | $hmm_start, $hmm_stop, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 645 | $seq_start, $seq_stop, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 646 | $score, $ceval, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 647 | $hitlength, '', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 648 | '', '', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 649 | '', '' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 650 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 651 | 79 | push @hsp_list, [ $name, @vals ]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 652 | 79 | $hspinfo{"$hsp_key.$annot_counter"} = $#hsp_list; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 653 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 654 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 655 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 656 | elsif ( $buffer =~ /Alignment(?:s for each domain)?:/ ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 657 | #line counter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 658 | 46 | my $count = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 659 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 660 | # There's an optional block, so we sometimes need to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 661 | # count to 3, and sometimes to 4. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 662 | 46 | my $max_count = 3; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 663 | 46 | my $lastdomain; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 664 | my $hsp; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 665 | 46 | my ( $csline, $hline, $midline, $qline, $pline ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 666 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 667 | # To avoid deleting whitespaces from the homology line, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 668 | # keep track of the position and length of the alignment | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 669 | # in each individual hline/qline, to take them as reference | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 670 | # and use them in the homology line | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 671 | 46 | my $align_offset = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 672 | 46 | my $align_length = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 673 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 674 | 46 | ▶ | while ( defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 675 | 806 | ▶ | if ( $buffer =~ m/^\>\>/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition100%3/3
$buffer =~ /^\>\>/ or $buffer =~ /Internal pipeline statistics/
MC/DC100%2/2
$buffer =~ /^\>\>/ or $buffer =~ /Internal pipeline statistics/
$buffer =~ /^\>\>/
$buffer =~ /Internal pipeline statistics/
Truth table100%3/3
A or B
A= $buffer =~ /^\>\>/B= $buffer =~ /Internal pipeline statistics/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 676 | || $buffer =~ m/Internal pipeline statistics/ ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 677 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 678 | 46 | $self->_pushback($buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 679 | 46 | last; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 680 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 681 | elsif ($buffer =~ m/^$/ ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 682 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 683 | # Reset these scalars on empty lines to help | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 684 | # distinguish between the consensus structure/reference | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 685 | # tracks (CS|RF lines) and homology lines ending in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 686 | # CS or RF aminoacids | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 687 | 149 | $align_offset = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 688 | 149 | $align_length = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 689 | 149 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 690 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 691 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 692 | 611 | ▶ | if ( $buffer =~ /\s\s\=\=\sdomain\s(\d+)\s+/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 5 branches
Condition100%3/3
$buffer =~ /\s\s\=\=\sdomain\s(\d+)\s+/ or $buffer =~ /\s\sscore:\s\S+\s+/
MC/DC100%2/2
$buffer =~ /\s\s\=\=\sdomain\s(\d+)\s+/ or $buffer =~ /\s\sscore:\s\S+\s+/
$buffer =~ /\s\s\=\=\sdomain\s(\d+)\s+/
$buffer =~ /\s\sscore:\s\S+\s+/
Truth table100%3/3
A or B
A= $buffer =~ /\s\s\=\=\sdomain\s(\d+)\s+/B= $buffer =~ /\s\sscore:\s\S+\s+/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 693 | or $buffer =~ /\s\sscore:\s\S+\s+/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 694 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 695 | 79 | ▶ | my $domainnum = $1 || 1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
$1 || 1
MC/DC100%1/1
$1 || 1
$1
Truth table100%2/2
A
A= $1
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 696 | 79 | $count = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 697 | 79 | my $key = $name . "_" . $domainnum; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 698 | 79 | $hsp = $hsp_list[ $hspinfo{"$key.$annot_counter"} ]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 699 | 79 | $csline = $$hsp[-5]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 700 | 79 | $hline = $$hsp[-4]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 701 | 79 | $midline = $$hsp[-3]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 702 | 79 | $qline = $$hsp[-2]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 703 | 79 | $pline = $$hsp[-1]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 704 | 79 | $lastdomain = $name; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 705 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 706 | # Consensus Structure or Reference track, some reports | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 707 | # don't have it. Since it appears on top of the alignment, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 708 | # the reset of $align_length to 0 between alignment blocks | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 709 | # avoid confusing homology lines with it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 710 | ▶ | elsif ( $buffer =~ m/\s+\S+\s(?:CS|RF)$/ and $align_length == 0 ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%3/3
$buffer =~ /\s+\S+\s(?:CS|RF)$/ and $align_length == 0
MC/DC100%2/2
$buffer =~ /\s+\S+\s(?:CS|RF)$/ and $align_length == 0
$buffer =~ /\s+\S+\s(?:CS|RF)$/
$align_length == 0
Truth table100%3/3
A and B
A= $buffer =~ /\s+\S+\s(?:CS|RF)$/B= $align_length == 0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 711 | 56 | my @data = split( " ", $buffer ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 712 | 56 | $csline .= $data[-2]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 713 | 56 | $max_count++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 714 | 56 | $count++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 715 | 56 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 716 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 717 | # Query line and Hit line swaps positions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 718 | # depending of the program | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 719 | ▶ | elsif ( $count == $max_count - 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%3/3
$count == $max_count - 3 or $count == $max_count - 1
MC/DC100%2/2
$count == $max_count - 3 or $count == $max_count - 1
$count == $max_count - 3
$count == $max_count - 1
Truth table100%3/3
A or B
A= $count == $max_count - 3B= $count == $max_count - 1
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 720 | or $count == $max_count - 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 721 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 722 | 238 | my @data = split( " ", $buffer ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 723 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 724 | 238 | my $line_offset = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 725 | # Use \Q\E on match to avoid errors on alignments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 726 | # that include stop codons (*) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 727 | 238 | ▶ | while ($buffer =~ m/\Q$data[-2]\E/g) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 728 | 238 | $line_offset = pos $buffer; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 729 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 730 | 238 | ▶ | if ($line_offset != 0) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 731 | 238 | $align_length = length $data[-2]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 732 | 238 | $align_offset = $line_offset - $align_length; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 733 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 734 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 735 | 238 | ▶ | if ($self->{'_reporttype'} eq 'HMMSCAN') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 736 | # hit sequence | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 737 | 132 | ▶ | $hline .= $data[-2] if ($count == $max_count - 3); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 738 | # query sequence | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 739 | 132 | ▶ | $qline .= $data[-2] if ($count == $max_count - 1); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 740 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 741 | else { # hmmsearch & nhmmer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 742 | # hit sequence | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 743 | 106 | ▶ | $hline .= $data[-2] if ($count == $max_count - 1); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 744 | # query sequence | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 745 | 106 | ▶ | $qline .= $data[-2] if ($count == $max_count - 3); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 746 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 747 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 748 | 238 | $count++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 749 | 238 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 750 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 751 | # conservation track | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 752 | # storage isn't quite right - need to remove | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 753 | # leading/lagging whitespace while preserving | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 754 | # gap data (latter isn't done, former is) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 755 | elsif ( $count == $max_count - 2 ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 756 | 119 | $midline .= substr $buffer, $align_offset, $align_length; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 757 | 119 | $count++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 758 | 119 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 759 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 760 | # posterior probability track | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 761 | elsif ( $count == $max_count ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 762 | 119 | my @data = split(" ", $buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 763 | 119 | $pline .= $data[-2]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 764 | 119 | $count = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 765 | 119 | $max_count = 3; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 766 | 119 | $$hsp[-5] = $csline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 767 | 119 | $$hsp[-4] = $hline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 768 | 119 | $$hsp[-3] = $midline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 769 | 119 | $$hsp[-2] = $qline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 770 | 119 | $$hsp[-1] = $pline; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 771 | 119 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 772 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 773 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 774 | 0 | print STDERR "Missed this line: $buffer\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 775 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 776 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 777 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 778 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 779 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 780 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 781 | # End of report | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 782 | ▶ | elsif ( $buffer =~ m/Internal pipeline statistics/ || $buffer =~ m!^//! ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%3/3
$buffer =~ /Internal pipeline statistics/ or $buffer =~ m[^//]
MC/DC100%2/2
$buffer =~ /Internal pipeline statistics/ or $buffer =~ m[^//]
$buffer =~ /Internal pipeline statistics/
$buffer =~ m[^//]
Truth table100%3/3
A or B
A= $buffer =~ /Internal pipeline statistics/B= $buffer =~ m[^//]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 783 | # If within hit, hsp close; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 784 | 20 | ▶ | if ( $self->within_element('hit') ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 785 | 0 | ▶ | if ( $self->within_element('hsp') ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 786 | 0 | $self->end_element( { 'Name' => 'Hsp' } ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 787 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 788 | 0 | $self->end_element( { 'Name' => 'Hit' } ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 789 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 790 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 791 | # Grab summary statistics of run | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 792 | 20 | ▶ | while ( defined( $buffer = $self->_readline ) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 793 | 203 | ▶ | last if ( $buffer =~ m/^\/\/$/ ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 794 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 795 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 796 | # Do a lot of processing of hits and hsps here | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 797 | 20 | my $index = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 798 | 20 | ▶ | while ( my $hit = shift @hit_list ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 799 | 52 | $index++; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 800 | 52 | my $hit_name = shift @$hit; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 801 | 52 | my $hit_desc = shift @$hit; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 802 | 52 | my $hit_signif = shift @$hit; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 803 | 52 | my $hit_score = shift @$hit; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 804 | 52 | ▶ | my $num_domains = $domaincounter{"$hit_name.$index"} || 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
$domaincounter{"$hit_name.$index"} || 0
MC/DC100%1/1
$domaincounter{"$hit_name.$index"} || 0
$domaincounter{"$hit_name.$index"}
Truth table100%2/2
A
A= $domaincounter{"$hit_name.$index"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 805 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 806 | 52 | $self->start_element( { 'Name' => 'Hit' } ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 807 | 52 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 808 | { 'Name' => 'Hit_id', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 809 | 'Data' => $hit_name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 810 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 811 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 812 | 52 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 813 | { 'Name' => 'Hit_desc', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 814 | 'Data' => $hit_desc | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 815 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 816 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 817 | 52 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 818 | { 'Name' => 'Hit_signif', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 819 | 'Data' => $hit_signif | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 820 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 821 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 822 | 52 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 823 | { 'Name' => 'Hit_score', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 824 | 'Data' => $hit_score | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 825 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 826 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 827 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 828 | 52 | for my $i ( 1 .. $num_domains ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 829 | 79 | my $key = $hit_name . "_" . $i; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 830 | 79 | my $hsp = $hsp_list[ $hspinfo{"$key.$index"} ]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 831 | 79 | ▶ | if ( defined $hsp ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 832 | 79 | my $hsp_name = shift @$hsp; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 833 | 79 | $self->start_element( { 'Name' => 'Hsp' } ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 834 | # Since HMMER doesn't print some data explicitly, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 835 | # calculate it from the homology line (midline) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 836 | 79 | ▶ | if ($$hsp[-3] ne '') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 837 | 79 | my $length = length $$hsp[-3]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 838 | 79 | my $identical = ($$hsp[-3] =~ tr/a-zA-Z//); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 839 | 79 | my $positive = ($$hsp[-3] =~ tr/+//) + $identical; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 840 | 79 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 841 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 842 | 'Name' => 'Hsp_align-len', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 843 | 'Data' => $length | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 844 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 845 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 846 | 79 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 847 | { 'Name' => 'Hsp_identity', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 848 | 'Data' => $identical | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 849 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 850 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 851 | 79 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 852 | { 'Name' => 'Hsp_positive', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 853 | 'Data' => $positive | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 854 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 855 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 856 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 857 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 858 | 0 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 859 | { 'Name' => 'Hsp_identity', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 860 | 'Data' => 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 861 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 862 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 863 | 0 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 864 | { 'Name' => 'Hsp_positive', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 865 | 'Data' => 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 866 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 867 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 868 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 869 | 79 | ▶ | if ( $self->{'_reporttype'} eq 'HMMSCAN' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 870 | 55 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 871 | { 'Name' => 'Hsp_hit-from', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 872 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 873 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 874 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 875 | 55 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 876 | { 'Name' => 'Hsp_hit-to', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 877 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 878 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 879 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 880 | 55 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 881 | { 'Name' => 'Hsp_query-from', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 882 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 883 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 884 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 885 | 55 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 886 | { 'Name' => 'Hsp_query-to', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 887 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 888 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 889 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 890 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 891 | ▶ | elsif ( $self->{'_reporttype'} eq 'HMMSEARCH' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition100%3/3
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "NHMMER"
MC/DC100%2/2
$self->{"_reporttype"} eq "HMMSEARCH" or $self->{"_reporttype"} eq "NHMMER"
$self->{"_reporttype"} eq "HMMSEARCH"
$self->{"_reporttype"} eq "NHMMER"
Truth table100%3/3
A or B
A= $self->{"_reporttype"} eq "HMMSEARCH"B= $self->{"_reporttype"} eq "NHMMER"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 892 | or $self->{'_reporttype'} eq 'NHMMER' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 893 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 894 | 14 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 895 | { 'Name' => 'Hsp_query-from', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 896 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 897 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 898 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 899 | 14 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 900 | { 'Name' => 'Hsp_query-to', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 901 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 902 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 903 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 904 | 14 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 905 | { 'Name' => 'Hsp_hit-from', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 906 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 907 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 908 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 909 | 14 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 910 | { 'Name' => 'Hsp_hit-to', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 911 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 912 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 913 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 914 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 915 | $self->element( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 916 | 79 | { 'Name' => 'Hsp_score', | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 917 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 918 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 919 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 920 | 79 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 921 | { 'Name' => 'Hsp_evalue', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 922 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 923 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 924 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 925 | 79 | my $hitlength = shift @$hsp; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 926 | 79 | ▶ | if ( $hitlength != 0 ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 927 | 17 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 928 | { 'Name' => 'Hit_len', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 929 | 'Data' => $hitlength | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 930 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 931 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 932 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 933 | $self->element( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 934 | 79 | { 'Name' => 'Hsp_csline', | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 935 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 936 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 937 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 938 | 79 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 939 | { 'Name' => 'Hsp_hseq', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 940 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 941 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 942 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 943 | 79 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 944 | { 'Name' => 'Hsp_midline', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 945 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 946 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 947 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 948 | 79 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 949 | { 'Name' => 'Hsp_qseq', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 950 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 951 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 952 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 953 | 79 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 954 | { 'Name' => 'Hsp_pline', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 955 | 'Data' => shift @$hsp | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 956 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 957 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 958 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 959 | # Only nhmmer output has strand information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 960 | 79 | ▶ | if ( $self->{'_reporttype'} eq 'NHMMER' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 961 | 2 | my $hstart = $self->get_from_element('HSP-hit_start'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 962 | 2 | my $hend = $self->get_from_element('HSP-hit_end'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 963 | 2 | ▶ | my $hstrand = ( $hstart < $hend ) ? 1 : -1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 964 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 965 | 2 | my $qstart = $self->get_from_element('HSP-query_start'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 966 | 2 | my $qend = $self->get_from_element('HSP-query_end'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 967 | 2 | ▶ | my $qstrand = ( $qstart < $qend ) ? 1 : -1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 968 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 969 | 2 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 970 | { 'Name' => 'Hsp_query-strand', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 971 | 'Data' => $qstrand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 972 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 973 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 974 | 2 | $self->element( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 975 | { 'Name' => 'Hsp_hit-strand', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 976 | 'Data' => $hstrand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 977 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 978 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 979 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 980 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 981 | 79 | $self->end_element( { 'Name' => 'Hsp' } ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 982 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 983 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 984 | 52 | $self->end_element( { 'Name' => 'Hit' } ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 985 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 986 | 20 | @hit_list = (); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 987 | 20 | %hitinfo = (); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 988 | 20 | last; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 989 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 990 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 991 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 992 | 0 | print STDERR "Missed this line: $buffer\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 993 | 0 | $self->debug($buffer); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 994 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 995 | 225 | $last = $buffer; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 996 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 997 | 20 | $self->end_element( { 'Name' => 'HMMER_Output' } ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 998 | 20 | my $result = $self->end_document(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 999 | 20 | return $result; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1000 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1001 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1002 | =head2 start_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1003 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1004 | Title : start_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1005 | Usage : $eventgenerator->start_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1006 | Function: Handles a start event | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1007 | Returns : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1008 | Args : hashref with at least 2 keys 'Data' and 'Name' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1009 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1010 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1011 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1012 | 1970 | ▶ | sub start_element { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
start_element: called CC=5 SCAR=16.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1013 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1014 | 1970 | my ( $self, $data ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1015 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1016 | # we currently don't care about attributes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1017 | 1970 | my $nm = $data->{'Name'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1018 | 1970 | my $type = $MODEMAP{$nm}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1019 | 1970 | ▶ | if ($type) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1020 | 145 | ▶ | if ( $self->_eventHandler->will_handle($type) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1021 | 145 | my $func = sprintf( "start_%s", lc $type ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1022 | 145 | $self->_eventHandler->$func( $data->{'Attributes'} ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1023 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1024 | 145 | unshift @{ $self->{'_elements'} }, $type; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1025 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1026 | 1970 | ▶ | if ( defined $type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $type and $type eq "result"
MC/DC100%2/2
defined $type and $type eq "result"
defined $type
$type eq "result"
Truth table100%3/3
A and B
A= defined $typeB= $type eq "result"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1027 | && $type eq 'result' ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1028 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1029 | 14 | $self->{'_values'} = {}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1030 | 14 | $self->{'_result'} = undef; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1031 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1032 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1033 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1034 | =head2 end_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1035 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1036 | Title : end_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1037 | Usage : $eventgeneartor->end_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1038 | Function: Handles and end element event | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1039 | Returns : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1040 | Args : hashref with at least 2 keys 'Data' and 'Name' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1041 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1042 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1043 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1044 | 1976 | ▶ | sub end_element { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
end_element: called CC=15 SCAR=27.4
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1045 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1046 | 1976 | my ( $self, $data ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1047 | 1976 | my $nm = $data->{'Name'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1048 | 1976 | my $type = $MODEMAP{$nm}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1049 | 1976 | my $rc; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1050 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1051 | 1976 | ▶ | if ( $nm eq 'HMMER_program' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1052 | 20 | ▶ | if ( $self->{'_last_data'} =~ /([NP]?HMM\S+)/i ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1053 | 20 | $self->{'_reporttype'} = uc $1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1054 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1055 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1056 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1057 | # Hsp are sort of weird, in that they end when another | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1058 | # object begins so have to detect this in end_element for now | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1059 | 1976 | ▶ | if ( $nm eq 'Hsp' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1060 | 79 | foreach my $line (qw(Hsp_csline Hsp_qseq Hsp_midline Hsp_hseq Hsp_pline)) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1061 | 395 | my $data = $self->{'_last_hspdata'}->{$line}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1062 | 395 | ▶ | if ( $data && $line eq 'Hsp_hseq' ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$data and $line eq "Hsp_hseq"
MC/DC100%2/2
$data and $line eq "Hsp_hseq"
$data
$line eq "Hsp_hseq"
Truth table100%3/3
A and B
A= $dataB= $line eq "Hsp_hseq"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1063 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1064 | # replace hmm '.' gap symbol by '-' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1065 | 79 | $data =~ s/\./-/g; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1066 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1067 | $self->element( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1068 | 395 | { 'Name' => $line, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1069 | 'Data' => $data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1070 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1071 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1072 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1073 | 79 | $self->{'_last_hspdata'} = {}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1074 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1075 | 1976 | ▶ | if ($type) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1076 | 151 | ▶ | if ( $self->_eventHandler->will_handle($type) ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1077 | 151 | my $func = sprintf( "end_%s", lc $type ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1078 | $rc = $self->_eventHandler->$func( $self->{'_reporttype'}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1079 | 151 | $self->{'_values'} ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1080 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1081 | 151 | my $lastelem = shift @{ $self->{'_elements'} }; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1082 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1083 | # Flush corresponding values from the {_values} buffer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1084 | 151 | my $name = uc $type; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1085 | 151 | foreach my $key (keys %{ $self->{_values} }) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1086 | 2902 | ▶ | delete $self->{_values}->{$key} if ($key =~ m/^$name-/); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1087 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1088 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1089 | elsif ( $MAPPING{$nm} ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1090 | 1825 | ▶ | if ( ref( $MAPPING{$nm} ) =~ /hash/i ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1091 | 0 | my $key = ( keys %{ $MAPPING{$nm} } )[0]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1092 | $self->{'_values'}->{$key}->{ $MAPPING{$nm}->{$key} } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1093 | 0 | = $self->{'_last_data'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1094 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1095 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1096 | 1825 | $self->{'_values'}->{ $MAPPING{$nm} } = $self->{'_last_data'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1097 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1098 | # print "lastdata is " . $self->{'_last_data'} . "\n"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1099 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1100 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1101 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1102 | 0 | $self->debug("unknown nm $nm, ignoring\n"); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1103 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1104 | 1976 | $self->{'_last_data'} = ''; # remove read data if we are at | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1105 | # end of an element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1106 | 1976 | ▶ | $self->{'_result'} = $rc if ( defined $type && $type eq 'result' ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $type and $type eq "result"
MC/DC100%2/2
defined $type and $type eq "result"
defined $type
$type eq "result"
Truth table100%3/3
A and B
A= defined $typeB= $type eq "result"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1107 | 1976 | return $rc; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1108 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1109 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1110 | =head2 element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1111 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1112 | Title : element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1113 | Usage : $eventhandler->element({'Name' => $name, 'Data' => $str}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1114 | Function: Convenience method that calls start_element, characters, end_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1115 | Returns : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1116 | Args : Hash ref with the keys 'Name' and 'Data' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1117 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1118 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1119 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1120 | 1825 | ▶ | sub element { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
element: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1121 | 1825 | my ( $self, $data ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1122 | 1825 | $self->start_element($data); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1123 | 1825 | $self->characters($data); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1124 | 1825 | $self->end_element($data); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1125 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1126 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1127 | =head2 get_from_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1128 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1129 | Title : get_from_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1130 | Usage : $self->get_from_element('HSP-hit_start'); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1131 | Function: Convenience method to retrieve data from '_values' hash | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1132 | Returns : string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1133 | Args : key | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1134 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1135 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1136 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1137 | 8 | ▶ | sub get_from_element { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
get_from_element: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1138 | 8 | my ($self,$key) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1139 | 8 | my $values = $self->{_values}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1140 | 8 | $values->{$key}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1141 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1142 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1143 | =head2 characters | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1144 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1145 | Title : characters | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1146 | Usage : $eventgenerator->characters($str) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1147 | Function: Send a character events | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1148 | Returns : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1149 | Args : string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1150 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1151 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1152 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1153 | 1825 | ▶ | sub characters { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
characters: called CC=6 SCAR=18.6
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1154 | 1825 | my ( $self, $data ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1155 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1156 | 1825 | ▶ | if ( $self->in_element('hsp') | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition83%5/6
$self->in_element("hsp") and $data->{"Name"} =~ /Hsp\_(?:qseq|hseq|csline|pline|midline)/o and defined $data->{"Data"}
$self->in_element("hsp") and $data->{"Name"} =~ /Hsp\_(?:qseq|hseq|csline|pline|midline)/o
MC/DC66%2/3
$self->in_element("hsp") and $data->{"Name"} =~ /Hsp\_(?:qseq|hseq|csline|pline|midline)/o and defined $data->{"Data"}
$self->in_element("hsp")
$data->{"Name"} =~ /Hsp\_(?:qseq|hseq|csline|pline|midline)/o
defined $data->{"Data"}
Truth table75%3/4
A and B and C
A= $self->in_element("hsp")B= $data->{"Name"} =~ /Hsp\_(?:qseq|hseq|csline|pline|midline)/oC= defined $data->{"Data"}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1157 | && $data->{'Name'} =~ /Hsp\_(?:qseq|hseq|csline|pline|midline)/o | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1158 | && defined $data->{'Data'} ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1159 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1160 | 790 | $self->{'_last_hspdata'}->{ $data->{'Name'} } .= $data->{'Data'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1161 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1162 | 1825 | ▶ | return unless ( defined $data->{'Data'} && $data->{'Data'} !~ /^\s+$/o ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $data->{"Data"} and not $data->{"Data"} =~ /^\s+$/o
MC/DC0%0/2
defined $data->{"Data"} and not $data->{"Data"} =~ /^\s+$/o
defined $data->{"Data"}
not $data->{"Data"} =~ /^\s+$/o
Truth table33%1/3
A and not(B)
A= defined $data->{"Data"}B= not $data->{"Data"} =~ /^\s+$/o
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1163 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1164 | 1825 | $self->{'_last_data'} = $data->{'Data'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1165 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1166 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1167 | =head2 within_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1168 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1169 | Title : within_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1170 | Usage : if( $eventgenerator->within_element( $element ) ) {} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1171 | Function: Test if we are within a particular element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1172 | This is different than 'in' because within can be tested for | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1173 | a whole block | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1174 | Returns : boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1175 | Args : string element name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1176 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1177 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1178 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1179 | 20 | ▶ | sub within_element { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
within_element: called CC=6 SCAR=18.7
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1180 | 20 | my ( $self, $name ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1181 | return 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1182 | if ( !defined $name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1183 | || !defined $self->{'_elements'} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1184 | 20 | ▶ | || scalar @{ $self->{'_elements'} } == 0 ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition50%3/6
not defined $name && defined $self->{"_elements"} or scalar @{$self->{"_elements"};} == 0
defined $name && defined $self->{'_elements'}
MC/DC33%1/3
not defined $name && defined $self->{"_elements"} or scalar @{$self->{"_elements"};} == 0
defined $name
defined $self->{'_elements'}
scalar @{$self->{"_elements"};} == 0
Truth table50%2/4
not(A && B) or C
A= defined $nameB= defined $self->{'_elements'}C= scalar @{$self->{"_elements"};} == 0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1185 | 14 | foreach my $element ( @{ $self->{'_elements'} } ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1186 | 14 | ▶ | return 1 if ( $element eq $name ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1187 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1188 | 14 | return 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1189 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1190 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1191 | =head2 in_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1192 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1193 | Title : in_element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1194 | Usage : if( $eventgenerator->in_element( $element ) ) {} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1195 | Function: Test if we are in a particular element | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1196 | This is different than 'within' because 'in' only | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1197 | tests its immediate parent | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1198 | Returns : boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1199 | Args : string element name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1200 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1201 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1202 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1203 | 1825 | ▶ | sub in_element { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
in_element: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1204 | 1825 | my ( $self, $name ) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1205 | 1825 | ▶ | return 0 if !defined $self->{'_elements'}->[0]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1206 | 1779 | return ( $self->{'_elements'}->[0] eq $name ); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1207 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1208 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1209 | =head2 start_document | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1210 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1211 | Title : start_document | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1212 | Usage : $eventgenerator->start_document | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1213 | Function: Handle a start document event | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1214 | Returns : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1215 | Args : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1216 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1217 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1218 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1219 | 25 | ▶ | sub start_document { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
start_document: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1220 | 25 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1221 | 25 | $self->{'_lasttype'} = ''; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1222 | 25 | $self->{'_values'} = {}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1223 | 25 | $self->{'_result'} = undef; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1224 | 25 | $self->{'_elements'} = []; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1225 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1226 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1227 | =head2 end_document | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1228 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1229 | Title : end_document | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1230 | Usage : $eventgenerator->end_document | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1231 | Function: Handles an end document event | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1232 | Returns : Bio::Search::Result::ResultI object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1233 | Args : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1234 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1235 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1236 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1237 | 20 | ▶ | sub end_document { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
end_document: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1238 | 20 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1239 | 20 | return $self->{'_result'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1240 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1241 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1242 | =head2 result_count | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1243 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1244 | Title : result_count | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1245 | Usage : my $count = $searchio->result_count | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1246 | Function: Returns the number of results processed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1247 | Returns : integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1248 | Args : none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1249 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1250 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1251 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1252 | 0 | ▶ | sub result_count { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
result_count: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1253 | 0 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1254 | 0 | return $self->{'_result_count'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1255 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1256 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 1257 | 2 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||