Skip to contents

Reads a site profile from CSV files previously written by exportSiteProfile. Reconstructs the profile list object that can be passed to poolLikelihoodProfiles, restoring the optional allele-score definition and per-SNP summary sidecar files when they are present.

Usage

importSiteProfile(profilePath, metadataPath = NULL)

Arguments

profilePath

Character. Path to the profile CSV file (the file containing beta and log_likelihood columns).

metadataPath

Character. Path to the metadata CSV file. If NULL (default), the function infers the path by replacing "_profile_" with "_metadata_" in profilePath.

Value

A list with the same structure as fitOutcomeModel output, suitable for passing to poolLikelihoodProfiles. If the companion *_per_snp_*.csv file exists, the returned object also includes perSnpEstimates.

Examples

if (FALSE) { # \dontrun{
profile <- importSiteProfile("medusa_profile_site_A.csv")
} # }