-
Notifications
You must be signed in to change notification settings - Fork 240
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
bcftools +split will fail if sample names contain the "/" character #1404
Comments
freeseek
changed the title
bcftools +split will fail if sample names contain the "/
bcftools +split will fail if sample names contain the "/" character
Feb 6, 2021
Thank you for raising the issue. This is now addressed by 200bbba. |
There is a minor regression bug in the last fix. The code:
is missing a |
pd3
added a commit
that referenced
this issue
Sep 8, 2021
This is now fixed, thank you. (Note that the current develop is waiting for samtools/htslib#1327 to be merged) |
No need for me to push a new release just for this issue. I have it sorted out on my end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a sample name contains the
/
character, such asA/B
, bcftools split will fail with error message:This is mostly the result of the VCF format not restricting sample names from using any weird characters, while UNIX filesystem don't allow
/
character in file names.One quick solution would be to change this line of code in
split.c
:to
However, do notice that this fix would work okay for UNIX filesystems, while a similar issue would arise with Windows filesystems with a wider range of characters.
The text was updated successfully, but these errors were encountered: