X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=alignment.cpp;h=9ab17004bc146bc97168373995c98b932dcb9c3f;hp=d543dbd38c2ef048aa1d536049e91d046a347685;hb=050a3ff02473a3d4c0980964e1a9ebe52e55d6b8;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0 diff --git a/alignment.cpp b/alignment.cpp index d543dbd..9ab1700 100644 --- a/alignment.cpp +++ b/alignment.cpp @@ -15,12 +15,13 @@ /**************************************************************************************************/ -Alignment::Alignment() { /* do nothing */ } +Alignment::Alignment() { m = MothurOut::getInstance(); /* do nothing */ } /**************************************************************************************************/ Alignment::Alignment(int A) : nCols(A), nRows(A) { try { + m = MothurOut::getInstance(); alignment.resize(nRows); // For the Gotoh and Needleman-Wunsch we initialize the dynamic programming for(int i=0;i newAMap; + for (map::iterator it = ABaseMap.begin(); it != ABaseMap.end(); it++) { + int spot = it->second; + newAMap[pairwiseLength-spot-1] = it->first-1; + } + ABaseMap = newAMap; + map newBMap; + for (map::iterator it = BBaseMap.begin(); it != BBaseMap.end(); it++) { + int spot = it->second; + newBMap[pairwiseLength-spot-1] = it->first-1; + } + BBaseMap = newBMap; + for(int i=0;i Alignment::getSeqAAlnBaseMap(){ + return ABaseMap; +} +/**************************************************************************************************/ +map Alignment::getSeqBAlnBaseMap(){ + return BBaseMap; +} /**************************************************************************************************/ int Alignment::getTemplateEndPos(){