Closed Mahantesh-Biradar closed 1 year ago
It's almost as if there is no data in corr0
.
What is the size of these sparse matrices?
dim(corr0) NULL
I'm not sure why this is happening?
Check ind.chr and ind.chr2 I guess
dim(ind.chr) NULL dim(ind.chr2) NULL
It's normal since these are vectors. Look at the length.
length(ind.chr) [1] 0 length(ind.chr2) [1] 0
Yes, that's definitely the issue. You should check your code.
Can you please suggest, which step in the code be causing this issue?
You need to check why you get no index when running ind.chr <- which(info_snp$chr == chr)
.
I tend to have issues like this when the software version is updated. Can you please tell me how I can switch back to 1.12.1 from 1.12.2?
Let me also try your suggestion.
Hi Florian,
The info and info_snp looks as follows:
info: chr pos a0 a1 rsid af_UKBB ld block_id pos_hg18 pos_hg38
You should check your code by yourself, I can't help you more with this. This is not an issue on my part. E.g. do you know for which chromosome the problem occurs? Why? Do you have an issue with how chromosomes are labelled? How many variants are matched?
Thanks. In my summary stats I had about 12K variants and around 11K are matched. I'm not sure which chromosome is causing the issue.
table(info_snp$chr)
Sumstats with only 12K variants is odd.
Thanks for your help again. I agree, I have filtered my summary stats file to include only a selected SNPs.
table(info_snp$chr)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 1122 987 1492 343 639 364 358 628 238 356 574 406 125 700 190 576 781 59 562 179 430
You don't have anything from chr 21..
Thanks Florian. I think that address the issue. Going to close this now!
I'm getting the following error, when I tried to run the calculate LD step.
My code:
Error:
Can you please suggest how I can address this error? TIA