Hello, I am trying to run PLink on my tped file (SNP data set) to test for linkage disequilibrium, but it appears as if I need to set some chromosome options because I get some error at some line.
My data is not mapped.
this is the error I get.
Error: Invalid chromosome code '27' on line 12 of .tped 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.)
This is my line of code
plink --tped paua_snps_plink.tped --indep-pairwise 50 5 0.5 --allow-extra-chr --out paua_snps_plink_out --tfam paua_snps_plink.tfam
I have tried to change the option with --allow-extra-chr 0 but I still get the same message... I am trying to run the same line with Plink2, maybe it is a bug?
I am not sure what I am doing wrong. I have googled it but I don't know how to fix this. Do I need mapped data to use plink to test for LD in a SNP data set?
Cheers,
Giulia
Hi, Have you solved your problem? I have also been using plink v1.9 recently and have encountered the same problem, but I don't know how to deal with it, do you want to talk about it?
Thanks
Ling
Hi Ling,
I am sorry I did not solve the issue because I ended up using something else as my data was not mapped against a reference genome. I am suspecting that was the issue. If it can help, I have used the R package genetics and the function LD to test for LD on my unmapped vcf file.
Good luck
Giulia
Hi Giulia: I am sorry too late reply you, I used the VCF file and try to append a letter to the #CHROM numbers, the error message disappeared. I hope it can help you.
Good luck ling