R/finemapping.R
process_finemapping_sumstats.Rd
Process fine-mapping summary statistics data
process_finemapping_sumstats(
finemapstats,
snp = "snp",
chr = "chr",
pos = "pos",
pip = "pip",
pval = "pval",
zscore = "zscore",
cs = "cs",
locus = "locus",
pip.thresh = 0,
filterCS = FALSE,
maxL = 10
)
A data frame of fine-mapping summary statistics
Name of the SNP ID (rsID) column in the fine-mapping summary statistics
Name of the chr column in the fine-mapping summary statistics
Name of the position column in the fine-mapping summary statistics
Name of the PIP column in the fine-mapping summary statistics
Name of the P-value column in the fine-mapping summary statistics
Name of the z-score column in the fine-mapping summary statistics
Name of the credible set (CS) column in the fine-mapping summary statistics
Name of the locus column in the fine-mapping summary statistics
Select SNPs by PIP threshold (default = 0, no filtering).
If TRUE, limiting to SNPs within credible sets.
Maximum number of credible sets (default = 10).
If filterCS is TRUE, it will only keep SNPs with credible set (CS) number >= 1
and <= maxL
.
A GRanges object with cleaned and filtered fine-mapping summary statistics