samplePseudoBulk-DsATACsc-method.RdSamples pseudo-bulk samples from single-cells
# S4 method for DsATACsc
samplePseudoBulk(.object, nnData, nSamples, nCellsPerSample = 100)DsATACsc object
Data to use for nearest neighbor matching. Can either be the
name of a region type in .object or a data matrix with
the same number of rows as .object has cells.
number of pseudobulk samples to be returned
number of cells to be aggregated per sample
S3 data structure containing a list of sampling results as well as
a DsATAC object containing pseudo-bulk aggregates
Samples pseudo-bulk samples from single-cells by sampling nSamples individual cells
and then merging it with its nCellsPerSample - 1 nearest neighbors (according to nnData).