I'd like to run PLINK2 on a vcf file to do linkage pruning, followed by a PCA. The input vcf file is from a non-human organism. I have already excluded the known sex chromosome from the vcf file. However, when I run PLINK2, I always get an error since it recognizes chrX as the sex chromosome. This happens even when I specify "--allow-extra-chr". "How can I force PLINK2 to treat chrX as a normal autosome (which is the case in my species). PLINK2 makes a few suggestions for how one may solve the error (see below the error message), but I don't find any of those solutions straight forward to simply force PLINK2 to not treat chrX as the sex chromosome. Notably, when I instead run PLINK1.9, I don't get a respective error.
Here the command I run for linkage pruning:
plink2 --vcf ${FILE}.vcf --allow-extra-chr --set-all-var-ids @:# --indep-pairwise 50 10 0.3 --make-bed --out ${FILE}_pruningFact.0.3Here the error I'm getting:
Error: chrX is present in the input file, but no sex information was provided; rerun this import with --psam or --update-sex. --split-par may also be appropriate.And here again the error I'm getting:
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/a2e85442-066f-45d3-a718-320dcd57fe92n%40googlegroups.com.
-allow-extra-chr
that
this would make plink interpret the chrX as not being the sex chromosome. See here, for example: https://speciationgenomics.github.io/pca/
On 11 Jun 2024, at 18:19, Chris Chang <chrch...@gmail.com> wrote:
You don't often get email from chrch...@gmail.com. Learn why this is important
https://speciationgenomics.github.io/pca/ talks about --allow-extra-chr enabling chromosomes outside of human 1-22 + X. It does not say anything about it making plink *not* interpret chrX as a sex chromosome.
You received this message because you are subscribed to a topic in the Google Groups "plink2-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/plink2-users/Qphx_6BpPII/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/5AAF30CF-48FB-47E7-BBD2-E7CEA86B4F0C%40unibe.ch.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/0b57f389-63cf-4d99-8df4-93ce04af3876n%40googlegroups.com.