Skip to content

Commit

Permalink
deque cannot be const
Browse files Browse the repository at this point in the history
  • Loading branch information
gf777 committed Jul 4, 2024
1 parent 7366c29 commit 2d4e47a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/kreeq.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class DBG : public Kmap<DBG, UserInputKreeq, uint64_t, DBGkmer, DBGkmer32> { //

bool DBGtoVariants(InSegment *inSegment);

std::pair<bool,std::deque<DBGpath>> searchVariants(std::pair<const uint64_t,DBGkmer32> source, std::array<uint16_t, 2> mapRange, const std::deque<const uint64_t> &targetsQueue, const phmap::parallel_flat_hash_map<uint64_t,bool> &targetsMap, ParallelMap32* localGraphCache);
std::pair<bool,std::deque<DBGpath>> searchVariants(std::pair<const uint64_t,DBGkmer32> source, std::array<uint16_t, 2> mapRange, const std::deque<uint64_t> &targetsQueue, const phmap::parallel_flat_hash_map<uint64_t,bool> &targetsMap, ParallelMap32* localGraphCache);

bool variantsToGFA(InSegment *inSegment, Log &threadLog);

Expand Down
4 changes: 2 additions & 2 deletions src/variants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bool DBG::DBGtoVariants(InSegment *inSegment) {
while(explored < kcount) {

mapRange = {0,0};
std::deque<const uint64_t> targetsQueue;
std::deque<uint64_t> targetsQueue;
phmap::parallel_flat_hash_map<uint64_t,bool> targetsMap;

while (mapRange[1] < mapCount) {
Expand Down Expand Up @@ -176,7 +176,7 @@ bool DBG::DBGtoVariants(InSegment *inSegment) {
return true;
}

std::pair<bool,std::deque<DBGpath>> DBG::searchVariants(std::pair<const uint64_t,DBGkmer32> source, std::array<uint16_t, 2> mapRange, const std::deque<const uint64_t> &targetsQueue, const phmap::parallel_flat_hash_map<uint64_t,bool> &targetsMap, ParallelMap32* localGraphCache) { // dijkstra variant search
std::pair<bool,std::deque<DBGpath>> DBG::searchVariants(std::pair<const uint64_t,DBGkmer32> source, std::array<uint16_t, 2> mapRange, const std::deque<uint64_t> &targetsQueue, const phmap::parallel_flat_hash_map<uint64_t,bool> &targetsMap, ParallelMap32* localGraphCache) { // dijkstra variant search

bool explored = false; // true if we reached a node in the original graph
std::vector<uint64_t> destinations;
Expand Down

0 comments on commit 2d4e47a

Please sign in to comment.