etal / cnvkit

Copy number variant detection from targeted DNA sequencing
http://cnvkit.readthedocs.org
Other
547 stars 165 forks source link

Improve error message when coordinate set contains duplicate values #638

Closed tskir closed 3 years ago

tskir commented 3 years ago

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 commented 3 years ago

The updated error message looks like this:

image