read_plink_eigenvec_file: Read a 'PLINK'/'PLINK2' '.eigenvec' file

View source: R/read_plink_eigenvec_file.R

read_plink_eigenvec_fileR Documentation

Description

Read a PLINK/PLINK2 .eigenvec file.

Usage

read_plink_eigenvec_file(eigenvec_filename)

Arguments

eigenvec_filename

name for a .eigenvec file, as can be read with read_plink_eigenvec_file

Details

By default, pca (the function to do principal component analysis) uses 20 eigenvecues

Value

a tibble with the following columns:

  • fam: the family ID, also know as FID

  • id: the within-family ID, also know as IID

  • pc_[x]: the ⁠[x]⁠th principle component

Author(s)

Richèl J.C. Bilderbeek

See Also

use get_test_eigenvec_table to get an eigenvecue table, to be used in testing

Examples

read_plink_eigenvec_file(
  eigenvec_filename = get_plinkr_filename("pca.eigenvec")
)

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