downsample: Create tile labels for each observation
Description
A wrapper for function downSampleEachBatch. Batches are automatically merged as needed.
Usage
downsample(batch.file, plate, y, ntiles = 250, THR = 0.1)
Arguments
batch.file
the name of a file contaning RDS data to be read in.
plate
a vector containing the labels from which batch each observation came from.
ntiles
number of tiles in a batch
THR
threshold above which to merge batches in Kolmogorov-Smirnov test.
Value
Tile labels for each observation