Skip to contents

Return the per-SNP LD score matrix carried by an LdScore object.

Usage

getLdScores(x)

# S4 method for class 'LdScore'
getLdScores(x)

Arguments

x

An LdScore.

Value

Numeric matrix (SNPs x annotations+1).

Examples

data(ldScoreExample)
getLdScores(ldScoreExample)
#>        base_l2
#>  [1,] 6.262407
#>  [2,] 2.024035
#>  [3,] 7.158383
#>  [4,] 9.932579
#>  [5,] 5.814942
#>  [6,] 9.699527
#>  [7,] 7.042848
#>  [8,] 3.651199
#>  [9,] 4.225267
#> [10,] 2.577833
#> [11,] 5.939356
#> [12,] 5.549065
#> [13,] 2.744528
#> [14,] 6.732137
#> [15,] 7.190201
#> [16,] 6.761717
#> [17,] 4.220968
#> [18,] 1.923265
#> [19,] 1.880118
#> [20,] 2.645976