create_plink2_bin_data: Create a set of 'PLINK2' binary data

View source: R/create_plink2_bin_data.R

create_plink2_bin_dataR Documentation

Create a set of PLINK2 binary data

Description

Create a set of PLINK2 binary data

Usage

create_plink2_bin_data(pgen_table, psam_table, pvar_table)

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

psam_table

a tibble with as much rows as individuals. It has the following columns:

  • FID: the family ID

  • IID: the within-family ID

  • SEX: the sex

  • PHENO1: a phenotypic value

The uppercase column names are those as used by PLINK2.

pvar_table

a tibble with as much rows as SNPs. It has the following columns:

  • CHROM: the chromosome

  • POS: the position on the chromosome

  • ID: the SNP ID

  • REF: the reference variant

  • ALT: the alternate variant

The uppercase column names are those as used by PLINK2.

Author(s)

Richèl J.C. Bilderbeek

See Also

use create_test_plink_bin_data to create a set of PLINK binary data to be used in testing

Examples

create_plink2_bin_data(
  pgen_table = get_test_pgen_table(),
  psam_table = get_test_psam_table(),
  pvar_table = get_test_pvar_table()
)

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