selectMDT: Retrieve annotations from MDT objects.

Description Usage Arguments Value

Description

Retrieve annotations from annotations(x), phenotyope(x) and info(x) in MDT objects.

Usage

1
2
3
4
5
selectMDT(x, keys, columns, keytype = "annotations", na.rm = TRUE)

## S4 method for signature 'MDT'
selectMDT(x, keys, columns, keytype = "annotations",
  na.rm = TRUE)

Arguments

x

MDT object.

keys

character or data.table with SampleID and/or FeatureID key values to select records. Can only be a character when keytype is not info.

columns

The columns to be retrieved from the annotation data.table.

keytype

character specifying which annotation data.table should be used. Choose from "annotations", "phenotype" or "info".

na.rm

Should NA values be removed from results.

Value

data.table with relevant key and annotations.


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