-
Notifications
You must be signed in to change notification settings - Fork 2
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
Discrepancies in R2 and LD compared to bcftools prune #3
Comments
1 Please make sure that there is no problem with the program installation, especially the plink file in bin should be placed in the same directory as LDBlockShow LDBlockShow -InVCF vcf_test.txt -OutPut test_noprun_2Mb -SeleVar 2 -Region Chr01:1:2000000 -NoShowLDist 100000000 zcat test_noprun_2Mb.site.gz | awk '{print $0, $2}' > Site.info ShowLDSVG -InPreFix test_noprun_2Mb -OutPut test_noprun_2Mb_Rsq -ShowNum -NoShowLDist 100000000 -SpeSNPName Site.info |
1 should be the plink 1.9 ,you can rm the other plinks ,only keep the LDBlockshow/plinks 2 you can try phase the vcf first. try the phase vcf |
Dear all,
So I've tried using LDBlockShow on a QTL dataset to visualize the linkage blocks between biallelic SNPs.
I tested to observe the blocks before and after pruning to understand how the pruning took place and what it merged.
So I compared the R² and D' value obtained from bcftools +prune :
vcf_test.txt
vcf_test_annotated.txt
bcftools +prune -w 1 -a r2,LD vcf_test.vcf -O v -o vcf_test_annotated.vcf
and from LDBlockShow :
LDBlockShow -InVCF vcf_test.vcf -OutPut test_noprun_2Mb -SeleVar 2 -Region Chr01:1:2000000
ShowLDSVG -InPreFix test_noprun_2Mb -OutPut test_noprun_2Mb_Rsq -ShowNum
Looking at the results I found discrepancies in the value of R2 and D' at some (not all) positions between LDBlockShow and bcftools prune annotation. Scores are shown for one marker with the previous one after annotation in bcftools prune.
I highlighted in blue the place that seemed weird to me :
It does kind of the same at the same locations with D'.
Could you explain me what happens there ? Is that supposed to occur ? I read that the computations are the same between LDBlockShow and other tools, which seems to be the case here but I wonder why there are such differences at those places.
PS : Also LDBlockShow does not show the blocks with a black outline compared to what's in the documentation.
Kind regards,
Knight
The text was updated successfully, but these errors were encountered: