Skip to contents

Extract the marginal effect-size (beta) vector from a GwasSumStats or QtlSumStats entry, selected by its identity tuple.

Usage

getBeta(x, ...)

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

Arguments

x

A GwasSumStats or QtlSumStats object.

...

Class-specific selection arguments.

Value

Numeric vector of effect sizes, or NULL if not available.

Examples

data(qtlSumStatsExample)
getBeta(qtlSumStatsExample)
#>   [1] -0.236754245  0.019028899 -0.043131191 -0.119430154 -0.149398852
#>   [6] -0.190947609  0.042860825 -0.157984244 -0.080885391  0.082147470
#>  [11]  0.150816893 -0.020832522  0.007481250  0.033597881  0.125970733
#>  [16] -0.004587459 -0.074693050 -0.121815127  0.167726908  0.442092068
#>  [21]  0.206412336  0.099970251  0.099970251  0.067709069  0.077266211
#>  [26] -0.048090517 -0.046954069 -0.030722565  0.181473272  0.017885892
#>  [31]  0.181473272 -0.360327869 -0.031097043  0.181006478 -0.108678239
#>  [36] -0.033084031 -0.094393428  0.046633271 -0.396094934  0.154428544
#>  [41]  0.153605206  0.281688080  0.021891758 -0.121569648  0.110694847
#>  [46] -0.170185526  0.089859762 -0.018524480 -0.063083126  0.554132077
#>  [51] -0.232094941  0.559627393  0.556003665 -0.182615003  0.415953885
#>  [56]  0.206502990  0.555386861  0.546937251 -0.006430736  0.139058413
#>  [61]  0.471963081  0.629971521  0.358052328 -0.099016260 -0.184186704
#>  [66]  0.338074664  0.450609000 -0.123486584 -0.119615983  0.309903114
#>  [71] -0.116098815 -0.135055252  0.105783635 -0.169890838  0.436770212
#>  [76]  0.450609000 -0.113970334  0.450609000 -0.142357751  0.465902123
#>  [81]  0.452779312  0.434592681  0.436770212  0.450609000 -0.149536063
#>  [86]  0.323726327  0.404962858 -0.070478336 -0.070478336 -0.081283672
#>  [91] -0.164967684  0.376643514 -0.152574497 -0.163387875 -0.170496699
#>  [96]  0.049560591  0.374700845 -0.094042587 -0.063315932  0.283717854
#> [101] -0.063315932  0.188749086 -0.028094589 -0.028094589  0.214574922
#> [106] -0.029070557 -0.029070557 -0.063315932  0.282684157  0.179838938
#> [111] -0.070833052  0.213384468  0.179838938 -0.017257113 -0.163387875
#> [116] -0.017257113 -0.017257113  0.076101317  0.280888207 -0.148880398
#> [121]  0.258047465  0.280888207 -0.148880398  0.266657239  0.092250840
#> [126]  0.071535096 -0.046020072  0.071535096  0.252311648 -0.170706700
#> [131]  0.073785232  0.064305013 -0.145124681  0.222387151  0.260615837
#> [136]  0.222387151  0.273194930  0.289624513  0.250567223  0.290316054
#> [141]  0.085135557  0.287514184  0.261064153 -0.271228541 -0.023083943
#> [146]  0.072432517 -0.205006219 -0.046003507 -0.126958072  0.408907919
#> [151] -0.032409640 -0.011238975  0.014289296  0.020358477  0.041020113
#> [156] -0.086214737 -0.058572942  0.085130896 -0.098647054  0.081545624
#> [161] -0.054571607  0.020975973  0.032284187  0.020975973  0.081545624
#> [166]  0.052023464 -0.002190829 -0.013361825 -0.042302052  0.115879833
#> [171] -0.118342807 -0.131820361 -0.013935643  0.240898860  0.115327692
#> [176]  0.257637143 -0.012743113 -0.128906228 -0.107620468  0.039622191
#> [181]  0.227161684 -0.174487527 -0.070071456 -0.153435176  0.210002364
#> [186] -0.047173610 -0.010399848 -0.077471769 -0.147330450 -0.081079436
#> [191] -0.101477375 -0.081079436 -0.046572305 -0.101477375 -0.101477375
#> [196]  0.051590350 -0.050704420  0.035096713 -0.101477375  0.213563182