| 1 | ### Changelog |
| 2 | |
| 3 | API only. |
| 4 | |
| 5 | * **15-06-2022** |
| 6 | * Function `CompactedDBG()::write()` takes additional arguments with default values: |
| 7 | * `compress_output` indicates whether the output should be compressed |
| 8 | * `write_index_file` indicates whether an index file should be generated to enable faster graph loading |
| 9 | * `GFA_output`, `FASTA_output` and `BFG_output` to select the output file format (previously, setting `outputGFA` set to false would automatically make `write()` output the graph in FASTA format). |
| 10 | |
| 11 | Beware that the new arguments come with default values which could override the default values of the previous versions of `write()`, e.g, the default value of parameter `FASTA_output` (`write()` with 8 parameters) could be used as the default value of parameter `verbose` if your code is not updated (`write()` with 5 parameters). |
| 12 | * There exists two versions of `CompactedDBG::read()` and `ColoredCDBG::read()`, the "usual" (slower) graph reading function and the same function with an additional index graph file as input. Using the index graph file as input considerably speeds-up the graph loading in memory. The "usual" graph reading function will automatically use the graph index file if available. |
| 13 | * **04-28-2022** |
| 14 | * Color files generated prior to version 1.0.6.2 are **not** compatible with version 1.0.6.2 and onward. |
| 15 | * `CompactedDBG::simplify()` and `ColoredCDBG::simplify()` now return true even if no simplification was performed ("null-simplification" in case all input parameters are set to false). The goal is to only return false if the graph is invalid or in case of unexpected behavior. |
| 16 | * **08-29-2018** |
| 17 | * `UnitigColors::const_iterator` only considers now the k-mer positions of the unitig mapping provided in the `UnitigMap`/`UnitigColorMap` parameter of `UnitigColors::begin()`. |
| 18 | * **08-28-2018** |
| 19 | * Functions `CDBG_Data_t::serialize()` and `CCDBG_Data_t::serialize()` have now one parameter which is a `const_UnitigMap`/`const_UnitigColorMap` reference representing the (reference) unitig to which the data are associated to. |
| 20 | * **08-23-2018** |
| 21 | * Function `UnitigMap::toString()` was ambiguous as if it would generate the string of the mapped sequence or the string of the reference unitig used in the mapping. It has been replaced by two functions: `UnitigMap::mappedSequenceToString()` and `UnitigMap::referenceUnitigToString()`. |
| 22 | * **08-07-2018** |
| 23 | * Add de Bruijn graphs merging functions (`CompactedDBG::merge()` and `ColoredCDBG::merge()`) and addition assignment operators (`CompactedDBG::operator+=()` and `ColoredCDBG::operator+=()`, same as `merge()` but uses only one thread). |
| 24 | * Add de Bruijn graphs comparison functions `CompactedDBG::operator==()`, `CompactedDBG::operator!=()`, `ColoredCDBG::operator==()` and `ColoredCDBG::operator!=()`. |
| 25 | * Delete `CompactedDBG::empty()` and `ColoredCDBG::empty()` to be consistent with STD containers (those functions were emptying the graph of its content while `empty()` of STD containers returns whether the container is empty). Now, to empty the graph, use `CompactedDBG::clear()` and `ColoredCDBG::clear()`. |
| 26 | * Major changes in the abstract class `CDBG_Data_t` and `CCDBG_Data_t`: |
| 27 | * All the functions are now **non**-static. |
| 28 | * Function `join()` is renamed `concat()` and works a bit differently (have a look at the doc). Quickly, `join()` was concatenating two unitigs A and B such that the result was A=AB and B was deleted from the graph. Now, `concat()` deletes A and B from the graph and adds a new unitig C=AB. |
| 29 | * Function `sub()` is renamed `extract()`. |
| 30 | * Add the functions `merge()` and `clear()` which **must** be overloaded too in the derived class of `CDBG_Data_t` and `CCDBG_Data_t`. |