Manipulation#
Sets a column as the new first column of obs, i.e. the obs_names. |
|
Sets a column as the new first column of var, i.e. the var_names. |
|
Return a new Pseudobulk dataset with a different default number of threads. |
|
Equivalent to |
|
Equivalent to |
|
Equivalent to |
|
Equivalent to |
|
Create a new Pseudobulk dataset subset to the cell type(s) in cell_types and more_cell_types. |
|
Equivalent to |
|
Equivalent to |
|
Create a new Pseudobulk dataset with columns and more_columns removed from obs. |
|
Create a new Pseudobulk dataset with columns and more_columns removed from var. |
|
Create a new Pseudobulk dataset with cell_types and more_cell_types removed. |
|
Create a new Pseudobulk dataset with column(s) of obs renamed for each cell type. |
|
Create a new Pseudobulk dataset with column(s) of var renamed for each cell type. |
|
Create a new Pseudobulk dataset with cell type(s) renamed. |
|
Cast each cell type's X to the specified data type. |
|
Cast column(s) of each cell type's obs to the specified data type(s). |
|
Cast column(s) of each cell type's var to the specified data type(s). |
|
Left-join each cell type's obs with another DataFrame, using the same logic as |
|
Left-join each cell type's var with another DataFrame, using the same logic as |
|
Subsample a specific number or fraction of samples. |
|
Subsample a specific number or fraction of genes. |
|
Split this Pseudobulk dataset into a tuple of Pseudobulk datasets with one cell type each. |
|
Concatenate one or more other Pseudobulk datasets with this one, sample-wise. |
|
Concatenate one or more other Pseudobulk datasets with this one, gene-wise. |
|
Make a copy of this Pseudobulk dataset. |
|
Convert this Pseudobulk object to a polars DataFrame, with one row per (sample, cell type) pair and one column per gene. |
|
Apply a function to each cell type's X. |
|
Apply a function to each cell type's obs. |
|
Apply a function to each cell type's var. |
|
Apply a function to a Pseudobulk dataset. |
|
Apply a function to a Pseudobulk dataset's X. |
|
Apply a function to a Pseudobulk dataset's obs. |
|
Apply a function to a Pseudobulk dataset's var. |