Open cvaske opened 3 years ago
Ah, this is because the program does not support transfer of GTs from a text file into a VCF, sorry! I added a check for this to exit gracefully with an informative error message. For now, can you create a VCF and use that to transfer the annotations from?
When running a command like
bcftools annotate -o annotated.bcf -s sample1 -a annotation.tsv.gz -c CHROM,POS,FORMAT/GT source.vcf.gz
bcftools will segfault. To reproduce, use these inputs, where source.vcf.gz consists of
and annotation.tsz.gz is the BGZipped and tabix indexed version of
The segfault appears to happen at line 1189 of vcfannotate.c https://github.com/samtools/bcftools/blob/a865a16944317e0fb310eb59b82b274ad945e868/vcfannotate.c#L1189 where an index of 1 is used instead of 0 on the file readers array, when there is only a single item.
However, changing that to fix the segfault still does not result in setting the genotype in the output, but that may be a separate issue.