getGroupLabel: Get the outcome label of the genotype data

View source: R/managePlinkData.R

getGroupLabelR Documentation

Get the outcome label of the genotype data

Description

Get the group label from the PLINK FAM file.

Usage

getGroupLabel(inputFAMfile)

Arguments

inputFAMfile

the PLINK FAM file.

Details

If the input FAM file also has missing outcomes, which are shown in the sixth column of FAM file as "0", then an error is given.

Value

The group label of the genotype data: "control" or "case" or "caseControl" indicating both groups exist.

Author(s)

Junfang Chen

Examples

famFile <- system.file("extdata", "genoUpdatedData.fam", package="Gimpute")  
getGroupLabel(inputFAMfile=famFile)

transbioZI/Gimpute documentation built on April 10, 2022, 4:20 a.m.