Committing minor comments before merging branch with master

This commit is contained in:
Celine Mercier
2017-07-06 10:56:39 +02:00
parent 717ee46f08
commit f03928c679
5 changed files with 14 additions and 3 deletions

View File

@ -883,6 +883,10 @@ int obi_lcs_align_two_columns(OBIDMS_p dms,
return -1;
}
// TODO check this
if (!similarity_mode && normalize && (threshold > 0))
threshold = 1.0 - threshold;
seq1_count = (seq1_view->infos)->line_count;
seq2_count = (seq2_view->infos)->line_count;
@ -932,6 +936,11 @@ int obi_lcs_align_two_columns(OBIDMS_p dms,
// Compute alignment score
if ((threshold == 0) || (score == -1.0)) // no threshold, or filter passed: align
score = obiblob_sse_banded_lcs_align(blob1, blob2, threshold, normalize, reference, similarity_mode, &lcs_length, &ali_length);
// TODO check this
// if (print && !lcsmode && normalize)
// score = 1.0 - score;
}
if ((score >= 0) && (((normalize || similarity_mode) && (score >= threshold)) || ((!similarity_mode && !normalize) && (score <= threshold))))