chr1swallace / coloc

Repo for the R package coloc
138 stars 44 forks source link

LD matrix on SuSIE_coloc #132

Closed Zhangzzzzzy closed 9 months ago

Zhangzzzzzy commented 9 months ago

As a coloc_susie newbie, I have this question, how should I calculate the LD matrix to get it? Or how to apply it to, I didn't find any information about it, looking forward to your answers.

chr1swallace commented 9 months ago

You need to find an LD matrix from a reference population that matches the population used in your GWAS study. Doug Speed has a nice example script how to generate one for a European population here https://dougspeed.com/reference-panel/

-- https://chr1swallace.github.iohttps://chr1swallace.github.io/


From: Zhangzzzzzy @.> Sent: Friday, September 29, 2023 3:45 AM To: chr1swallace/coloc @.> Cc: Subscribed @.***> Subject: [chr1swallace/coloc] LD matrix on SuSIE_coloc (Issue #132)

As a coloc_susie newbie, I have this question, how should I calculate the LD matrix to get it? Or how to apply it to, I didn't find any information about it, looking forward to your answers.

— Reply to this email directly, view it on GitHubhttps://github.com/chr1swallace/coloc/issues/132, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQWR2ERLC5XVDCWDXGT4CLX4YY4VANCNFSM6AAAAAA5L2VN5E. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Zhangzzzzzy commented 9 months ago

您需要从参考总体中找到与 GWAS 研究中使用的总体匹配的 LD 矩阵。Doug Speed 有一个很好的示例脚本,如何在这里为欧洲人口生成一个脚本 https://dougspeed.com/reference-panel/ ... -- https://chr1swallace.github.iohttps://chr1swallace.github.io/ ____ From: Zhangzzzzzy @.> Sent: Friday, September 29, 2023 3:45 AM To: chr1swallace/coloc @.> Cc: Subscribed @.> Subject: [chr1swallace/coloc] LD matrix on SuSIE_coloc (Issue #132) As a coloc_susie newbie, I have this question, how should I calculate the LD matrix to get it? Or how to apply it to, I didn't find any information about it, looking forward to your answers. — Reply to this email directly, view it on GitHub<#132>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQWR2ERLC5XVDCWDXGT4CLX4YY4VANCNFSM6AAAAAA5L2VN5E. You are receiving this because you are subscribed to this thread.Message ID: @.>

Hello, I am glad to receive such a quick reply from you. After reading the information you shared, I have new questions. First of all, the way you shared the processed file results in three files: .bed, .bim, .fam, which one is the LD matrix I need to use? Second question: I am using GWAS aggregated data from European populations, can I directly use the template from 1000g European populations? How can I apply this template to coloc_SuSiE? I noticed that the LD matrix in the reference data is a matrix with snp number of squares on the sides, but obviously the reference template is not.

chr1swallace commented 9 months ago

doug speed's script should show you how to create the LD matrix from those files

-- https://chr1swallace.github.iohttps://chr1swallace.github.io/


From: Zhangzzzzzy @.> Sent: Friday, September 29, 2023 10:22 AM To: chr1swallace/coloc @.> Cc: Chris Wallace @.>; Comment @.> Subject: Re: [chr1swallace/coloc] LD matrix on SuSIE_coloc (Issue #132)

您需要从参考总体中找到与 GWAS 研究中使用的总体匹配的 LD 矩阵。Doug Speed 有一个很好的示例脚本,如何在这里为欧洲人口生成一个脚本 https://dougspeed.com/reference-panel/ ... -- https://chr1swallace.github.iohttps://chr1swallace.github.io/https://chr1swallace.github.io/ ____ From: Zhangzzzzzy @.> Sent: Friday, September 29, 2023 3:45 AM To: chr1swallace/coloc @.> Cc: Subscribed @.> Subject: [chr1swallace/coloc] LD matrix on SuSIE_coloc (Issue #132https://github.com/chr1swallace/coloc/issues/132) As a coloc_susie newbie, I have this question, how should I calculate the LD matrix to get it? Or how to apply it to, I didn't find any information about it, looking forward to your answers. ― Reply to this email directly, view it on GitHub<#132https://github.com/chr1swallace/coloc/issues/132>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQWR2ERLC5XVDCWDXGT4CLX4YY4VANCNFSM6AAAAAA5L2VN5E. You are receiving this because you are subscribed to this thread.Message ID: @.>

Hello, I am glad to receive such a quick reply from you. After reading the information you shared, I have new questions. First of all, the way you shared the processed file results in three files: .bed, .bim, .fam, which one is the LD matrix I need to use? Second question: I am using GWAS aggregated data from European populations, can I directly use the template from 1000g European populations? How can I apply this template to coloc_SuSiE? I noticed that the LD matrix in the reference data is a matrix with snp number of squares on the sides, but obviously the reference template is not.

― Reply to this email directly, view it on GitHubhttps://github.com/chr1swallace/coloc/issues/132#issuecomment-1740578770, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQWR2AXDUIH3BZ3OPFDVADX42HNVANCNFSM6AAAAAA5L2VN5E. You are receiving this because you commented.Message ID: @.***>

Zhangzzzzzy commented 9 months ago

doug speed's script should show you how to create the LD matrix from those files -- https://chr1swallace.github.iohttps://chr1swallace.github.io/ ____ From: Zhangzzzzzy @.> Sent: Friday, September 29, 2023 10:22 AM To: chr1swallace/coloc @.> Cc: Chris Wallace @.>; Comment @.> Subject: Re: [chr1swallace/coloc] LD matrix on SuSIE_coloc (Issue #132) 您需要从参考总体中找到与 GWAS 研究中使用的总体匹配的 LD 矩阵。Doug Speed 有一个很好的示例脚本,如何在这里为欧洲人口生成一个脚本 https://dougspeed.com/reference-panel/ ... -- https://chr1swallace.github.iohttps://chr1swallace.github.io/https://chr1swallace.github.io/ ____ From: Zhangzzzzzy @.> Sent: Friday, September 29, 2023 3:45 AM To: chr1swallace/coloc @.> Cc: Subscribed @.> Subject: [chr1swallace/coloc] LD matrix on SuSIE_coloc (Issue #132<#132>) As a coloc_susie newbie, I have this question, how should I calculate the LD matrix to get it? Or how to apply it to, I didn't find any information about it, looking forward to your answers. ― Reply to this email directly, view it on GitHub<#132<#132>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQWR2ERLC5XVDCWDXGT4CLX4YY4VANCNFSM6AAAAAA5L2VN5E. You are receiving this because you are subscribed to this thread.Message ID: @.> Hello, I am glad to receive such a quick reply from you. After reading the information you shared, I have new questions. First of all, the way you shared the processed file results in three files: .bed, .bim, .fam, which one is the LD matrix I need to use? Second question: I am using GWAS aggregated data from European populations, can I directly use the template from 1000g European populations? How can I apply this template to coloc_SuSiE? I noticed that the LD matrix in the reference data is a matrix with snp number of squares on the sides, but obviously the reference template is not. ― Reply to this email directly, view it on GitHub<#132 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQWR2AXDUIH3BZ3OPFDVADX42HNVANCNFSM6AAAAAA5L2VN5E. You are receiving this because you commented.Message ID: @.***>

Okay, thank you very much for your reply!

mocksu commented 8 months ago

You need to find an LD matrix from a reference population that matches the population used in your GWAS study. Doug Speed has a nice example script how to generate one for a European population here https://dougspeed.com/reference-panel/

Do you need to construct a LD matrix for each of the two datasets involved in susie analysis or just one LD matrix for all SNPs in the two datasets?

BTW, IMHO, it would be much better if coloc.susie can take care of the LD information by itself because "coloc" 5.2.3 has all the relevant (including LD) information.

Thanks a lot.

Leweibo commented 3 months ago

Does this functions work? Get LD matrix for list of SNPs

https://mrcieu.github.io/TwoSampleMR/reference/ld_matrix.html

And Does this work?

https://ldlink.nih.gov/?tab=ldmatrix

chr1swallace commented 3 months ago

I don't know it, but from the description it should

-- https://chr1swallace.github.iohttps://chr1swallace.github.io/


From: WB @.> Sent: Wednesday, March 20, 2024 5:24 AM To: chr1swallace/coloc @.> Cc: Chris Wallace @.>; Comment @.> Subject: Re: [chr1swallace/coloc] LD matrix on SuSIE_coloc (Issue #132)

Does this functions work? Get LD matrix for list of SNPs

https://mrcieu.github.io/TwoSampleMR/reference/ld_matrix.html

— Reply to this email directly, view it on GitHubhttps://github.com/chr1swallace/coloc/issues/132#issuecomment-2008679690, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAQWR2FBIKKHMVIAK23H3JLYZEMSFAVCNFSM6AAAAAA5L2VN5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBYGY3TSNRZGA. You are receiving this because you commented.Message ID: @.***>