Skip to contents

Return the unique trait identifiers carried by a collection class (e.g., QtlSumStats), the trait names of an SldscData, or the single trait label an H2Estimate was computed for.

Usage

traitNames(x)

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

# S4 method for class 'H2Estimate'
traitNames(x)

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

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

# S4 method for class 'SldscData'
traitNames(x)

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

Arguments

x

The object.

Value

Character vector of unique trait names; length 1 for an H2Estimate.

Examples

data(qtlSumStatsExample)
traitNames(qtlSumStatsExample)
#> [1] "ENSG_example"