ksahlin / strobealign

Aligns short reads using dynamic seed size with strobemers
MIT License
128 stars 16 forks source link

Add a debugging compilation option for showing list of NAMs #427

Closed marcelm closed 3 weeks ago

marcelm commented 3 weeks ago

If cmake is run with -DTRACE=ON, then some #ifdefs become active that make strobealign print the list of found NAMs for each query.

I find myself adding this type of output quite often for debugging purposes, and think it would be nice to have this as part of the code, disabled by default, but easily enabled.

CHUNK_SIZE is forced to 1 when tracing is on to ensure that SAM/PAF output comes right after the corresponding tracing output. (Otherwise you get the tracing output for all queries within one chunk follewd by all the SAM/PAF output for all queries in the chunk.)

ksahlin commented 3 weeks ago

approved