get_sample_ids_from_phe_table: Get the sample IDs from a '.phe' file

View source: R/get_sample_ids_from_phe_table.R

get_sample_ids_from_phe_tableR Documentation

Get the sample IDs from a .phe file

Description

Get the sample IDs from a .phe file

Usage

get_sample_ids_from_phe_table(phe_table)

Arguments

phe_table

a table of phenotypes.

A phe_table is a tibble with these columns:

  • FID The family ID

  • IID Within-family ID (cannot be zero)

  • One or more columns of phenotype values, columns can have any name

These names match the PLINK column names (https://www.cog-genomics.org/plink/1.9/input#pheno). Use read_plink_phe_file to read a phenotype file. Use check_phe_table to test if a phenotype table is valid.

Value

the sample_ids (see check_sample_ids)

Author(s)

Richèl J.C. Bilderbeek

See Also

use get_sample_ids_from_phe_file to extract the sample_ids from a .phe file

Examples

phe_table <- get_test_phe_table()
get_sample_ids_from_phe_table(phe_table)

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