convert_plink2_bin_files_to_plink_bin_files: Convert 'PLINK2' binary data files to 'PLINK' binary data...

View source: R/convert_plink2_bin_files_to_plink_bin_files.R

convert_plink2_bin_files_to_plink_bin_filesR Documentation

Description

Convert PLINK2 binary data files to PLINK binary data files

Usage

convert_plink2_bin_files_to_plink_bin_files(
  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

a list with the following elements:

  • bed_filename: the full .bed filename

  • bim_filename: the full .bim filename

  • fam_filename: the full .fam filename

  • log_filename: the full .log filename

Author(s)

Richèl J.C. Bilderbeek

See Also

these are the functions to convert between the PLINK and PLINK2 files:

  • To convert from PLINK1 text files

    • to PLINK1 binary files: use convert_plink_text_files_to_plink_bin_files

    • to PLINK2 binary files, use convert_plink_text_files_to_plink2_bin_files

  • To convert from PLINK1 binary files

    • to PLINK text files, use convert_plink_bin_files_to_plink_text_files

    • to PLINK2 binary files, use convert_plink_bin_files_to_plink2_bin_files

  • To convert from PLINK2 binary files

    • to PLINK text files, use convert_plink2_bin_files_to_plink_text_files

    • to PLINK binary files, use convert_plink2_bin_files_to_plink_bin_files


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