bcftools icon indicating copy to clipboard operation
bcftools copied to clipboard

fill-tags plugin bug for special sample names

Open ivistang opened this issue 2 years ago • 1 comments

Hi there, For a sample group file like below, fill-tags would show an unexpect error exit : "Could not parse the file2: C2 c".

C2 c
C3 c
C4 c

Actually, I succeeded to fix the problem by changing line 175 in fill-tags.c from

if ( smpl <= str.s+1 ) error("Could not parse the file: %s\n", str.s);

to

if ( smpl <= str.s ) error("Could not parse the file: %s\n", str.s);

. I wonder if this is a proper solution for the problem. Thanks for any help!

Best, Ivis

ivistang avatar May 31 '23 05:05 ivistang

This looks like a duplicate of #1933.

The current code does not contain an error message "Could not parse the file2:", could you please check if you get an error with the latest version of bcftools (1.17) and if yes, provide a small test case to reproduce the problem?

pd3 avatar Jun 05 '23 09:06 pd3