Skip to content

Fixed regex in VCF parser #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Schmytzi
Copy link

@Schmytzi Schmytzi commented Mar 18, 2025

Closes #6 .

Split Regex for contig header attributes into two.
Regex for ID taken from VCF 4.5 spec. Length allows only for numbers now.

Alternatively, would you be open to use pysam's VCF parser, instead? It looks like there has already been some work on switching to it.

@oxygen311
Copy link

Hi @Schmytzi, thanks for this contribution! We can't accept merge requests directly from GitHub due to our internal review process, but we'll investigate this internally and aim to include a fix in the next release if necessary.

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.

Spectre fails with ValueError when contig header contains attributes other than ID and length
2 participants