plink2 --make-bed --vcf $vcf --allow-extra-chr --chr-set 38 --set-all-var-ids @:# --out $prefix
plink2 --vcf $vcf --freq --allow-extra-chr --chr-set 38 --out $prefix
plink2 --bfile $prefix --read-freq ${prefix}.afreq --allow-extra-chr --pca 82 -chr-set 38 --out $prefix
Code 2 (the samples file has a list of all 82 samples in the VCF.):
plink2 --make-pgen --vcf $vcf --allow-extra-chr --chr-set 38 --rm-dup force-first --set-all-var-ids @:# --keep $samples --out $prefix
plink2 --freq --pfile $prefix --out $prefix
plink2 --read-freq "${prefix}.afreq" --pca 82 --pfile $prefix --out $prefix
I can see that the .afreq files differs in length after step 2 in each of the codesets (2910103 vs 2903391). Is one more correct than another?
Thank you!
--
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 visit https://groups.google.com/d/msgid/plink2-users/f2430e4c-327f-470b-a611-1eeb6bb7b84fn%40googlegroups.com.