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 df.filter() from polars, but applied to both obs and X for each cell type. |
|
Equivalent to df.filter() from polars, but applied to both var and X for each cell type. |
|
Equivalent to df.select() from polars, but applied to each cell type's obs. |
|
Equivalent to df.select() from polars, but applied to each cell type's var. |
|
Create a new Pseudobulk dataset subset to the cell type(s) in cell_types and more_cell_types. |
|
Equivalent to df.with_columns() from polars, but applied to each cell type's obs. |
|
Equivalent to df.with_columns() from polars, but applied to each cell type's var. |
|
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 polars.DataFrame.join(). |
|
Left-join each cell type's obs with another DataFrame, using the same logic as polars.DataFrame.join(). |
|
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. |