Skip to content

Commit

Permalink
fix showEdge()
Browse files Browse the repository at this point in the history
  • Loading branch information
twolinin committed Jan 5, 2024
1 parent 75223de commit bdd36cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PhasingGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ float SubEdge::getAltReadCount(int targetPos){

std::vector<std::string> SubEdge::showEdge(std::string message){
std::vector<std::string> result;
for(std::map<int, int>::iterator edgeIter = refReadCount->begin() ; edgeIter != refReadCount->end() ; edgeIter++ ){
for(std::map<int, float >::iterator edgeIter = refReadCount->begin() ; edgeIter != refReadCount->end() ; edgeIter++ ){
result.push_back(message +" -> ref_" + std::to_string((*edgeIter).first) + "[label=" + std::to_string((*edgeIter).second) + "];");
}
for(std::map<int, int>::iterator edgeIter = altReadCount->begin() ; edgeIter != altReadCount->end() ; edgeIter++ ){
for(std::map<int, float >::iterator edgeIter = altReadCount->begin() ; edgeIter != altReadCount->end() ; edgeIter++ ){
result.push_back(message +" -> alt_" + std::to_string((*edgeIter).first) + "[label=" + std::to_string((*edgeIter).second) + "];");
}
return result;
Expand Down

0 comments on commit bdd36cb

Please sign in to comment.