samplePseudoBulk-DsATACsc-method: samplePseudoBulk-methods

samplePseudoBulk,DsATACsc-methodR Documentation

samplePseudoBulk-methods

Description

Samples pseudo-bulk samples from single-cells

Usage

## S4 method for signature '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

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

Value

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

Author(s)

Fabian Mueller


GreenleafLab/ChrAccR documentation built on March 22, 2023, 11:42 p.m.