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

Fail if output type does not match file extension #68

Closed
Will-Tyler opened this issue Aug 29, 2024 · 0 comments · Fixed by #70
Closed

Fail if output type does not match file extension #68

Will-Tyler opened this issue Aug 29, 2024 · 0 comments · Fixed by #70

Comments

@Will-Tyler
Copy link
Contributor

Description

In #66, @tomwhite suggests that vcztools should fail if the user tries to write the output (which is uncompressed VCF) to a file path with an extension that does not correspond to uncompressed VCF (e.g. .bcf or .vcz.gz).

In bcftools, the user can specify both the ouput file (with -o) and the output format (with -O). If the user specifies an output type that is different from the output type indicated by the output file's extension, then bcftools uses the output type indicated by the extension.

Since vcztools only supports uncompressed VCF at the moment, vcztools should fail if the output type indicated by the output file's extension is not uncompressed VCF.

References

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 a pull request may close this issue.

1 participant