Cholmod error when using decontX package
0
0
Entering edit mode
3.2 years ago
abiuma ▴ 30

Hi, I am trying remove the ambient RNA from my sequencing data. But I keep running into this error. Can you please tell me how to clear this error.

Error in asMethod(object) : 
  Cholmod error 'out of memory' at file ../Core/cholmod_memory.c, line 147

This is my code

decontxModel <- decontX(counts = as.matrix(GetAssayData(control, assay="RNA", slot="counts")), 
                        z = as.integer(control$RNA_snn_res.0.5),
                        batch = as.integer(control$orig.ident))

> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 19042)

Matrix products: default
R RNA-Seq sequencing • 2.4k views
ADD COMMENT
0
Entering edit mode

'out of memory'

Looks like you are running out of memory.

ADD REPLY
0
Entering edit mode

Have you read the error message, in particular the part that says ''out of memory'? So compare the size of the data to the amount of RAM available.

ADD REPLY
0
Entering edit mode

Is there any way to overcome the memory issue without having to upgrade the RAM!

ADD REPLY
0
Entering edit mode

Work on a smaller data set or maybe use a less memory-hungry approach/tool. You also don't need to upgrade the RAM of your machine if you can get access to one with what you need, e.g. in your local HPC or in the cloud.

ADD REPLY
0
Entering edit mode

Thanks! I tried to run the script in the local server, but I got the same error.

ADD REPLY
0
Entering edit mode

Are you running this via cygwin on windows? Perhaps the default memory allocated to that environment is small and you could look at increasing that?

ADD REPLY
0
Entering edit mode

I am running this in R studio. Do you mean by using memory.limit() command?

ADD REPLY

Login before adding your answer.

Traffic: 1929 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