Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comparing D' scores of PLINK and LDBlockShow #27

Open
mennodejong1986 opened this issue Sep 15, 2022 · 1 comment
Open

comparing D' scores of PLINK and LDBlockShow #27

mennodejong1986 opened this issue Sep 15, 2022 · 1 comment

Comments

@mennodejong1986
Copy link

Thanks for making and sharing this great tool.

I am trying to reproduce with plink the exact same D' prime values as observed in the TriangleV.gz file, using the following commands:

For LDBlockShow:

LDBlockShow -BlockType 1 -InVCF mydata.vcf.gz -OutPut output.ldblockshow -MAF 0.2

For PLINK:

vcftools --maf 0.2 VCF mydata.vcf.gz --gzvcf mydata.vcf.gz --recode --recode-INFO-all --out mydata.maf0.2

plink --vcf mydata.maf0.2.recode.vcf --allow-extra-chr --r2 dprime --ld-window 1000 --ld-window-kb 500 --ld-window-r2 0 --out output.plink

However, when I compare the first entries in the plink output and those in the TriangleV.gz file (assuming that the topleft values in the matrix correspond to the first lines in the plinkoutput.ld file), the values do not match. (In contrast, the haploblock regions identified with plink --blocks are identical).

Should I be using another plink command?

Thanks in advance for your help!

Menno

@hewm2008
Copy link
Contributor

you can clarify snp comparisons in triangle as #18 .
the D' value of LDblockshow is be the same with haploview , also I guess the D' value should be the same with plinks .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants