Convert sc-matrix to simulated bulk samples matrix

as_bulk_samples(
  m,
  samples = split_by_sample_names(colnames(m)),
  isLog = TRUE,
  by = "median"
)

Arguments

m

non-row-centered logTPM or TPM matrix.

samples

a list of cell IDs per sample. Default: split_by_sample_names(colnames(m))

isLog

set to FALSE if 'm' is in TPM form. Default: TRUE

Value

simulated bulk matrix,with as many columns as there are samples in the <samples> list.