get_sample_ids_from_fam_table: Get the sample IDs from a '.fam' file

View source: R/get_sample_ids_from_fam_table.R

get_sample_ids_from_fam_tableR Documentation

Get the sample IDs from a .fam file

Description

Get the sample IDs from a .fam file

Usage

get_sample_ids_from_fam_table(fam_table)

Arguments

fam_table

a tibble of the genetic mapping, with as many rows as SNPs.

Each row contains:

  • fam: the family ID

  • id: the individual's ID

  • pat: ID of father

  • mat: ID of mother

  • sex: the gender

  • pheno: a phenotype

Use get_test_fam_table to get a .fam table as used in testing. Use read_plink_fam_file to read a PLINK .fam file. Use check_fam_table to test if a .fam 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_fam_file to extract the sample_ids from a .fam file

Examples

fam_table <- get_test_fam_table()
get_sample_ids_from_fam_table(fam_table)

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