Hi there
I am trying to convert a very large .vcf file to a .bed file using Plink (I have tried both 1.90 and 2) to use in pcadapt down the line. This is the code I have been using:
plink --vcf ./BCFTools_MP/MP_filtered.recode.vcf --allow-extra-chr --double-id --make-bed --out ./BCFTools_MP/MP_filtered.recode
I receive the following error:
Error: Invalid chromosome code '40' on line 88802 of .vcf file.
(This is disallowed for humans. Check if the problem is with your data, or if
you forgot to define a different chromosome set with e.g. --chr-set.)
I thought that by including "--allow-extra-chr" I was circumventing this problem. I am working on a fish species and the reference genome I'm using is highly fragmented and at scaffold level. I have since gone back and added "chr" to each chromosome code but it is still not working. It seems like a fairly simple issue but I can't seem to resolve it.