buddi.preprocessing.utils#
Module Attributes
|
scRNA seq data processing utilities |
Functions
|
Helper function to apply noise to a gene expression vector. |
|
Helper function that generates a count matrix based on a proportion matrix and the total number of cells. |
|
Generates a count vector by sampling from a log-normal distribution. |
|
Helper function that generates a proportion matrix based on a count matrix. |
|
Helper function that generates a proportion matrix where each sample's cell-type proportions correlated to a given base proportion vector. |
|
Helper function to generate a proportion matrix where each row represents a sample in which one cell type dominates while other cell types have a small background presence. |
|
Helper function that generates a count vector based on the true cell type proportions in an AnnData object. |
|
Helper function to generate the pseudobulk gene expression for a given cell type, given the cell type specific subset of the AnnData object and the number of cells to sample. |
|
Helper function that calculates the true proportion of cell types in the given AnnData object. |
|
Constructs a dictionary mapping each cell type to a subset of the AnnData object containing only cells of that type. |
Classes
|
An annotated data matrix. |