Merge cells into pseudobulk samples based on annotation

# S4 method for DsATACsc
mergePseudoBulk(.object, mergeGroups, cleanSampleAnnot = TRUE)

Arguments

.object

DsATACsc object

mergeGroups

factor or character vector or column name in sample annotation table. Can alternatively be a (named) list containing sample indices or names for each group to merge.

cleanSampleAnnot

clean up sample annotation table in the new object

Value

a new DsATAC object with cells merged into pseudobulk samples

Author

Fabian Mueller