standardise.sumstats.column.headers: Standardise the column headers in the Summary Statistics...

View source: R/standardise.sumstats.column.headers.R

standardise.sumstats.column.headersR Documentation

Standardise the column headers in the Summary Statistics files

Description

Use a reference data table of common column header names (stored as MAGMA.Celltyping::sumstatsColHeaders) convert them to a standard set, i.e. chromosome –> CHR. This function does not check that all the required column headers are present. The amended header is written directly back into the file.

Usage

standardise.sumstats.column.headers(path)

Arguments

path

File path for the summary statistics file.

Value

The amended column headers (also the column headers will be written directly into the summary statistics file)

Examples

## Not run:  
path <- MAGMA.Celltyping::get_example_gwas()
col_headers <- MAGMA.Celltyping::standardise.sumstats.column.headers(
    path = path)

## End(Not run)

NathanSkene/MAGMA_Celltyping documentation built on Aug. 21, 2023, 8:55 a.m.