This is the official development repository for BCFtools. See installation instructions and other documentation here http://samtools.github.io/bcftools/howtos/install.html
The filtering framework requires that nvalues==str_value.l. However, when the function filters_set_genotype_string() in filter.c is called for a line without the GT format, the function immediately returns:
This can cause nvalues!=str_value.l which then causes the assertion within the cmp_vector_strings() function in filter.c to fail. I am not sure what would be appropriate, but maybe it would be enough to make filters_set_genotype_string() set tok->str_value.l to zero when GT is not present
The following BCFtools command crashes:
The filtering framework requires that
nvalues==str_value.l
. However, when the functionfilters_set_genotype_string()
infilter.c
is called for a line without theGT
format, the function immediately returns:This can cause
nvalues!=str_value.l
which then causes the assertion within thecmp_vector_strings()
function infilter.c
to fail. I am not sure what would be appropriate, but maybe it would be enough to makefilters_set_genotype_string()
settok->str_value.l
to zero whenGT
is not present