Get a Single Summary-Statistic Entry or Embedded Collection
Source:R/AllGenerics.R, R/MultiStudyQtlDataset.R, R/qtlSumStats.R
getSumStats.RdBehavior depends on the class of x:
- For
GwasSumStats/QtlSumStats Returns the per-variant
GRangesof summary statistics for one entry, selected by its identity tuple (studyfor GWAS;study,context,traitfor QTL).- For
MultiStudyQtlDataset Returns the embedded
QtlSumStatscollection (the summary-statistic-only studies), orNULLwhen absent. No selection arguments are accepted in this case.
Usage
getSumStats(x, ...)
# S4 method for class 'MultiStudyQtlDataset'
getSumStats(x, ...)
# S4 method for class 'QtlSumStats'
getSumStats(
x,
study = NULL,
context = NULL,
trait = NULL,
annotateSignificance = NULL,
...
)Arguments
- x
A
GwasSumStats,QtlSumStats, orMultiStudyQtlDatasetobject.- ...
Class-specific selection arguments (see above).
- annotateSignificance
Optional correction-method name (
"permutation"/"bonferroni_original"/"bonferroni_filtered"/"qvalue"). When set on a QtlSumStats enriched byqtlAssociationPostprocess, a logicalsignificantmcol for that method is added to the returned entry (the significance is derived on the fly, not stored). Flat export flattens this full entry GRanges (all mcols) directly; notegetSumstatDfis a fixed GWAS-schema view and does not carry the association columns.