plink2 calculate LD r2

883 views
Skip to first unread message

Ruyu Shi

unread,
Jun 27, 2023, 1:42:39 PM6/27/23
to plink2-users
I am wondering whether plink2 has a similar function as in plink to calculate linkage disequilibrium r2 using command like:

 plink --bfile ${bfile} --chr ${chr} --from-bp ${pos_start} --to-bp ${pos_end} --r2 --ld-window 100000000 --ld-window-kb 100000000 --ld-window-r2 0 --ld-snp ${top_snp} --out /local_disk0/tmp/data/ld_files/${top_snp}

Thank you!

Best,
Ruyu

Morteza Naderi

unread,
Jun 27, 2023, 1:47:19 PM6/27/23
to plink2-users
Dear Plink users, 
I have VCF file for brown bears and need to analyze it in Plink. I wm looking for calculating isolation by environment and similar parameters, but I am beginner in using this software, is there anyone can help me through a zoom talk?
My best regards
Morteza 

Morteza Naderi, Ph.D.
Res. Assoc. Prof., Wildlife Ecology and Conservation Biology
Koç University, Istanbul, Turkey
PI of Tubitak 1001 project
Director in Charge and founder of Journal of Wildlife and Biodiversity (JWB)
https://wildlife-biodiversity.com/index.php/jwb
Director in Charge and founder of Scientific Reports in Life Sciences (SRLS)
https://www.scientific-reports.com/index.php/srls
Chair of Biodiversity Conservation Society
https://conservation-biodiversity.org/
Research gate link: https://www.researchgate.net/profile/Morteza_Naderi3
Google Scholar: https://scholar.google.com/citations?user=HPZ9bG4AAAAJ&hl=en&oi=ao
ORCID:https://orcid.org/0000-0002-7578-4159
Cell: +905524871599 (Whatsapp)
+989125798913 (Telegram)

--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plink2-users/d0352d24-e8ae-4eb2-bf54-56c321ae76c8n%40googlegroups.com.

Christopher Chang

unread,
Jun 30, 2023, 5:10:56 PM6/30/23
to plink2-users
--r2 hasn't been implemented in plink2 yet, since the advantage over just using the plink 1.9 implementation is expected to be relatively small.  Just use plink 1.9 for now.

abdirahm...@gmail.com

unread,
Jun 30, 2023, 8:52:04 PM6/30/23
to Morteza Naderi, plink2-users
Dear Morteza,
You may try Genomics Boot Camp  ( https://m.youtube.com/c/genomicsbootcamp), serious talk about genomics data analysis using plink .

Regards 
Ali (PhD)

Sent from my iPhone

On 28 Jun 2023, at 3:47 am, 'Morteza Naderi' via plink2-users <plink2...@googlegroups.com> wrote:



PURANJOY SAR

unread,
Jun 30, 2023, 9:53:15 PM6/30/23
to abdirahm...@gmail.com, Morteza Naderi, plink2-users
Sir,
I want to do Haplotype based GWAS. I have bfiles and I used Plink to generate haplotype blocks. From the plink output, the data is in .blocks or .blocks.det format. But I do not know how to use that data in the GWAS.
Could someone please help me how to use that data for GWAS?

Or lese you please help me how I can go for haplotype based GWAS.

Eagerly waiting for your reply.

Thank you!

PURANJOY SAR

unread,
Jun 30, 2023, 9:53:34 PM6/30/23
to Christopher Chang, plink2-users
Sir,
I want to do Haplotype based GWAS. I have bfiles and I used Plink to generate haplotype blocks. From the plink output, the data is in .blocks or .blocks.det format. But I do not know how to use that data in the GWAS.
Could someone please help me how to use that data for GWAS?

Or lese you please help me how I can go for haplotype based GWAS.

Eagerly waiting for your reply.

Thank you!

--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.

Christopher Chang

unread,
Jul 3, 2023, 1:33:07 PM7/3/23
to plink2-users
This isn't directly supported by plink 1.9 or 2.0 at this time.  However, see https://groups.google.com/g/plink2-users/c/xqUw29voUR0/m/U9n6AF6FAwAJ : if you are able to encode the haplotypes of interest as multiallelic variants in a VCF, plink2 --glm will do what you want.
Reply all
Reply to author
Forward
0 new messages