create_phe_table_from_plink2_bin_data: Create a single-phenotype table from a table within the...

View source: R/create_phe_table_from_plink2_bin_data.R

create_phe_table_from_plink2_bin_dataR Documentation

Create a single-phenotype table from a table within the PLINK2 binary data.

Description

Create a single-phenotype table from a table within the PLINK2 binary data. The individuals' family and within-family ID's are copied. The case_control_code is copied as well, but renamed to trait and divided by then. In this way, PLINK treats the phenotype table as having quantitative traits.

Usage

create_phe_table_from_plink2_bin_data(plink2_bin_data)

Arguments

plink2_bin_data

the genetic and phenotypic data for PLINK2 to work on, in PLINK2 binary format, as created by create_plink2_bin_data.

Value

a single-phenotype tibble, with columns:

  • FID the family ID

  • IID the within-family ID

  • P1 the phenotype

The column names match the PLINK names, see https://www.cog-genomics.org/plink/1.9/input#pheno

Author(s)

Richèl J.C. Bilderbeek

Examples

create_phe_table_from_plink_bin_data(create_test_plink_bin_data())

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