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