Skip to content

Commit a8acd28

Browse files
foleyjpgouriano
foleyjp
authored andcommitted
JIRA: RW-2394 - Implemented fix. Mismatches should be counted in units of the alignment target.
AUTHOR: foleyjp MERGE_REQUEST: 243 792343c03b84d59715a0b909023cd3c4fb66ed9d git-svn-id: https://anonsvn.ncbi.nlm.nih.gov/repos/v1/trunk/c++@103665 78c7ea69-d796-4a43-9a09-de51944f1b03
1 parent b3b366a commit a8acd28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objtools/writers/gff3_writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ bool CGff3Writer::xAssignAlignmentSplicedGap(
643643
default:
644644
break;
645645
case CSpliced_exon_chunk::e_Mismatch:
646-
record.AddMatch(chunk.GetMismatch());
646+
record.AddMatch((chunk.GetMismatch()+tgtWidth-1)/tgtWidth);
647647
break;
648648
case CSpliced_exon_chunk::e_Diag:
649649
// Round to next multiple of tgtWidth to account for reverse frameshifts

0 commit comments

Comments
 (0)