You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to the LDperd2. It is a bit comfusing, following to match the target genetic data with the SumStat data, do I need to compute my LD matrices using the following code:
tmp<- tempfile(tmpdir="file.size(corr$sbk) / 1024^3 ")
for (chrin1:22) {
# print(chr)## indices in 'df_beta'ind.chr<- which(df_beta$chr==chr)
## indices in 'G'ind.chr2<-df_beta$`_NUM_ID_`[ind.chr]
corr0<- snp_cor(G, ind.col=ind.chr2, size=3/1000,
infos.pos=POS2[ind.chr2], ncores=NCORES)
if (chr==1) {
ld<-Matrix::colSums(corr0^2)
corr<- as_SFBM(corr0, tmp, compact=TRUE)
} else {
ld<- c(ld, Matrix::colSums(corr0^2))
corr$add_columns(corr0, nrow(corr))
}
}
I tried to run the above code for chr 22, but the system crashed.
If I want to use the pre-computed LD matrices, at what step can I use and what is the code?
Thank you,
The text was updated successfully, but these errors were encountered:
Hi Privé,
I am new to the LDperd2. It is a bit comfusing, following to match the target genetic data with the SumStat data, do I need to compute my LD matrices using the following code:
I tried to run the above code for chr 22, but the system crashed.
If I want to use the pre-computed LD matrices, at what step can I use and what is the code?
Thank you,
The text was updated successfully, but these errors were encountered: