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

Improve error message when coordinate set contains duplicate values #638

Merged
merged 3 commits into from
Jul 21, 2021

Conversation

tskir
Copy link
Collaborator

@tskir tskir commented Jul 2, 2021

Closes #637.

Previously, when the coordinate set contains lots of duplicate values
(on the order of thousands and more), the exception would format and
dump all of them to stderr, obscuring the initial error message.

Now, only the number of duplicated regions is output, with up to ten
first regions, making the error more readable in all cases.

tskir added 2 commits July 2, 2021 23:12
Closes #637.

Previously, when the coordinate set contains lots of duplicate values
(on the order of thousands and more), the exception would format and
dump all of them to stderr, obscuring the initial error message.

Now, only the number of duplicated regions is output, with up to ten
first regions, making the error more readable in all cases.
@tskir tskir requested a review from etal July 2, 2021 22:18
@tskir
Copy link
Collaborator Author

tskir commented Jul 2, 2021

The updated error message looks like this:

image

@tskir tskir added enhancement ready for merge Reviewed and approved at least once labels Jul 13, 2021
Copy link
Owner

@etal etal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better, thanks.

@etal etal merged commit 36ce0da into master Jul 21, 2021
@etal etal deleted the 637-duplication-error-message branch July 21, 2021 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ready for merge Reviewed and approved at least once
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cnvkit fix doesn't produce cnr file
2 participants