@@ -431,9 +431,14 @@ void linking_refinement(::std::vector<table_entry*> & links, map<unsigned long l
431
431
CharString l_part = chains[chain_it->first ];
432
432
string new_link = seqan::toCString (seqan::suffix (l_part,length (l_part) - len));
433
433
unsigned long long f_l = fingerprint (new_link);
434
- // NEW_OPT new_link.append(head);
434
+ # if defined(LOW_MEM_USG)
435
435
table_entry* t_new = new table_entry (f_l,fingerprint (head));
436
- // NEW_OPT table_entry* t_new = new table_entry(new_link,f_l,fingerprint(head));
436
+ #endif
437
+
438
+ #if !defined(LOW_MEM_USG)
439
+ new_link.append (head);
440
+ table_entry* t_new = new table_entry (new_link,f_l,fingerprint (head));
441
+ #endif
437
442
t_new->push_D_link (chain_it->first );
438
443
t_new->push_A_link (fingerprint (head));
439
444
links.push_back (t_new);
@@ -495,9 +500,14 @@ void linking_refinement(::std::vector<table_entry*> & links, map<unsigned long l
495
500
CharString l_part = chains[chain_it->first ];
496
501
string new_link = seqan::toCString (seqan::suffix (l_part,length (l_part) - len));
497
502
unsigned long long f_l = fingerprint (new_link);
498
- // NEW_OPT new_link.append(head);
503
+ # if defined(LOW_MEM_USG)
499
504
table_entry* t_new = new table_entry (f_l,fingerprint (head));
500
- // NEW_OPT table_entry* t_new = new table_entry(new_link,f_l,fingerprint(head));
505
+ #endif
506
+
507
+ #if !defined(LOW_MEM_USG)
508
+ new_link.append (head);
509
+ table_entry* t_new = new table_entry (new_link,f_l,fingerprint (head));
510
+ #endif
501
511
t_new->push_D_link (chain_it->first );
502
512
t_new->push_A_link (fingerprint (head));
503
513
links.push_back (t_new);
@@ -630,9 +640,14 @@ void check_overlapping_nodes(std::vector<table_entry*> & links, map<unsigned lon
630
640
string first_half;
631
641
assign (first_half,prefix (chains[short_blocks[i].frag_links .D_chain ],len));
632
642
string new_link_1 = first_half;
633
- // NEW_OPT new_link_1.append(ch);
643
+ # if defined(LOW_MEM_USG)
634
644
table_entry* link_1 = new table_entry (fingerprint (first_half),fingerprint (ch));
635
- // NEW_OPT table_entry* link_1 = new table_entry(new_link_1,fingerprint(first_half),fingerprint(ch));
645
+ #endif
646
+
647
+ #if !defined(LOW_MEM_USG)
648
+ new_link_1.append (ch);
649
+ table_entry* link_1 = new table_entry (new_link_1,fingerprint (first_half),fingerprint (ch));
650
+ #endif
636
651
link_1->push_D_link (short_blocks[i].frag_links .D_chain );
637
652
link_1->push_A_link (short_blocks[i].frag_links .A_chain );
638
653
links.push_back (link_1);
@@ -654,9 +669,14 @@ void check_overlapping_nodes(std::vector<table_entry*> & links, map<unsigned lon
654
669
string second_half;
655
670
assign (first_half,prefix (chains[short_blocks[i].other_links [j].D_chain ],len));
656
671
string new_link_2 = second_half;
657
- // NEW_OPT new_link_2.append(ch);
672
+ # if defined(LOW_MEM_USG)
658
673
table_entry* link_2 = new table_entry (fingerprint (second_half),fingerprint (ch));
659
- // NEW_OPT table_entry* link_2 = new table_entry(new_link_2,fingerprint(second_half),fingerprint(ch));
674
+ #endif
675
+
676
+ #if !defined(LOW_MEM_USG)
677
+ new_link_2.append (ch);
678
+ table_entry* link_2 = new table_entry (new_link_2,fingerprint (second_half),fingerprint (ch));
679
+ #endif
660
680
link_2->push_D_link (short_blocks[i].other_links [j].D_chain );
661
681
link_2->push_A_link (short_blocks[i].other_links [j].A_chain );
662
682
links.push_back (link_1);
0 commit comments