processByChunks {cTRAP} | R Documentation |
Columns will be processed per chunk if argument data
is a
perturbationChanges
object containing a file path instead of a data
matrix. Otherwise, the data will be processed as a single chunk.
processByChunks(data, FUN, ..., chunkSize = 10000)
data |
Data matrix or |
FUN |
Function: function to run for each chunk |
... |
Arguments passed to |
chunkSize |
Integer: number of columns to load on-demand (a higher value increases RAM usage, but decreases running time) |
For instance, loading a chunk of 10000 CMap pertubations requires ~1GB of RAM compared to loading the whole dataset.
Results of running FUN