Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

marcelm
Copy link
Collaborator

@marcelm marcelm commented Jun 5, 2024

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
Copy link
Owner

ksahlin commented Jun 5, 2024

approved

If `cmake` is run with `-DTRACE=ON`, then some `#ifdef`s are 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 just have this part of the code, disabled by
default, but easily enabled.
@marcelm marcelm merged commit 3a97f6b into main Jun 5, 2024
9 checks passed
@marcelm marcelm deleted the trace branch June 5, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants