R/bulk_downsampling_range.r
bulk_downsampling_range.Rd
Obtain the range of values to downsample at (either for individuals, or mean number of cells per individual), for bulk analysis
bulk_downsampling_range(
SCEs,
celltype_correspondence,
sampled = "individuals",
sampleIDs = "donor_id",
celltypeIDs = "cell_type"
)
A list of SingleCellExperiment (SCE) objects, each representing a scRNA-seq dataset.
A named vector that maps a standard cell type label (e.g., "Endo"
, "Micro"
) to how that cell type appears in each dataset. Use NA
if the cell type is not present in a given dataset.
Specifies the unit of down-sampling. Can be either "individuals"
or "cells"
, depending on whether the analysis downsamples across samples or cells.
A character vector specifying the column name in each SCE that represents sample or donor IDs (in order of SCEs).
A character vector specifying the column name in each SCE that denotes cell type identity (in order of SCEs).
list containing values which the data will be downsampled at, in ascending order