Error: cannot allocate vector of size 22.3 Gb
0
0
Entering edit mode
4 months ago

Hello! I am new to R and trying to do WGCNA, all the codes run until i get to "dissTOM = 1-TOMsimilarityFromExpr(datExpr0, power = 6)" this part. Once that is run I get following error "Error: cannot allocate vector of size 22.3 Gb".

I tried allocating memory to the programm, changing its limits, and also run the whole script in external SSD but still the error remains. Can someone please help me if they have faced the same issue? I don't know what to do more.

wgcna memory error R • 559 views
ADD COMMENT
0
Entering edit mode

It's referring to RAM. Does your machine have ~ 23GB of RAM? If not, you'll keep encountering this error. Do you have lots of objects loaded into memory? Do you have lots of programs running in the background? Try and free up as much RAM as you can. I doubt any of this will help if R is trying to allocate a vector that big.

ADD REPLY
0
Entering edit mode

If you do not have access to a more powerful machine, try to reduce the number of transcripts in your datExpr0 (e.g. remove low expressed transcripts or keep transcripts expressed in at least > 80% of your samples)

ADD REPLY
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 2585 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6