View source: R/pseudobulk_helpers.r
PseudobulkList | R Documentation |
PseudobulkList - make a pseudobuk summed or average dataset for each samplexcelltype
PseudobulkList(
rawcounts,
metadata,
sample_col,
celltype_col,
avg_or_sum = "sum"
)
rawcounts |
the raw count UMI data for assay to sum or average for each celtype and sample. |
metadata |
dataframe of meta data for cells-rows variables-columns i.e. ColData or seuratmeta.data |
sample_col |
quoted character e.g. "sample" the subject level sample variable - if multiple timepoints helps to code as subjectID_timepoint i.e. s1_0, s1_1 |
celltype_col |
quoted character e.g. "celltype" - the celltypes / clusters for which to create bulk libraries |
avg_or_sum |
whether to compute default 'sum' or 'average' library for each sample within each celltype (recommend sum) |
a R list of standard R matrices indexed by celltype
## Not run:
pb = scglmmr::PseudobulkList(rawcounts = umi, metadata = meta, sample_col = "sample",
celltype_col = "lineage", avg_or_sum = "sum")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.