How to Extract SNPs from Linkage Disequilibrium data with r2 > 0.6 threshold?
0
0
Entering edit mode
2.3 years ago
Raju • 0

Hello, I have done LD on the SNPs list and trying to get SNPs with Higher Linkage Disequilibrium with a threshold (r2 > 0.6)

Below is the p-link command I used to find LD with r2 > 0.6

plink \
    --bfile Obesity \
    --r2 --ld-snp-list UCP3_SNPs.txt \
    --ld-window-kb 1000 --ld-window-r2 0.6 --out UCP3

Output: UCP3.ld

cat UCP3.ld | head

 CHR_A         BP_A               SNP_A  CHR_B         BP_B               SNP_B           R2 
    11     73219907          kgp8038792     11     73219118          kgp4688758     0.939654 
    11     73219907          kgp8038792     11     73219907          kgp8038792            1 
    11     73219907          kgp8038792     11     73233724          rs17310361            1 
    11     73229069         kgp22795638     11     73229069         kgp22795638            1 
    11     73230739         kgp11953924     11     73216385          rs12421012            1 
    11     73230739         kgp11953924     11     73230739         kgp11953924            1 
    11     73230739         kgp11953924     11     73243153           kgp297570     0.911899 
    11     73233291          kgp5913764     11     73233291          kgp5913764            1 
    11     73233724          rs17310361     11     73219118          kgp4688758     0.939654 

Finally, I'm able to see LD with R2 > 0.6. But how to get the above SNPs as a list so that I can use them for further analysis?

plink LD SNP • 1.0k views
ADD COMMENT
0
Entering edit mode

Hello, could you provide an example of the desired output?

ADD REPLY
0
Entering edit mode

Desired Output: file with a list of SNPs

kgp8038792
kgp4688758
kgp8038792
rs17310361
kgp22795638
kgp11953924
rs12421012
.
.
.
ADD REPLY
0
Entering edit mode

Look up ‘subsetting columns using awk’

ADD REPLY
0
Entering edit mode

You could use :
awk 'NR>1 {print $3"\n"$6}' UCP3.ld

ADD REPLY

Login before adding your answer.

Traffic: 1715 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6