create_phe_table_from_psam_table: Create a single-phenotype table from pedigree ('.psam') table

View source: R/create_phe_table_from_psam_table.R

create_phe_table_from_psam_tableR Documentation

Create a single-phenotype table from pedigree (.psam) table

Description

Create a single-phenotype table from pedigree (.psam) table. The individuals' family and within-family ID's are copied. The pheno is copied as well, but renamed to P1 and divided by ten. In this way, PLINK treats the phenotype table as having quantitative traits.

Usage

create_phe_table_from_psam_table(psam_table)

Arguments

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.

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_psam_table(get_test_psam_table())

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