Skip to contents

Extract z-score vector from a GwasSumStats or QtlSumStats entry, selected by its identity tuple.

Usage

getZ(x, ...)

# S4 method for class 'SumStatsBase'
getZ(x, ...)

Arguments

x

A GwasSumStats or QtlSumStats object.

...

Class-specific selection arguments (e.g., study for GwasSumStats; study, context, trait for QtlSumStats).

Value

Numeric vector of z-scores.

Examples

data(qtlSumStatsExample)
getZ(qtlSumStatsExample)
#>   [1] -1.02002505  0.10882601 -0.22507823 -0.98934019 -0.88441232 -1.36258507
#>   [7]  0.26130240 -0.89468019 -0.35176264  0.60233334  1.19107694 -0.15793278
#>  [13]  0.06309840  0.29530505  0.92159953 -0.03669945 -0.27203917 -0.67336007
#>  [19]  1.20397519  1.20789358  1.55082683  0.48631290  0.48631290  0.42659022
#>  [25]  0.46368975 -0.39632955 -0.38674365 -0.19101782  1.37351133  0.10160514
#>  [31]  1.37351133 -1.49504879 -0.19188204  1.36087161 -0.84906734 -0.20337474
#>  [37] -0.74770737  0.39229222 -1.61474361  0.87293496  1.09794640  2.06629366
#>  [43]  0.16371868 -0.22399189  0.88399272 -0.54968719  0.69291119 -0.14501797
#>  [49] -0.26526859  3.69059572 -1.86714581  3.72341887  3.72625099 -1.02186528
#>  [55]  3.14874150  1.72758220  3.53125411  3.58935336 -0.04956788  1.14234238
#>  [61]  3.11124211  3.87095384  1.90303593 -0.38339491 -1.57156980  1.90324089
#>  [67]  2.46768433 -0.91375589 -0.88123376  2.29440221 -0.96155593 -1.00887471
#>  [73]  0.66389121 -1.32889813  2.40478432  2.46768433 -0.95667747  2.46768433
#>  [79] -1.17578329  2.45123640  2.47585817  2.39652958  2.40478432  2.46768433
#>  [85] -1.15412054  1.88402699  3.24185955 -0.27300445 -0.27300445 -0.62666795
#>  [91] -1.29338919  2.39768170 -1.31605090 -1.21681042 -1.32649488  0.18508635
#>  [97]  2.38919214 -0.78471951 -0.52941107  1.70333403 -0.52941107  1.19386402
#> [103] -0.23020269 -0.23020269  1.17412285 -0.23823800 -0.23823800 -0.52941107
#> [109]  2.12311139  0.97453516 -0.59328883  1.29671121  0.97453516 -0.14276783
#> [115] -1.21681042 -0.14276783 -0.14276783  0.65858647  2.30027052 -1.04518505
#> [121]  2.08174550  2.30027052 -1.04518505  2.14398136  0.83107829  0.64747677
#> [127] -0.11110630  0.64747677  1.85347939 -0.83985995  0.66789804  0.57336941
#> [133] -1.01864876  1.66151567  1.91927018  1.66151567  0.50367528  0.53393559
#> [139]  1.87357625  2.14515101  0.75633064  2.11995327  2.13578362 -1.46225042
#> [145] -0.17326524  0.60547847 -0.61309346 -0.36144694 -0.97311421  1.53796426
#> [151] -0.24032041 -0.08330106  0.12010940  0.14102148  0.25838378 -0.52114029
#> [157] -0.47526167  0.68167668 -0.61774202  0.66283743 -0.34897088  0.16263777
#> [163]  0.17633432  0.16263777  0.66283743  0.39843769 -0.01690169 -0.10595517
#> [169] -0.31798651  0.52839999 -0.88215317 -0.65014450 -0.06081678  1.87081970
#> [175]  0.52622079  2.00201060 -0.05809595 -0.98048325 -0.81317139  0.15818310
#> [181]  1.71732804 -1.34691447 -0.44906417 -1.23014601  1.64737145 -0.24014814
#> [187] -0.08780501 -0.61203256 -0.91337067 -0.46502830 -0.56495053 -0.46502830
#> [193] -0.39639928 -0.56495053 -0.56495053  0.41934504 -0.40132179  0.28469448
#> [199] -0.56495053  1.66147715