R Studio memory on Mac
0
0
Entering edit mode
4.9 years ago
evelyn ▴ 230

I am trying to import three really big files (each file size >100GB) to R Studio but it complains of memory. I am using this version:

platform       x86_64-apple-darwin15.6.0   
arch           x86_64                      
os             darwin15.6.0                
system         x86_64, darwin15.6.0        
status                                     
major          3                           
minor          6.0                         
year           2019                        
month          04                          
day            26                          
svn rev        76424                       
language       R                           
version.string R version 3.6.0 (2019-04-26)

I tried increasing the memory limit by using (.Renviron) on terminal but it gives the same error.

R • 1.8k views
ADD COMMENT
0
Entering edit mode

How much actual memory does your mac have? There is no substitute for not having enough RAM unfortunately.

ADD REPLY
0
Entering edit mode

My Mac has 16 GB memory.

ADD REPLY
0
Entering edit mode

I don't think this is going to work as is.

Edit: @zx5784's solution of using virtual memory on disk may work. With such large data set you may need to have patience in equally large amounts.

ADD REPLY
0
Entering edit mode

What kind of data is this? Alternatives:

  • HPC with tonnes of memory
  • Load data in chunks, do stuff, save results, load another chunk etc.
  • Use packages that uses hard drive as memory and "pretend" to have it as full object in R, e.g.: "bigmemory" package.

See CRAN TaskView for HPC: Large memory and out-of-memory data

ADD REPLY
0
Entering edit mode

These are vcf files.

ADD REPLY
0
Entering edit mode

Do you need all the data at once, maybe slim it down first: filter on Samples, on Variants, or split on Chromosomes, etc. See bcftools for manipulating VCFs.

ADD REPLY
0
Entering edit mode

What operation are you trying to do with them? Perhaps there are command line alternatives that can be used instead of R. Are these files compressed or not?

ADD REPLY
0
Entering edit mode

I am trying to use them for Upset R plot and these are not compressed.

ADD REPLY
1
Entering edit mode

Is it to show overlapping Variants or Samples? Again you can get that info using bcftools, then file will be manageable for R.

ADD REPLY

Login before adding your answer.

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