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

Bug fix: Better region parsing #72

Merged
merged 1 commit into from
Apr 4, 2025
Merged

Conversation

tprodanov
Copy link
Contributor

@tprodanov tprodanov commented Apr 3, 2025

In the current version, gw cannot parse regions with contigs containing hyphens -, for example haplotype1-0000019:2715709-2720709. This pull request fixes this issue, as well as simplifies the parsing code.
It may be a bit slower than the original version, but much cleaner.

@tprodanov tprodanov changed the title Better region parsing Bug fix: Better region parsing Apr 3, 2025
@kcleal
Copy link
Owner

kcleal commented Apr 4, 2025

Hi @tprodanov,

Thanks, I think the PR looks good. The old code could also parse a 5 column format including markerPos and markerPosEnd. However, I dont think this extra functionality is used anywhere. I will have to check a few places before I merge it.

@kcleal kcleal self-assigned this Apr 4, 2025
@kcleal kcleal self-requested a review April 4, 2025 12:58
@kcleal kcleal merged commit 0e54470 into kcleal:master Apr 4, 2025
5 checks passed
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