to_pseudobulk | R Documentation |
Convert a single-cell expression matrix (i.e., genes by cells) to a pseudobulk matrix by summarizing counts within biological replicates. This function is
to_pseudobulk(
input,
meta = NULL,
replicate_col = "replicate",
cell_type_col = "cell_type",
label_col = "label",
min_cells = 3,
min_reps = 2,
min_features = 0,
external = T
)
input |
a single-cell matrix to be converted, with features (genes) in rows
and cells in columns. Alternatively, a |
meta |
the accompanying meta data whereby the rownames match the column
names of |
replicate_col |
the vector in |
cell_type_col |
the vector in |
label_col |
the vector in |
min_cells |
the minimum number of cells in a cell type to retain it.
Defaults to |
min_reps |
the minimum number of replicates in a cell type to retain it.
Defaults to |
min_features |
the minimum number of expressing cells (or replicates)
for a gene to retain it. Defaults to |
a list of pseudobulk matrices, for each cell type.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.