gene#
- Pseudobulk.gene(cell_type, gene, /)[source]#
Get the column of X[cell_type] corresponding to a single gene, based on the gene’s name in var_names.
- Parameters:
cell_type: str
the cell type to retrieve the row of X from
gene: str
the name of the gene in var_names
- Returns:
The corresponding column of X[cell_type], as a dense 1D NumPy array with zeros included.
- Return type:
ndarray