Samples pseudo-bulk samples from single-cells

# S4 method for DsATACsc
samplePseudoBulk(.object, nnData, nSamples, nCellsPerSample = 100)

Arguments

.object

DsATACsc object

nnData

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.

nSamples

number of pseudobulk samples to be returned

nCellsPerSample

number of cells to be aggregated per sample

Value

S3 data structure containing a list of sampling results as well as a DsATAC object containing pseudo-bulk aggregates

Details

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).

Author

Fabian Mueller