Commit ee0bb421 authored by Cyprien Borée's avatar Cyprien Borée

Fix debug filter

The informations were displayed multiple times instead of once.

For more informations see #3298.
parent 026cde6f
Pipeline #32542 failed with stages
in 39 minutes and 48 seconds
......@@ -70,11 +70,11 @@ BioReader FilterWithACAutomaton::filterBioReaderWithACAutomaton(
#ifdef DEBUG_FILTER /* Display the number of k-mers found for each genes. */
int currentAsciiNumber;
string previousLabel = "", currentLabel;
currentAsciiNumber = SPECIFIC_KMERS_NUMBER;
previousLabel = extractGeneName(originalBioReader.label(0));
for(int i = 1;i < originalBioReader.size(); ++i){
for(auto const mx: mapAho){
for(auto const mx: mapAho){
string previousLabel = "", currentLabel;
currentAsciiNumber = SPECIFIC_KMERS_NUMBER;
previousLabel = extractGeneName(originalBioReader.label(0));
for(int i = 1;i < originalBioReader.size(); ++i){
currentLabel = extractGeneName(originalBioReader.label(i));
if(currentLabel != previousLabel){
currentAsciiNumber++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment