Skip to contents

Return the names of all contexts carried by an object (e.g., the keys of the phenotypes list on a QtlDataset, or the unique context values of a QtlSumStats).

Usage

contexts(x)

# S4 method for class 'CtwasResult'
contexts(x)

# S4 method for class 'GwasFineMappingResult'
contexts(x)

# S4 method for class 'QtlSumStats'
contexts(x)

# S4 method for class 'QtlDataset'
contexts(x)

# S4 method for class 'QtlFineMappingResult'
contexts(x)

# S4 method for class 'TwasWeights'
contexts(x)

Arguments

x

The object.

Value

Character vector of context names.

Examples

data(qtlDatasetExample)
contexts(qtlDatasetExample)
#> [1] "brain"