Bcftools concat gives chromosome contiguous error?
I am trying to merge vcfs from GATK's Mutect with bcftools, however I keep getting this message:
The chromosome block 9 is not contiguous, consider running with -a.
I have tried sorting with vcf-tools but I keep getting the same error. Does anyone have any suggestions?
• 3,363 views
•
link
0 answers
No answers yet.
Log in to answer this question.
How are your contigs ('chromosomes') named? - check the VCF header via
bcftools view -hAccording to the human_g1k_v37 reference. This is the header:
Hello vctrm67 ,
can you please show us the command you have used? Furthermore use
bcftools sortinstead ofvcftools, becausevcftoolsis deprecated.fin swimmer
I used:
for file in *.intervals.vcf; do bcftools sort $file -o ${file}.test.vcf ; doneThen I used:
bcftools concat *.test.vcf -o test.vcfAnd did that help?