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

View source: R/convert_pgen_table_to_bed_table.R

convert_pgen_table_to_bed_tableR Documentation

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

Description

Convert a PLINK2 .pgen table to a PLINK .bed table. To do so, simply transpose a .pgen table, see https://github.com/chrchang/plink-ng/issues/195

Usage

convert_pgen_table_to_bed_table(pgen_table, verbose = FALSE)

Arguments

pgen_table

an array that maps the individuals to their SNPs, with as much rows as individuals, and as much SNPs as columns. Optionally, the row names are the individuals' IDs, where the column names are the SNP ID's

verbose

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

Value

a PLINK .bed table

Author(s)

Richèl J.C. Bilderbeek


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