pgs_add_single: Add single PGS data to the MOAS

View source: R/pgs-funcs.R

pgs_add_singleR Documentation

Add single PGS data to the MOAS

Description

This function calls on [pgs_add] to read in all PGS at specified significance levels, and adds that data to the MOAS-type data provided.

Usage

pgs_add_single(
  MOAS = NULL,
  pgs_file = character(),
  genetic_match_file = character(),
  include_cnt = FALSE,
  include_genetic_debug = FALSE
)

Arguments

MOAS

data.frame of the full MOAS or MOAS sub-set

pgs_file

path to PGS.profile

genetic_match_file

path to the file containing the MOAS-genetics matching and debugging information

include_cnt

logical, whether to keep SNP count information

include_genetic_debug

logical, whether to keep all columns in the genetic_match_file in the final output

Value

a tibble / data.frame

See Also

Other pgs-functions: pgs_add_all(), pgs_add(), pgs_get_all(), pgs_get_single(), pgs_get(), pgs_read()

Examples

## Not run: 

# In this version you dont need to specify the
# PGS.profile you want

pgs_add_single(
    MOAS
    pgs_file = "path/to/Genetics/PGS/PGS_somedate/",
    genetic_match_file = "path/to//gID_MOAS_match.tsv",
)

## End(Not run)

LCBC-UiO/MOAS documentation built on Aug. 28, 2023, 3:29 a.m.