importPhenotype: Adds phenotype data to MDT object

Description Usage Arguments Details Value See Also

Description

Adds phenotype data to MDT object.

Usage

1
2
3
4
importPhenotype(x, file, response_type = "factor", ...)

## S4 method for signature 'MDT'
importPhenotype(x, file, response_type = "factor", ...)

Arguments

x

MDT object.

file

Filename containing phenotypic information. Must be tab separated, and contain a column named SampleID corresponding to Sample names, one column named RESPONSE corresponding to the response variable, and SEX and AGE columns. Warning: the function is CAPS sensitive.

response_type

Class of RESPONSE. Choose between: 'numeric', 'integer', 'character' or 'factor'.

...

Further arguments to pass on to fread.

Details

Uses fread to read file.

Value

Updates MDT object with phenotype data.

See Also

fread


olivmrtn/MachineLearningGWAS documentation built on May 24, 2019, 12:52 p.m.