Skip to contents

Extract phenotype variance from a GwasSumStats or QtlSumStats entry, selected by its identity tuple. Returns NULL when the entry has no varY recorded.

Usage

getVarY(x, ...)

# S4 method for class 'QtlSumStats'
getVarY(x, study = NULL, context = NULL, trait = NULL)

# S4 method for class 'GwasSumStats'
getVarY(x, study = NULL)

Arguments

x

A GwasSumStats or QtlSumStats object.

...

Class-specific selection arguments.

study

Character (length 1) or NULL. Restrict the selection to this study; NULL matches all studies.

context

Character (length 1) or NULL. Restrict the selection to this context; NULL matches all contexts.

trait

Character (length 1) or NULL. Restrict the selection to this trait; NULL matches all traits.

Value

Numeric phenotype variance, or NULL.

Examples

data(qtlSumStatsExample)
getVarY(qtlSumStatsExample)
#> NULL