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 SingleCell dataset with a different default number of threads. |
|
Make obs_names unique by appending '-1' to the second occurence of a given name, '-2' to the third occurrence, and so on, where '-' can be switched to a different string via the separator argument. |
|
Make var_names unique by appending '-1' to the second occurence of a given name, '-2' to the third occurrence, and so on, where '-' can be switched to a different string via the separator argument. |
|
Equivalent to df.filter() from polars, but applied to both obs/obsm and X. |
|
Equivalent to df.filter() from polars, but applied to both var/varm and X. |
|
Equivalent to df.select() from polars, but applied to obs. |
|
Equivalent to df.select() from polars, but applied to var. |
|
Subsets obsm to the specified key(s). |
|
Subsets varm to the specified key(s). |
|
Subsets obsp to the specified key(s). |
|
Subsets varp to the specified key(s). |
|
Subsets uns to the specified key(s). |
|
Equivalent to df.with_columns() from polars, but applied to obs. |
|
Equivalent to df.with_columns() from polars, but applied to var. |
|
Adds one or more keys to obsm, overwriting existing keys with the same names if present. |
|
Adds one or more keys to varm, overwriting existing keys with the same names if present. |
|
Adds one or more keys to obsp, overwriting existing keys with the same names if present. |
|
Adds one or more keys to varp, overwriting existing keys with the same names if present. |
|
Adds one or more keys to uns, overwriting existing keys with the same names if present. |
|
Create a new SingleCell dataset with X removed, to reduce memory use. |
|
Create a new SingleCell dataset with columns and more_columns removed from obs. |
|
Create a new SingleCell dataset with columns and more_columns removed from var. |
|
Create a new SingleCell dataset with keys and more_keys removed from obsm. |
|
Create a new SingleCell dataset with keys and more_keys removed from varm. |
|
Create a new SingleCell dataset with keys and more_keys removed from obsp. |
|
Create a new SingleCell dataset with keys and more_keys removed from varp. |
|
Create a new SingleCell dataset with keys and more_keys removed from uns. |
|
Create a new SingleCell dataset with column(s) of obs renamed. |
|
Create a new SingleCell dataset with column(s) of var renamed. |
|
Create a new SingleCell dataset with key(s) of obsm renamed. |
|
Create a new SingleCell dataset with key(s) of varm renamed. |
|
Create a new SingleCell dataset with key(s) of obsp renamed. |
|
Create a new SingleCell dataset with key(s) of varp renamed. |
|
Create a new SingleCell dataset with key(s) of uns renamed. |
|
Cast X to the specified data type. |
|
Cast column(s) of obs to the specified data type(s). |
|
Cast column(s) of var to the specified data type(s). |
|
Left-join obs with another DataFrame, using the same logic as polars.DataFrame.join(). |
|
Left-join var with another DataFrame, using the same logic as polars.DataFrame.join(). |
|
Subsample a specific number or fraction of cells. |
|
Subsample a specific number or fraction of genes. |
|
Make a copy of this SingleCell dataset, converting X to a csr_array. |
|
Make a copy of this SingleCell dataset, converting X to a csc_array. |