Skip to content
Snippets Groups Projects
Commit 037ece9b authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Implement new config option "do_similarity_scoring" (turns exonerate on or off).

parent e76bd6ac
No related branches found
No related tags found
No related merge requests found
......@@ -58,17 +58,25 @@ sub score_exons {
# score using overlaps, then exonerate
my $matrix = $self->overlap_score;
my $exonerate_matrix = $self->exonerate_score($matrix);
# log stats before matrix merging
$self->logger->info("\nOverlap scoring matrix:\n");
$self->log_matrix_stats($matrix);
$self->logger->info("\nExonerate scoring matrix:\n");
$self->log_matrix_stats($exonerate_matrix);
# merge matrices
$self->logger->info("\nMerging scoring matrices...\n", 0, 'stamped');
$matrix->merge($exonerate_matrix);
if ( $self->conf()->param('do_similarity_scoring') ) {
my $exonerate_matrix = $self->exonerate_score($matrix);
# log stats before matrix merging
$self->logger->info("\nOverlap scoring matrix:\n");
$self->log_matrix_stats($matrix);
$self->logger->info("\nExonerate scoring matrix:\n");
$self->log_matrix_stats($exonerate_matrix);
# merge matrices
$self->logger->info( "\nMerging scoring matrices...\n",
0, 'stamped' );
$matrix->merge($exonerate_matrix);
} else {
$self->logger->info("\nOverlap scoring matrix:\n");
$self->log_matrix_stats($matrix);
}
$self->logger->info("Done.\n\n", 0, 'stamped');
# debug logging
......@@ -79,7 +87,7 @@ sub score_exons {
# log stats of combined matrix
$self->logger->info("Combined scoring matrix:\n");
$self->log_matrix_stats($matrix);
$self->logger->info("\nDone with exon scoring.\n\n", 0, 'stamped');
return $matrix;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment