FinucaneLab / fine-mapping-inf

Fine-mapping with infinitesimal effects
13 stars 3 forks source link

Credible sets for Finemap-inf #3

Open sayangsep opened 1 year ago

sayangsep commented 1 year ago

Hi, I was trying to run Finemap-inf and generate credible sets. But, I cannot find the outputs for credible sets. Could you please guide me on this?

cuiran commented 1 year ago

Hi, we currently only have credible set information for SuSiE-inf not FINEMAP-inf. If you run the run_fine_mapping.py script, The SuSiE-inf credible set information can be found in the column named ‘cs’. The different numerical values indicate which credible set the corresponding SNP is in, -1 value means the SNP is not in any credible set. If you run susieinf.py directly, the credible set information is stored in the key ‘cred’ in the outputted dictionary. Let me know if that helps.

sayangsep commented 1 year ago

Thank you for your reply! I have another question: While running susie-inf is there a way to fix $s^2$ (i.e. variance of fixed effects) and $\tau^2$ (variance of residual noise)?

cuiran commented 1 year ago

Yes, you can specify ssq and tausq in the function susie in susieinf.py https://github.com/FinucaneLab/fine-mapping-inf/blob/4af3e6ebf04f372bcb641977601a2b65a4080237/susieinf/susieinf.py#L79

sayangsep commented 1 year ago

Thanks for your reply! While running susie-inf I am encountering the following error. Can you please tell me what's causing this error? I am also attaching my z-file and LD file for your reference.

################## Error ################## Reading summary statistics from file /mnt/sdb1/sayan/finemapping_mixed/data/data21/setting60/Simulation_data1.z 0 1 0 rs0 -13.799580 1 rs1 16.040077 2 rs2 -8.640558 3 rs3 4.779611 4 rs4 36.948448 .. ... ... 995 rs995 -7.753660 996 rs996 1.300606 997 rs997 -7.236649 998 rs998 -2.895833 999 rs999 1.436788

[1000 rows x 2 columns] 1000 SNPs in summary statistics file Reading in LD matrix from file /mnt/sdb1/sayan/finemapping_mixed/data/data21/setting60/Simulation_data1.ld Reading in LD matrix took 0.12 seconds Performing eigen decomposition Eigen decomposition took 0.18 seconds Running susieinf