View source: R/construct_pseudobulk.R
construct_pseudobulk | R Documentation |
This function takes in raw count gene expression matrix and cell-level metadata as inputs, and generates sample-level normalized pseudobulk gene expression matrix.
construct_pseudobulk(expr, cell_meta, filter_prop = 0.1)
expr |
A raw count gene expression matrix |
cell_meta |
A data frame for cell-level metadata, where each row is a cell. Must contain these columns: barcode, celltype and sample. |
filter_prop |
A number ranges from 0 to 1, to filter low expressed genes across samples (by default: 0.1). Genes with at least this proportion of samples with log2-normalized count greater than 0.01 are retained. |
A sample-level normalized pseudobulk gene expression matrix with genes in the row and samples in the columns
Boyang Zhang <bzhang34@jhu.edu>, Hongkai Ji
## Not run:
# default
construct_pseudobulk(expr,cell_meta)
# retain all genes
construct_pseudobulk(expr,cell_meta,filter_prop = 0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.