Harmonize GWAS summary statistics headers
Source:R/harmonize_sumstats_headers.R
harmonize_sumstats_headers.RdReads a GWAS summary statistics text file (plain or .gz) and renames
columns to a standardised vocabulary. Unmapped columns are left unchanged.
Arguments
- input_file
Path to a plain-text or gzip-compressed summary statistics file readable by
data.table::fread().- column_map
Optional named character vector of per-cohort column renames. Names are source column names in the file; values are target harmonised names. Applied before the built-in dictionary so that user overrides take priority. Use
build_column_map()to construct this vector from manifestcol_*values. DefaultNULL(no custom mapping).
Value
A data.table::data.table() with harmonised column names.