Skip to content

Commit

Permalink
works with two adjacent inversios
Browse files Browse the repository at this point in the history
  • Loading branch information
baoxingsong committed Apr 16, 2024
1 parent b1afd05 commit 9e1331d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/impl/geneSyntenic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void longestPath(std::vector<AlignmentMatch> &pairedSimilarFragments, std::vecto
prev[idx] = jdx;
} else if (pairedSimilarFragments[jdx].getStrand() == NEGATIVE && pairedSimilarFragments[idx].getStrand() == NEGATIVE
&& pairedSimilarFragments[jdx].getRefEndPos() < pairedSimilarFragments[idx].getRefStartPos()
&& pairedSimilarFragments[jdx].getQueryEndPos() < pairedSimilarFragments[idx].getQueryStartPos() && scoreArray[jdx] > scoreThreshold) { // this block is under test, todo remind PHG guies
&& pairedSimilarFragments[jdx].getQueryEndPos() < pairedSimilarFragments[idx].getQueryStartPos() && scoreArray[jdx] > scoreThreshold) { // this block is under test, TODO vice versa for two positive strand blocks
scoreArray[idx] = scoreArray[jdx] + pairedSimilarFragments[idx].getScore();
prev[idx] = jdx;
} else if (pairedSimilarFragments[jdx].getStrand() != pairedSimilarFragments[idx].getStrand()
Expand Down
4 changes: 3 additions & 1 deletion src/service/TransferGffWithNucmerResult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,9 @@ void setupAnchorsWithSpliceAlignmentResult(const std::string &gffFilePath, const
delete [] query_seq_array;
}
}
} else if (lastStrand == NEGATIVE && alignmentMatch.getStrand() == NEGATIVE) {
} else if (lastStrand == NEGATIVE && alignmentMatch.getStrand() == NEGATIVE
&& alignmentMatch.getRefStartPos() > temp[m-1].getRefEndPos()
&& alignmentMatch.getQueryEndPos() < temp[m-1].getQueryStartPos() ) {
if (alignmentMatch.getRefStartPos() == startRef && alignmentMatch.getQueryEndPos() != startQuery) {

} else if (alignmentMatch.getRefStartPos() != startRef && alignmentMatch.getQueryEndPos() == startQuery) {
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

#pragma once

#define VERSION "1.2.3"
#define VERSION "1.2.4"
#define PROGRAMNAME "anchorwave"

0 comments on commit 9e1331d

Please sign in to comment.