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

Filter non ASCII character #291

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Filter non ASCII character #291

merged 2 commits into from
Oct 21, 2024

Conversation

JeanMainguy
Copy link
Member

We’ve noticed that many issues in PPanGGOLiN are caused by non-ASCII characters in the product field of CDS annotations. This often happens with genomes annotated by Bakta, where some COG annotations include these characters (check out the related Bakta issue here).

Problem

The HDF5 tables used by PPanGGOLiN can’t handle non-ASCII characters. When these characters show up in the product field, they cause confusing errors and failures in the tool.

Implemented Solution

This PR fixes the problem by automatically checking for non-ASCII characters in the product field and replacing them with underscores (_). This change will help PPanGGOLiN run smoothly without errors related to non-ASCII characters.

Related PPanGGOLiN Issues

@jpjarnoux jpjarnoux marked this pull request as ready for review October 18, 2024 14:54
@jpjarnoux jpjarnoux self-requested a review October 18, 2024 14:55
@JeanMainguy JeanMainguy force-pushed the filter_non_ascii_char branch from 425a785 to fbe6132 Compare October 18, 2024 14:59
@jpjarnoux jpjarnoux merged commit 1fd1092 into dev Oct 21, 2024
4 checks passed
@axbazin axbazin deleted the filter_non_ascii_char branch October 29, 2024 16:34
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