Skip to content

Commit

Permalink
Cigar string and read different length bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaricb committed Nov 4, 2019
1 parent 220d611 commit 3bd398d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/alignment/alignment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ int CheckAlignmentSane(std::vector<unsigned char> &alignment, const SingleSequen
// If there are insertions following deletions (or other way around), something is wrong again.
if ((last_move == EDLIB_I && alignment_char == EDLIB_D) || (last_move == EDLIB_D && alignment_char == EDLIB_I)) {
LogSystem::GetInstance().Log(VERBOSE_LEVEL_ALL_DEBUG, true, FormatString("CheckAlignmentSane returned false! return 2. Consecutive I and D operations! last_move = %c, alignment_char = %c. num_same_moves = %ld, qname: '%s', read_length: %ld, ref_length: %ld\n", (last_move == EDLIB_I) ? 'I' : 'D', (alignment_char == EDLIB_I) ? 'I' : 'D', num_same_moves, read->get_header(), read_length, ref_length), "CheckAlignmentSane");
return 0;
return read_length != read->get_sequence_length();
}
}
if (i < alignment.size()) {
Expand Down
2 changes: 1 addition & 1 deletion src/graphmap/process_read.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ int GraphMap::RNAGenerateAlignments_(int order_number, MappingData *mapping_data
cigarExons2.push_back(cigExon);
}

double difference = abs(score22-score);
double difference = fabs(score22-score);
betterCigarExons = cigarExons1;

if(aln_result2->rv == is::AlignmentReturnValue::OK) {
Expand Down

0 comments on commit 3bd398d

Please sign in to comment.