Skip to content

Errors out when the chain map validator finds an issue#92

Merged
milkschen merged 4 commits intomainfrom
chain_check
Oct 9, 2025
Merged

Errors out when the chain map validator finds an issue#92
milkschen merged 4 commits intomainfrom
chain_check

Conversation

@milkschen
Copy link
Owner

@milkschen milkschen commented Oct 9, 2025

The leviosam2 algorithm does not support the case when two or more intervals in the source genome overlap. Previously an error message was displayed, but the program could still proceed. In this PR, we update the program behavior to error out when validation fails.

The below shows the functional change. Other changed lines are tests and docs.

    if (!validate_intervals()) {
        std::cerr << "[E::chain::build] Interval validation failed\n";
        exit(1);
    }

@milkschen milkschen marked this pull request as ready for review October 9, 2025 23:00
@milkschen milkschen merged commit b2bb023 into main Oct 9, 2025
8 checks passed
@milkschen milkschen deleted the chain_check branch October 9, 2025 23:07
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.

1 participant