I tried "check_dataset(..)" and "runsusie(..)" and got responses as follows:
>check_dataset(ds1,req="LD")
NULL
Warning messages:
1: In if (!(d$type %in% c("quant", "cc"))) stop("dataset ", suffix, :
the condition has length > 1 and only the first element will be used
2: In if (!(d$type %in% c("quant", "cc"))) stop("dataset ", suffix, :
the condition has length > 1 and only the first element will be used
> s1 = runsusie(ds1)
running max iterations: 100
WARNING: XtX is not symmetric; forcing XtX to be symmetric by replacing XtX with (XtX + t(XtX))/2
Error in init_finalize(s) :
Input residual variance sigma2 must be a scalar
In addition: Warning messages:
1: In if (!(d$type %in% c("quant", "cc"))) stop("dataset ", suffix, :
the condition has length > 1 and only the first element will be used
2: In if (!(d$type %in% c("quant", "cc"))) stop("dataset ", suffix, :
the condition has length > 1 and only the first element will be used
3: In if (n <= 1) stop("n must be greater than 1") :
the condition has length > 1 and only the first element will be used
4: In if (n <= 1) stop("n must be greater than 1") :
the condition has length > 1 and only the first element will be used
> mat1[0:5,0:5]
rs112826008 rs10159087 rs4655836 rs189496881 rs598961
rs112826008 1.00000000 0 -0.00399602 -0.00801603 -0.1265500
rs10159087 0.00000000 1 0.00000000 0.00000000 0.0000000
rs4655836 -0.00399602 0 1.00000000 -0.00399602 -0.0630858
rs189496881 -0.00801603 0 -0.00399602 1.00000000 -0.0621224
rs598961 -0.12655000 0 -0.06308580 -0.06212240 1.0000000
> s1
Error: object 's1' not found
As I checked by "identical(matrix, t(matrix))", the two matrices are symmetric.
BTW, "ds1" and "ds2" can be used to do "coloc.abf(..)" just fine.
I need to do susie coloc but I am not sure what's wrong.
I used plink to generate the pairwise LD, converted it into a tab delimited file as follows:
Then read the above file into a matrix ("mat1" or "mat2" below)
I tried "check_dataset(..)" and "runsusie(..)" and got responses as follows:
As I checked by "identical(matrix, t(matrix))", the two matrices are symmetric.
BTW, "ds1" and "ds2" can be used to do "coloc.abf(..)" just fine.
I need to do susie coloc but I am not sure what's wrong.
Thanks for any advice!