You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We typically run OncoProfilingTools on VCU's high-performance research cluster which has immense memory and CPU capabailities. Therefore, we have been able to run and load datasets without an issue.
We have noticed that when we load the DepMap Expression matrix (OmicsExpressionTranscriptTPMLogp1HumanAllGenes.csv) on a local machine (i.e. Jason's macbook) then we run into memory issues, even with 32 GB of available memory.
The file is approx. 2.9GB and should fit well into memory. In this case, we need to just optimize the loading and make it more efficient. We expect users to be able to use this library on their local machines without access to a research cluster.
Steps to Reproduce
library(OncoProfilingTools)
exp<- OncoExperiment()
exp<- load_assays(exp, AssayTypes$Expression, path="/folder) # you will need the file in a folder on your machine
Tips to Solve
Each assay type has a different loader function that is dynamically acquired based on the filename.
We are using the following library to load it in a data format easy to work with:
Decide whether this library is good or not. If you stick with it, optimize it. Define what the data types of columns are. Ensure few or no copies of the entire matrix are made during loading. Do we need a whole different approach such as chunking? Imagine a user only has 8GB of memory. I think it is reasonable to expect >=16GB.
Check use of the S4Vectors and ensure they're not duplicating large columns either.
In the very end, we still need to return the same class and be able to create a SummarizedExperiment
Loading Issue Causes Memory Overflow
Problem
We typically run
OncoProfilingToolson VCU's high-performance research cluster which has immense memory and CPU capabailities. Therefore, we have been able to run and load datasets without an issue.We have noticed that when we load the DepMap Expression matrix (OmicsExpressionTranscriptTPMLogp1HumanAllGenes.csv) on a local machine (i.e. Jason's macbook) then we run into memory issues, even with 32 GB of available memory.
The file is approx. 2.9GB and should fit well into memory. In this case, we need to just optimize the loading and make it more efficient. We expect users to be able to use this library on their local machines without access to a research cluster.
Steps to Reproduce
Tips to Solve
Each assay type has a different loader function that is dynamically acquired based on the filename.
We are using the following library to load it in a data format easy to work with:
OncoProfilingTools/R/method-load-expression-assay.R
Line 5 in 49f8d42
S4Vectorsand ensure they're not duplicating large columns either.SummarizedExperimentOncoProfilingTools/R/method-load-expression-assay.R
Lines 399 to 431 in 49f8d42