make_pgen: Convert to 'PLINK2' binary files

View source: R/make_pgen.R

make_pgenR Documentation

Convert to PLINK2 binary files

Description

Convert to PLINK2 binary files

Usage

make_pgen(
  base_input_filename,
  base_output_filename = file.path(dirname(base_input_filename), "output"),
  plink_options = create_plink_v2_0_options(),
  verbose = FALSE
)

Arguments

base_input_filename

the base of the filenames that are used as input for PLINK/PLINK2

base_output_filename

the base of the filenames that are used as output for PLINK/PLINK2

plink_options

options to run PLINK, as created by create_plink_options

verbose

the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid.

Value

The full names of the created PLINK2 binary files, which have the following four file extensions:

  • .log

  • .pgen

  • .psam

  • .pvar

Note

this function is named after the PLINK --make-pgen parameter flag

Author(s)

Richèl J.C. Bilderbeek


richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.