read_plink_phe_file: Read a 'PLINK' raw phenotype file

View source: R/read_plink_phe_file.R

read_plink_phe_fileR Documentation

Description

Read a PLINK raw phenotype file.

Usage

read_plink_phe_file(phe_filename)

Arguments

phe_filename

name of a phenotype (.phe) file, as checked by check_phe_filename. Use read_plink_phe_file to read a raw phenotype file.

Value

a tibble with the following columns:

  • FID The family ID

  • IID Within-family ID (cannot be zero)

  • Px One or more columns with phenotypic values, where x is the index of the trait: the first column is called P1, the second P2, etcetera. The FID, IID and Px column names match the PLINK names, see https://www.cog-genomics.org/plink/1.9/input#pheno

Note

The filename extension used in the PLINK tutorial is .phe, where the PLINK 'Getting started' uses .raw

Author(s)

Richèl J.C. Bilderbeek

See Also

use get_test_phe_table to get a phenotype table, to be used in testing

Examples

read_plink_phe_file(
  phe_filename = get_plinkr_filename("pheno.raw")
)

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