Skip to contents

Return the list of per-block LD (R^2) matrices used for the FGLS residual covariance in g-LDSC.

Usage

getLdMatrixList(x)

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

Arguments

x

An LdScore.

Value

List of matrices (empty list for S-LDSC).

Examples

data(ldScoreExample)
getLdMatrixList(ldScoreExample)
#> [[1]]
#> [[1]]$R
#>       [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
#>  [1,]  1.0  0.3  0.3  0.3  0.3  0.3  0.3  0.3  0.3   0.3
#>  [2,]  0.3  1.0  0.3  0.3  0.3  0.3  0.3  0.3  0.3   0.3
#>  [3,]  0.3  0.3  1.0  0.3  0.3  0.3  0.3  0.3  0.3   0.3
#>  [4,]  0.3  0.3  0.3  1.0  0.3  0.3  0.3  0.3  0.3   0.3
#>  [5,]  0.3  0.3  0.3  0.3  1.0  0.3  0.3  0.3  0.3   0.3
#>  [6,]  0.3  0.3  0.3  0.3  0.3  1.0  0.3  0.3  0.3   0.3
#>  [7,]  0.3  0.3  0.3  0.3  0.3  0.3  1.0  0.3  0.3   0.3
#>  [8,]  0.3  0.3  0.3  0.3  0.3  0.3  0.3  1.0  0.3   0.3
#>  [9,]  0.3  0.3  0.3  0.3  0.3  0.3  0.3  0.3  1.0   0.3
#> [10,]  0.3  0.3  0.3  0.3  0.3  0.3  0.3  0.3  0.3   1.0
#> 
#> [[1]]$snpIdx
#>  [1]  1  2  3  4  5  6  7  8  9 10
#> 
#> 
#> [[2]]
#> [[2]]$R
#>       [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
#>  [1,]  1.0  0.3  0.3  0.3  0.3  0.3  0.3  0.3  0.3   0.3
#>  [2,]  0.3  1.0  0.3  0.3  0.3  0.3  0.3  0.3  0.3   0.3
#>  [3,]  0.3  0.3  1.0  0.3  0.3  0.3  0.3  0.3  0.3   0.3
#>  [4,]  0.3  0.3  0.3  1.0  0.3  0.3  0.3  0.3  0.3   0.3
#>  [5,]  0.3  0.3  0.3  0.3  1.0  0.3  0.3  0.3  0.3   0.3
#>  [6,]  0.3  0.3  0.3  0.3  0.3  1.0  0.3  0.3  0.3   0.3
#>  [7,]  0.3  0.3  0.3  0.3  0.3  0.3  1.0  0.3  0.3   0.3
#>  [8,]  0.3  0.3  0.3  0.3  0.3  0.3  0.3  1.0  0.3   0.3
#>  [9,]  0.3  0.3  0.3  0.3  0.3  0.3  0.3  0.3  1.0   0.3
#> [10,]  0.3  0.3  0.3  0.3  0.3  0.3  0.3  0.3  0.3   1.0
#> 
#> [[2]]$snpIdx
#>  [1] 11 12 13 14 15 16 17 18 19 20
#> 
#>