Closed heinin closed 7 years ago
I was able to merge these using vcftools vcf-merge.
The program does not like the -
characters in SAMPLE header definitions. If you replace them with underscores, it should work. For example: ALIQUOT_ID
instead of ALIQUOT-ID
.
By the way, the program vcf-merge
is obsolete and its use discouraged.
Thank you for the response! I tried with underscores, still getting the same errors:
Could not parse the header line: "##SAMPLE=<ID=NORMAL,NAME=TCGA-42-2591-10A-01D-1526-09,ALIQUOT_ID=188673ae-cf55-4e58-aff7-cc1b2d55ec07,BAM_ID=f46a7f8e-766b-4cb1-97b5-bba94c37d20b>"
That's very odd, I cannot reproduce the error. Could you please send me the VCF header? What version of bcftools
are you running?
I've tried 1.4 and 1.2. Here's the header:
`##fileformat=VCFv4.1
`
Still cannot reproduce, sorry. Can you send me the file and the command you are using directly to my email listed on the profile page?
Sure! Thank you.
The problem has been solved offline: one or more of the input files still had a dash in the header attribute name. Closing the issue now.
I'm bumping into this error while using bcftools merge. Based on https://github.com/samtools/bcftools/issues/203 , I tried to remove carriage returns from the vcf file, but it didn't help. I'm using bcftools 1.4. What should I try next?
Error:
Header of one of the VCF: