convert_bed_table_to_pgen_table: Convert a 'PLINK' '.bed' table to a 'PLINK2' '.pgen' table

View source: R/convert_bed_table_to_pgen_table.R

convert_bed_table_to_pgen_tableR Documentation

Convert a PLINK .bed table to a PLINK2 .pgen table

Description

Convert a PLINK .bed table to a PLINK2 .pgen table

Usage

convert_bed_table_to_pgen_table(bed_table, verbose = FALSE)

Arguments

bed_table

a table that maps the SNPs to the individuals, of which the column names are the names of the individuals, the row names are the names of the SNPs, and the values are the SNP variant. Use get_test_bed_table to get a .bed table as used in testing. Use read_plink_bed_file to read a PLINK .bed file. Use check_bed_table to test if a .bed table is valid. See also the bed file format reference at https://www.cog-genomics.org/plink2/formats#bed

verbose

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

Value

a PLINK2 .pgen table

Author(s)

Richèl J.C. Bilderbeek


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