Skip to contents

Uses MungeSumstats' comprehensive column name mapping to standardize column names from various GWAS formats, then renames to pecotmr conventions. Optionally applies an additional custom column mapping file.

Usage

standardise_sumstats_columns(
  sumstats,
  column_file_path = NULL,
  comment_string = "#"
)

Arguments

sumstats

A data frame of summary statistics.

column_file_path

Optional file path to a custom column mapping file (format: standard_name:original_name, one per line). Applied after MungeSumstats standardization.

comment_string

Comment character in column_file_path. Default is "#".

Value

A data frame with standardized column names.