getblocks: Get index blocks, with remainder handling

Description Usage Arguments Value

View source: R/utilities.R

Description

Get index blocks, with remainder handling. This is used by scripts that process large data objects processively, in chunks/blocks of sample indices. Note the default block size of 50 is recommended for processes using entire array's worth of data (e.g. from an RGChannel set, getRed, getGreen, getMeth, getUnmeth, etc.), as test showed diminished performance with greater or lesser samples on typical compute systems.

Usage

1
getblocks(slength, bsize = 50)

Arguments

slength

Length of the index vector (integer)

bsize

The maximum block size (integer, default = 50).

Value

List of index blocks.


metamaden/recountmethylationManuscriptSupplement documentation built on May 31, 2021, 5:27 a.m.