rhhao / csMR

Perform cell-stratified MR analysis through integrating GWAS and QTL data
GNU General Public License v3.0
20 stars 8 forks source link

Error while running susie_finemap.py #5

Closed HongyuanChu closed 1 month ago

HongyuanChu commented 1 month ago

Error in susie_suff_stat(XtX = XtX, Xty = Xty, n = n, yty = (n - 1) * : The estimated prior variance is unreasonably large. This is usually caused by mismatch between the summary statistics and the LD matrix. Please check the input. running max iterations: 10000

My Commend:python /data/chuhy/packs/csMR-main/scripts/susie_finemap.py -o /data/chuhy/project/GWAS/work -d '{"epi":"cc"}' -c 0.9 -j 15

My Log: /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86428858_86628858--GKAP1--Astrocytes.maf.raw.RData /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/2_166524469_166724469--GALNT3--Astrocytes.maf.raw.RData /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86689306_86889306--KIF27--Astrocytes.maf.raw.RData /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/10_103430438_103630438--PSD--Astrocytes.maf.raw.RData /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/10_103875793_104075793--POLL--Astrocytes.maf.raw.RData /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86666265_86868671--NTRK2--Astrocytes.maf.raw.RData /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/2_166557242_166765310--TTC21B--Astrocytes.maf.raw.RData This is coloc version 5.2.3 This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/epi.GWAS_split/10_103455611_103902408.maf.raw.RData" [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/epi.GWAS_split/2_166718404_167108773.maf.raw.RData" running max iterations: 10000 This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/2_166524469_166724469--GALNT3--Astrocytes.maf.raw.RData" running max iterations: 10000 running max iterations: 10000 This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/epi.GWAS_split/9_86452049_86698190.maf.raw.RData" running max iterations: 10000 This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86428858_86628858--GKAP1--Astrocytes.maf.raw.RData" running max iterations: 10000 converged: TRUE [1] "Try susie1 succeed" [1] "finemapping is succeed and done! /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86428858_86628858--GKAP1--Astrocytes.maf.0.9.susie.RData" This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86689306_86889306--KIF27--Astrocytes.maf.raw.RData" running max iterations: 10000 Error in susie_suff_stat(XtX = XtX, Xty = Xty, n = n, yty = (n - 1) : The estimated prior variance is unreasonably large. This is usually caused by mismatch between the summary statistics and the LD matrix. Please check the input. running max iterations: 10000 converged: TRUE [1] "Try susie1 succeed" [1] "finemapping is succeed and done! /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86689306_86889306--KIF27--Astrocytes.maf.0.9.susie.RData" converged: TRUE [1] "Try susie2 succeed" [1] "finemapping is succeed and done! /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/2_166524469_166724469--GALNT3--Astrocytes.maf.0.9.susie.RData" This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/10_103430438_103630438--PSD--Astrocytes.maf.raw.RData" running max iterations: 10000 converged: TRUE [1] "Try susie1 succeed" [1] "finemapping is succeed and done! /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/10_103430438_103630438--PSD--Astrocytes.maf.0.9.susie.RData" This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/10_103875793_104075793--POLL--Astrocytes.maf.raw.RData" running max iterations: 10000 converged: TRUE [1] "Try susie1 succeed" [1] "finemapping is succeed and done! /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/10_103875793_104075793--POLL--Astrocytes.maf.0.9.susie.RData" This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86666265_86868671--NTRK2--Astrocytes.maf.raw.RData" running max iterations: 10000 converged: TRUE [1] "Try susie1 succeed" [1] "finemapping is succeed and done! /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/9_86666265_86868671--NTRK2--Astrocytes.maf.0.9.susie.RData" This is coloc version 5.2.3 [1] "susie finemapping ------------ /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/2_166557242_166765310--TTC21B--Astrocytes.maf.raw.RData" running max iterations: 10000 converged: TRUE [1] "Try susie1 succeed" [1] "finemapping is succeed and done! /data/chuhy/project/GWAS/work/precomputation/Astrocytes.eQTL_split/2_166557242_166765310--TTC21B--Astrocytes.maf.0.9.susie.RData" Error in susie_suff_stat(XtX = XtX, Xty = Xty, n = n, yty = (n - 1) : The estimated prior variance is unreasonably large. This is usually caused by mismatch between the summary statistics and the LD matrix. Please check the input. running max iterations: 10000 Error in susie_suff_stat(XtX = XtX, Xty = Xty, n = n, yty = (n - 1) * : The estimated prior variance is unreasonably large. This is usually caused by mismatch between the summary statistics and the LD matrix. Please check the input. running max iterations: 10000

HongyuanChu commented 1 month ago

Could the author please kindly help with solving this problem? This has confused me several days! My LD matrix seemed to work well. Thank you very much~

HongyuanChu commented 1 month ago

See https://github.com/chr1swallace/coloc/issues/90; I completely replaced the susie finemapping step to solve this problem. (Maybe not the best way but worked)

jasmine327 commented 1 month ago

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem. (Maybe not the best way but worked)看 chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。 (也许不是最好的方法,但有效)

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?

HongyuanChu commented 1 month ago

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem.

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?

I replaced susie with abf coloc. This may take less time and be more convient. (But not recommended by the author because of shortcomings). The following steps need to be adjusted accrodingliy.

jasmine327 commented 1 month ago

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem.参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?您能否详细解释一下您是如何完全替换 SuSiE 精细映射步骤来解决此问题的?

I replaced susie with abf coloc. This may take less time and be more convient. (But not recommended by the author because of shortcomings). The following steps need to be adjusted accrodingliy.我用 abf coloc 替换了 susie。这可能会花费更少的时间并且更方便。 (但由于缺点,笔者不推荐)。以下步骤需要根据情况进行调整。

In that case, could you find any positive results? I have tried using coloc.abf, but the PP.H4.abf values I obtained were all quite small.

HongyuanChu commented 1 month ago

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem.参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?您能否详细解释一下您是如何完全替换 SuSiE 精细映射步骤来解决此问题的?

I replaced susie with abf coloc. This may take less time and be more convient. (But not recommended by the author because of shortcomings). The following steps need to be adjusted accrodingliy.我用 abf coloc 替换了 susie。这可能会花费更少的时间并且更方便。 (但由于缺点,笔者不推荐)。以下步骤需要根据情况进行调整。

In that case, could you find any positive results? I have tried using coloc.abf, but the PP.H4.abf values I obtained were all quite small.

I did find some positive results, with the PPH4 0.95-1.

jasmine327 commented 1 month ago

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem.参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?您能否详细解释一下您是如何完全替换 SuSiE 精细映射步骤来解决此问题的?

I replaced susie with abf coloc. This may take less time and be more convient. (But not recommended by the author because of shortcomings). The following steps need to be adjusted accrodingliy.我用 abf coloc 替换了 susie。这可能会花费更少的时间并且更方便。 (但由于缺点,笔者不推荐)。以下步骤需要根据情况进行调整。

In that case, could you find any positive results? I have tried using coloc.abf, but the PP.H4.abf values I obtained were all quite small.那么,你能找到任何积极的结果吗?我尝试过使用coloc.abf ,但是我获得的 PP.H4.abf 值都非常小。

I did find some positive results, with the PPH4 0.95-1.我确实发现了一些积极的结果,PPH4 为 0.95-1。

May I ask if you are using the example data, the eight types of brain cell data from the single-cell-eqtl?

HongyuanChu commented 1 month ago

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem.参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?您能否详细解释一下您是如何完全替换 SuSiE 精细映射步骤来解决此问题的?

I replaced susie with abf coloc. This may take less time and be more convient. (But not recommended by the author because of shortcomings). The following steps need to be adjusted accrodingliy.我用 abf coloc 替换了 susie。这可能会花费更少的时间并且更方便。 (但由于缺点,笔者不推荐)。以下步骤需要根据情况进行调整。

In that case, could you find any positive results? I have tried using coloc.abf, but the PP.H4.abf values I obtained were all quite small.那么,你能找到任何积极的结果吗?我尝试过使用coloc.abf ,但是我获得的 PP.H4.abf 值都非常小。

I did find some positive results, with the PPH4 0.95-1.我确实发现了一些积极的结果,PPH4 为 0.95-1。

May I ask if you are using the example data, the eight types of brain cell data from the single-cell-eqtl?

Well, I did not run the example data but here's some of my result line:

1728539616138
HongyuanChu commented 1 month ago

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem.参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?您能否详细解释一下您是如何完全替换 SuSiE 精细映射步骤来解决此问题的?

I replaced susie with abf coloc. This may take less time and be more convient. (But not recommended by the author because of shortcomings). The following steps need to be adjusted accrodingliy.我用 abf coloc 替换了 susie。这可能会花费更少的时间并且更方便。 (但由于缺点,笔者不推荐)。以下步骤需要根据情况进行调整。

In that case, could you find any positive results? I have tried using coloc.abf, but the PP.H4.abf values I obtained were all quite small.那么,你能找到任何积极的结果吗?我尝试过使用coloc.abf ,但是我获得的 PP.H4.abf 值都非常小。

I did find some positive results, with the PPH4 0.95-1.我确实发现了一些积极的结果,PPH4 为 0.95-1。

May I ask if you are using the example data, the eight types of brain cell data from the single-cell-eqtl?

Well, I did not run the example data but here's some of my result line: 1728539616138

And this is a brain-related disorder. There were 56 SNPs with PPH4>0.8. Maybe u can have a try in certain neurologic disorder?

jasmine327 commented 1 month ago

Thank you very much for your patient responses. May I have your email for further communication?

------------------ 原始邮件 ------------------ 发件人: "rhhao/csMR" @.>; 发送时间: 2024年10月10日(星期四) 中午1:57 @.>; @.**@.>; 主题: Re: [rhhao/csMR] Error while running susie_finemap.py (Issue #5)

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem.参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?您能否详细解释一下您是如何完全替换 SuSiE 精细映射步骤来解决此问题的?

I replaced susie with abf coloc. This may take less time and be more convient. (But not recommended by the author because of shortcomings). The following steps need to be adjusted accrodingliy.我用 abf coloc 替换了 susie。这可能会花费更少的时间并且更方便。 (但由于缺点,笔者不推荐)。以下步骤需要根据情况进行调整。

In that case, could you find any positive results? I have tried using coloc.abf, but the PP.H4.abf values I obtained were all quite small.那么,你能找到任何积极的结果吗?我尝试过使用coloc.abf ,但是我获得的 PP.H4.abf 值都非常小。

I did find some positive results, with the PPH4 0.95-1.我确实发现了一些积极的结果,PPH4 为 0.95-1。

May I ask if you are using the example data, the eight types of brain cell data from the single-cell-eqtl?

Well, I did not run the example data but here's some of my result line:

And this is a brain-related disorder. There were 56 SNPs with PPH4>0.8. Maybe u can have a try in certain neurologic disorder?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

jasmine327 commented 1 month ago

See chr1swallace/coloc#90; I completely replaced the susie finemapping step to solve this problem.参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。参见chr1swallace/coloc#90 ;我完全替换了susie Finemapping步骤来解决这个问题。

Could you please explain in detail how you completely replaced the SuSiE fine-mapping step to resolve this issue?您能否详细解释一下您是如何完全替换 SuSiE 精细映射步骤来解决此问题的?

I replaced susie with abf coloc. This may take less time and be more convient. (But not recommended by the author because of shortcomings). The following steps need to be adjusted accrodingliy.我用 abf coloc 替换了 susie。这可能会花费更少的时间并且更方便。 (但由于缺点,笔者不推荐)。以下步骤需要根据情况进行调整。

In that case, could you find any positive results? I have tried using coloc.abf, but the PP.H4.abf values I obtained were all quite small.那么,你能找到任何积极的结果吗?我尝试过使用coloc.abf ,但是我获得的 PP.H4.abf 值都非常小。

I did find some positive results, with the PPH4 0.95-1.我确实发现了一些积极的结果,PPH4 为 0.95-1。

May I ask if you are using the example data, the eight types of brain cell data from the single-cell-eqtl?请问您使用的示例数据是single-cell-eqtl中的八种脑细胞数据吗?

Well, I did not run the example data but here's some of my result line: 1728539616138好吧,我没有运行示例数据,但这是我的一些结果行: 1728539616138

And this is a brain-related disorder. There were 56 SNPs with PPH4>0.8. Maybe u can have a try in certain neurologic disorder?这是一种与大脑相关的疾病。 PPH4>0.8的SNP有56个。也许你可以尝试治疗某些神经系统疾病?

Thank you very much for your patient responses. May I have your email for further communication?

HongyuanChu commented 1 month ago

chuhongyuan@pku.edu.cn