--
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/28LESfNj64A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plink2-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear Chris,
This is really informative!I can put a quick check on the vcf whether Y calls exist. One thing confuses me is, if I have Y calls in the data, at which step I should add 'ycount' or 'y-only' to the commands? Could you elaborate?Thanks a lot.Fengyuan
To unsubscribe from this group and all its topics, send an email to plink2-users+unsubscribe@googlegroups.com.
Thank you! I'll give it a go.
To unsubscribe from this group and all its topics, send an email to plink2-users...@googlegroups.com.
plink --vcf gatk-HC-VQSR-annotated.final.vcf --out gatk-HC-VQSR-annotated.final.vcf.plink.data
plink --bfile gatk-HC-VQSR-annotated.final.vcf.plink.data --indep-pairphase 20000 2000 0.5 --chr 23-24
plink --bfile gatk-HC-VQSR-annotated.final.vcf.plink.data --extract plink.prune.in --make-bed --out ld_pruned_xy
plink --bfile ld_pruned_xy --check-sex ycount
# manual step, examine file 'imputed_sex.sexcheck' using R, determine gap param
# see attached histogram of F values
plink --bfile ld_pruned_xy --impute-sex 0.6 0.6 --make-bed --out imputed_sex
plink --bfile gatk-HC-VQSR-annotated.final.vcf.plink.data --update-sex ld_pruned_xy.fam 3 --make-bed --out vcf_data_with_sexes
but then when I examined the predictions in the 'imputed_sex.sexcheck' file, all the predictions were exactly reversed from what I expected (all males were inferred as females and vice-versa).
Is the coding of male (1) and female (2) reversed in this output? (bug?) or could it be that I did something wrong here?
thanks!