parse.pgs.input.header: Parse PGS input file header

View source: R/handle-weight-files.R

parse.pgs.input.headerR Documentation

Parse PGS input file header

Description

Parse metadata from a PGS input file header.

Usage

parse.pgs.input.header(pgs.weight.path)

Arguments

pgs.weight.path

A character string indicating the path to the pgs weight file.

Value

A data frame containing the metadata from the file header.

Examples

# Example pgs weight file
pgs.weight.path <- system.file(
    'extdata',
    'PGS000662_hmPOS_GRCh38.txt.gz',
    package = 'ApplyPolygenicScore',
    mustWork = TRUE
    );
parse.pgs.input.header(pgs.weight.path);

ApplyPolygenicScore documentation built on April 4, 2025, 12:18 a.m.