@@ -63,12 +63,9 @@ using namespace gatb::core::tools::collections::impl;
usingnamespacestd;
// let's be clear here:
// UF hashes will be stored in 32 bits for efficiency (as I don't want to have a 64-bits UF for memory reasons, also, would require to modify unionFind.hpp)
typedefuint32_tuf_hashes_t;
// but there can be more than 2^{32} sequences in the glue file
typedefuint64_tuf_hashes_t;// UF hashes are the hash values of k-mers to be inserted into the UF data structure. Don't try setting to uint32_t, would be a disaster
typedefuint64_tseq_idx_t;
// so, potentially, more than 2^{32} UF hashes (but not necessarily, consider that some sequences don't need to be glued)
// what will happen is that more one UF class won't be linked to a single unitig, but multiple unitigs
typedefuint32_tuf_class_t;// UF class is the identifier of an element in the UF
// let's hope that there won't be saturation (only 1 UF class with all unitigs)
// if this happens, then "Top 10 glue partitions by size:" will show only one entry and BCALM will blow up in memory
// a fix would be to use a 64 bits UF (to be coded later)
glue_sequences(seqs_to_glue[i],seqs_to_glue_is_circular[i],sequences,abundances,kmerSize,seq,abs);// takes as input the indices of ordered sequences, whether that sequence is circular, and the markedSeq's themselves along with their abundances
booldebug_keep_glue_files=true;// for debugging // TODO enable it if -redo-bglue param was provided (need some info from UnitigsConstructionAlgorithm).
booldebug_keep_glue_files=false;// for debugging // TODO warning: if debug_keep_glue_files is set to 'false,' then the debug option '-redo-bglue' cannot work because it needs those bglue files
if(debug_keep_glue_files)
{
std::cout<<"debug: not deleting glue files"<<std::endl;