Skip to content

Discrepancies in R2 and LD compared to bcftools prune #3

@Knight-JChev

Description

@Knight-JChev

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 :

bcftools_prune_example

LDBlockShow_example

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions