VCFTools error: Unrecognized values used for CHROM, Replacing with 0.
1
0
Entering edit mode
10.3 years ago

Hi all!

I was trying to run VCFtools on .vcf output file from dDocent program and I get this error:

Unrecognized values used for CHROM: E81_L257 -  Replacing with 0.

I was wondering if anyone encountered that and how it affects the data. Are there way to fix this?

Many thanks,
Irina

ddocent SNP software-error Assembly • 7.5k views
ADD COMMENT
7
Entering edit mode
4.2 years ago
QPaps04 ▴ 160

Hello,

I know this is a very old post but I have just been trying to solve this exact problem. I have a genome that is made up of lots of scaffolds (not a model organism) and so I recieved the error message you report for all my scaffolds.

I found the solution by following this tutorial http://evomics.org/learning/population-and-speciation-genomics/2016-population-and-speciation-genomics/fileformats-vcftools-plink/ section 2.3.

To summarise you need to make your own chromosome map that vcftools uses to make the .ped format. Do this by running the following code:

1. Create chromosome map

bcftools view -H filename.vcf | cut -f 1 | uniq | awk '{print $0"\t"$0}' > filename.chrom-map.txt

2. Make ped file using this chromosome map

vcftools --vcf filename.vcf --plink --chrom-map filename.chrom-map.txt --out filename
ADD COMMENT
2
Entering edit mode

Very helpful! Thanks for posting!

ADD REPLY
0
Entering edit mode

It works, very helpful, thank you.

ADD REPLY

Login before adding your answer.

Traffic: 2597 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6