@@ -431,7 +431,7 @@ SvgCreator::SvgCreator(char *inputFileName, char *outputFile, map<string, string
431
431
//
432
432
// //SETTINGS EDGE INFO
433
433
// if (stoi(configParameter->at("SHOW_EDGE_INFO")) == 1) {
434
- // edge = nodeInfoObj.getEdge(nodeInfoObj.getEdgeIndex(), nodeInfoObj.getEdgeLength());
434
+ // edgeIdx = nodeInfoObj.getEdge(nodeInfoObj.getEdgeIndex(), nodeInfoObj.getEdgeLength());
435
435
// }
436
436
//
437
437
// //SETTING COLOR ACCORDING WITH WHAT I WANT TO SHOW
@@ -440,9 +440,9 @@ SvgCreator::SvgCreator(char *inputFileName, char *outputFile, map<string, string
440
440
// long depthThreshold = stoi(configParameter->at("BASIC_DEPTH_THRESHOLD"));
441
441
// if (stoi(configParameter->at("BASIC_DEPTH_WITH_THRESHOLD")) == 1) {
442
442
// if (nodeInfoObj.getDepth() > depthThreshold) {
443
- // SvgUtils::printSvgNodeBlock(&svg_out, edge , w, x, y, H, blenchedRgbColor);
443
+ // SvgUtils::printSvgNodeBlock(&svg_out, edgeIdx , w, x, y, H, blenchedRgbColor);
444
444
// } else {
445
- // SvgUtils::printSvgNodeBlock(&svg_out, edge , w, x, y, H, rgbColor);
445
+ // SvgUtils::printSvgNodeBlock(&svg_out, edgeIdx , w, x, y, H, rgbColor);
446
446
// }
447
447
// } else {
448
448
// //COLOR WITH A DEPTH GRADIENT
@@ -455,9 +455,9 @@ SvgCreator::SvgCreator(char *inputFileName, char *outputFile, map<string, string
455
455
//
456
456
// if (nodeInfoObj.getDepth() >= BASIC_KVALUE_KMER &&
457
457
// hashmap[nodeInfoObj.getFatherLabel()].getObjNodeDepth() < BASIC_KVALUE_KMER) { //Full color
458
- // SvgUtils::printSvgNodeBlock(&svg_out, edge , w, x, y, H, rgbColor);
458
+ // SvgUtils::printSvgNodeBlock(&svg_out, edgeIdx , w, x, y, H, rgbColor);
459
459
// } else { //Blenched
460
- // SvgUtils::printSvgNodeBlock(&svg_out, edge , w, x, y, H, blenchedRgbColor);
460
+ // SvgUtils::printSvgNodeBlock(&svg_out, edgeIdx , w, x, y, H, blenchedRgbColor);
461
461
// }
462
462
//
463
463
//
@@ -467,15 +467,15 @@ SvgCreator::SvgCreator(char *inputFileName, char *outputFile, map<string, string
467
467
// blenchedHsvColor.v = 100;
468
468
// blenchedHsvColor.s = (100 * frequency) / maxSuffixArrayLength + 40;
469
469
//
470
- // SvgUtils::printSvgNodeBlock(&svg_out, edge , w, x, y, H, SvgUtils::HsvToRgb(blenchedHsvColor));
470
+ // SvgUtils::printSvgNodeBlock(&svg_out, edgeIdx , w, x, y, H, SvgUtils::HsvToRgb(blenchedHsvColor));
471
471
//
472
472
// } else if (stoi(configParameter->at("BASIC_FREQUENCY_COLOR_TYPE")) == 2) {
473
473
// //the node with a frequency lower than a setted thresold are bleached.
474
474
// if ((frequency >= stoi(configParameter->at("BASIC_FREQUENCY_THRESHOLD"))) &&
475
475
// (depth >= stoi(configParameter->at("BASIC_DEPTH_THRESHOLD")))) { //Full color
476
- // SvgUtils::printSvgNodeBlock(&svg_out, edge , w, x, y, H, rgbColor);
476
+ // SvgUtils::printSvgNodeBlock(&svg_out, edgeIdx , w, x, y, H, rgbColor);
477
477
// } else { //Blenched
478
- // SvgUtils::printSvgNodeBlock(&svg_out, edge , w, x, y, H, blenchedRgbColor);
478
+ // SvgUtils::printSvgNodeBlock(&svg_out, edgeIdx , w, x, y, H, blenchedRgbColor);
479
479
// }
480
480
// } else {
481
481
// //deault
@@ -484,7 +484,7 @@ SvgCreator::SvgCreator(char *inputFileName, char *outputFile, map<string, string
484
484
//
485
485
// } else {
486
486
// //default
487
- // SvgUtils::printSvgNodeBlock(&svg_out, edge , w, x, y, H, rgbColor);
487
+ // SvgUtils::printSvgNodeBlock(&svg_out, edgeIdx , w, x, y, H, rgbColor);
488
488
// }
489
489
//
490
490
//
@@ -603,13 +603,13 @@ SvgCreator::SvgCreator(char *inputFileName, char *outputFile, map<string, string
603
603
// if (stoi(configParameter->at("SHOW_EDGE_INFO")) == 1) {
604
604
// if (V.is_leaf) {
605
605
// if (V.edge_length > stoi(configParameter->at("MAX_LEAF_CHAR"))) {
606
- // edge = nodeInfoObj.getEdge(V.edge_index, stoul(configParameter->at("MAX_LEAF_CHAR")));
607
- // edge += "...";
606
+ // edgeIdx = nodeInfoObj.getEdge(V.edge_index, stoul(configParameter->at("MAX_LEAF_CHAR")));
607
+ // edgeIdx += "...";
608
608
// } else {
609
- // edge = nodeInfoObj.getEdge(V.edge_index, V.edge_length);
609
+ // edgeIdx = nodeInfoObj.getEdge(V.edge_index, V.edge_length);
610
610
// }
611
611
// } else {
612
- // edge = nodeInfoObj.getEdge(V.edge_index, V.edge_length);
612
+ // edgeIdx = nodeInfoObj.getEdge(V.edge_index, V.edge_length);
613
613
// }
614
614
// }
615
615
//
@@ -618,29 +618,29 @@ SvgCreator::SvgCreator(char *inputFileName, char *outputFile, map<string, string
618
618
// //SETTING COLOR ACCORDING WITH WHAT I WANT TO SHOW
619
619
// if (configParameter->at("MAXREP_MODALITY") == "frequency") {
620
620
// if (V.maxrep_type == MAXREP_TYPE::non_supermaximal) {
621
- // SvgUtils::printSvgNodeBlock2(&svg_out, edge , V.w, V.posX, V.posY, H,
621
+ // SvgUtils::printSvgNodeBlock2(&svg_out, edgeIdx , V.w, V.posX, V.posY, H,
622
622
// configParameter->at("MAXREP_NONMAXREP_COLOR"), 1);
623
623
// } else {
624
- // SvgUtils::printSvgNodeBlock2(&svg_out, edge , V.w, V.posX, V.posY, H,
624
+ // SvgUtils::printSvgNodeBlock2(&svg_out, edgeIdx , V.w, V.posX, V.posY, H,
625
625
// configParameter->at("MAXREP_MAXREP_COLOR"), V.opacity);
626
626
// }
627
627
// } else if (configParameter->at("MAXREP_MODALITY") == "type") {
628
628
//
629
629
// switch (V.maxrep_type) {
630
630
// case MAXREP_TYPE::non_supermaximal :
631
- // SvgUtils::printSvgNodeBlock2(&svg_out, edge , V.w, V.posX, V.posY, H,
631
+ // SvgUtils::printSvgNodeBlock2(&svg_out, edgeIdx , V.w, V.posX, V.posY, H,
632
632
// configParameter->at("MAXREP_NONMAXREP_COLOR"), V.opacity);
633
633
// break;
634
634
// case MAXREP_TYPE::maxrep :
635
- // SvgUtils::printSvgNodeBlock2(&svg_out, edge , V.w, V.posX, V.posY, H,
635
+ // SvgUtils::printSvgNodeBlock2(&svg_out, edgeIdx , V.w, V.posX, V.posY, H,
636
636
// configParameter->at("MAXREP_MAXREP_COLOR"), V.opacity);
637
637
// break;
638
638
// case MAXREP_TYPE::nearsupermaximal :
639
- // SvgUtils::printSvgNodeBlock2(&svg_out, edge , V.w, V.posX, V.posY, H,
639
+ // SvgUtils::printSvgNodeBlock2(&svg_out, edgeIdx , V.w, V.posX, V.posY, H,
640
640
// configParameter->at("MAXREP_NEARSUPERMAXIMAL_COLOR"), V.opacity);
641
641
// break;
642
642
// case MAXREP_TYPE::supermaximalrep :
643
- // SvgUtils::printSvgNodeBlock2(&svg_out, edge , V.w, V.posX, V.posY, H,
643
+ // SvgUtils::printSvgNodeBlock2(&svg_out, edgeIdx , V.w, V.posX, V.posY, H,
644
644
// configParameter->at("MAXREP_SUPERMAXIMAL_COLOR"), V.opacity);
645
645
// break;
646
646
// default :
0 commit comments