create_test_plink2_bin_data: Create a set of 'PLINK2' binary data to be used in testing

View source: R/create_test_plink2_bin_data.R

create_test_plink2_bin_dataR Documentation

Create a set of PLINK2 binary data to be used in testing

Description

Create a set of PLINK2 binary data to be used in testing

Usage

create_test_plink2_bin_data(
  pgen_table = get_test_pgen_table(),
  psam_table = get_test_psam_table(),
  pvar_table = get_test_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

Examples

create_test_plink2_bin_data()

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