Create a Table of Credible Sets from Finimom Model
finimom_cs_table.RdThis function processes a Finimom model to generate a table summarizing credible sets, their associated SNPs, positions, and posterior inclusion probabilities (PIPs). Additionally, it identifies the SNP with the smallest p-value in each credible set.
Value
A data frame summarizing the credible sets with the following columns:
SNP: SNP identifier.
POS: SNP position.
P: SNP p-value.
PIP: Posterior inclusion probability for the SNP.
cs: Credible set label (e.g., "L1", "L2").
cs_snps: Comma-separated list of other SNPs in the same credible set.
label: SNP identifier of the SNP with the smallest p-value in each credible set. We choose P because PIP is equal for SNPs in a CS.