Skip to content

Commit

Permalink
* ParseAligns/ParseAligns.cpp (handleAlignmentPair):
Browse files Browse the repository at this point in the history
For an inverted repeat, print only the one alignment because only one
distance estimate is expected. For a non-inverted repeat, two distance
esimates are expected (both to and from the repeat to itself) so print
both alignments.


git-svn-id: https://svn.bcgsc.ca/svn/abyss/trunk@49773 ad02020f-2a26-4133-947e-1829317c1416
  • Loading branch information
Shaun Jackman authored and sjackman committed Mar 19, 2012
1 parent 5d9cef2 commit 4014f50
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions ParseAligns/ParseAligns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,19 @@ static void handleAlignmentPair(ReadAlignMap::const_iterator iter,
stats.numMisoriented++;
}
if (size < opt::k) {
// Print the alignment
/* For an inverted repeat, print only the
* one alignment because only one distance
* estimate is expected. For a non-inverted
* repeat, two distance esimates are expected
* (both to and from the repeat to itself) so
* print both alignments. */
pairedAlignFile
<< currID << ' ' << a0 << ' '
<< pairID << ' ' << a1 << '\n'
<< pairID << ' ' << a1 << ' '
<< currID << ' ' << a0 << '\n';
<< pairID << ' ' << a1 << '\n';
if (a0.isRC != a1.isRC)
pairedAlignFile
<< pairID << ' ' << a1 << ' '
<< currID << ' ' << a0 << '\n';
assert(pairedAlignFile.good());
}
} else {
Expand Down

0 comments on commit 4014f50

Please sign in to comment.