Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MemoryError: When running LDSCORE analysis #426

Open
chirrie opened this issue Mar 21, 2024 · 4 comments
Open

MemoryError: When running LDSCORE analysis #426

chirrie opened this issue Mar 21, 2024 · 4 comments

Comments

@chirrie
Copy link

chirrie commented Mar 21, 2024

I am getting memory error when generating LDscores;

./ldsc.py --bfile "/dataE/AWIGenGWAS/shared/imputed_data_plink/all_imputed_map_qc" --chunk-size 500000 --l2 --ld-wind-cm 1 --out Awi-gen-LDscores

Reading genotypes from /dataE/AWIGenGWAS/shared/imputed_data_plink/all_imputed
After filtering, 13976041 SNPs remain
Estimating LD Score.
Traceback (most recent call last):
File "./ldsc.py", line 620, in
ldscore(args, log)
File "./ldsc.py", line 316, in ldscore
lN = geno_array.ldScoreVarBlocks(block_left, args.chunk_size, annot=annot_$
File "/home/chebii/Awi-gen/FG_raw/boltlmm/ldsc/ldscore/ldscore.py", line 125$
return self.corSumVarBlocks(block_left, c, func, snp_getter, annot)
File "/home/chebii/Awi-gen/FG_raw/boltlmm/ldsc/ldscore/ldscore.py", line 189$
A = snp_getter(b)
File "/home/chebii/Awi-gen/FG_raw/boltlmm/ldsc/ldscore/ldscore.py", line 397$
X = np.array(slice.decode(self._bedcode), dtype="float64").reshape((b, nru$
MemoryError

Analysis finished at Thu Mar 21 09:06:42 2024

@aikedan
Copy link

aikedan commented Apr 8, 2024

hello. how do you handle this problem in your research ? ? since I have this issue now. looking forward your reply.

@aksarkar
Copy link

aksarkar commented May 5, 2024

@chirrie @aikedan Run ldsc on a machine with more memory available.

@chirrie
Copy link
Author

chirrie commented May 5, 2024 via email

@aksarkar
Copy link

aksarkar commented May 6, 2024

@chirrie Confirm with your HPC administrator that you are correctly requesting and receiving the requested amount of memory.

Also note that you should not change --chunk-size from the default value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants