Learn R Programming

ApplyPolygenicScore (version 4.0.1)

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

Description

Parse metadata from a PGS input file header.

Usage

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

Value

A data frame containing the metadata from the file header.

Arguments

pgs.weight.path

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

Examples

Run this code
# 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);

Run the code above in your browser using DataLab