Skip to content

Commit

Permalink
added some comments to printMutations
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHarshShow committed Feb 13, 2024
1 parent f2e286c commit 3df9c1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PangenomeMAT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3740,6 +3740,7 @@ void PangenomeMAT::Tree::printMutations(std::ofstream& fout) {
// }


// Get reference sequence
sequence_t rootSequence;
blockExists_t rootBlockExists;
blockStrand_t rootBlockStrand;
Expand All @@ -3753,7 +3754,7 @@ void PangenomeMAT::Tree::printMutations(std::ofstream& fout) {

tbb::concurrent_unordered_map< size_t, bool > rootPresentBlocks;

// std::set< std::tuple< int64_t, int64_t, int64_t > > validPositions;
// convert PanMAT coordinate to global reference coordinate
size_t rootCtr = 0;
for(size_t i = 0; i < rootSequence.size(); i++) {
if(rootBlockExists[i].first) {
Expand Down Expand Up @@ -3823,6 +3824,7 @@ void PangenomeMAT::Tree::printMutations(std::ofstream& fout) {

nodeMutations[root->identifier];

// Compute mutations for each of the other sequences
tbb::parallel_for_each(allNodes, [&](auto u) {
if(u.first == root->identifier) {
return;
Expand Down

0 comments on commit 3df9c1a

Please sign in to comment.