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
GwasSumStatsorQtlSumStatsobject.- ...
Class-specific selection arguments.
- study
Character (length 1) or
NULL. Restrict the selection to this study;NULLmatches all studies.- context
Character (length 1) or
NULL. Restrict the selection to this context;NULLmatches all contexts.- trait
Character (length 1) or
NULL. Restrict the selection to this trait;NULLmatches all traits.
Examples
data(qtlSumStatsExample)
getVarY(qtlSumStatsExample)
#> NULL