create_phe_table_from_plink_bin2_filenames: Create a single-phenotype table from a table from the PLINK2...

View source: R/create_phe_table_from_plink_bin2_filenames.R

create_phe_table_from_plink_bin2_filenamesR Documentation

Description

Create a single-phenotype table from a table from the PLINK2 binary files.

Usage

create_phe_table_from_plink_bin2_filenames(plink2_bin_filenames)

Arguments

plink2_bin_filenames

the binary data files' names for PLINK2 to work on, as created by create_plink2_bin_filenames.

Details

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.

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


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