- Unique identifier:
- Command line interface
- Input format:
- Operating system:
- Computer skills:
- Software type:
- Restrictions to use:
- Output format:
- Programming languages:
- C++, Perl
- Richard Durbin <>
I'm using the vcftools for the first time. I'm trying to compare two VCF files with the following command line:
vcftools --vcf Sample_All.vcf --diff Sample_indA.vcf --diff-site --out Multiple_vs_indA
and I get the following error message:
Error: Both files must be sorted in the same chromosomal order.
chr1 in file 2 appears to be out of order.
But I know that in both VCF file I have the chr1 included, so, why do I have this message?
Plus I have tried to had the "--not-chr chr1" parameter to my command line, as I understand it was advised to do in this case, but then I have the same error message but on chr2 ...
Is it normal? What should I do to resolve this issue? Or maybe it is just a warning message?
It seems you have an ordering issue between your two files. You should check that both files are sorted in the same way. You can use "SortVcf" from Picard tools (https://omictools.com/picard-tool) or vcf-sort from VCFtools ("vcf-sort file.vcf.gz") command to sort your files. If they are both sorted equally, you should check if you have the same number of chromosomes present in both files.
It seems also that bcftools (https://omictools.com/bcftools-tool) have replaced vcftools...
(Danecek et al., 2011)
The variant call format and VCFtools.
PMID: 21653522 DOI: 10.1093/bioinformatics/btr330
Wellcome Trust Sanger Institute, Wellcome Trust Genome Campus, Cambridge, UK
0 user reviews
0 user reviews
No review has been posted.