Skip to contents

This 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.

Usage

finimom_cs_table(finimom_model, df)

Arguments

finimom_model

A Finimom model object containing credible sets and PIPs.

df

A data frame containing SNP information with columns:

SNP

Character vector of SNP identifiers.

POS

Numeric vector of SNP positions.

P

Numeric vector of p-values.

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.