sccross.utils¶
Miscellaneous utilities
Functions
Check whether an array contains all counts |
|
Column-wise Pearson’s correlation coefficient (sparse friendly) |
|
Column-wise Spearman’s rank correlation |
|
Column-wise variance (sparse friendly) |
|
Covariance matrix (sparse friendly) |
|
Convert a matrix to dense regardless of original type. |
|
Get attribute from an object, with support for chained attribute names. |
|
Get random state object |
|
Determine whether running in an ipynb environment. |
|
Add logger as an attribute |
|
Pearson’s correlation coefficient (sparse friendly) |
|
Combined multiple probabilities in a logical OR manner. |
|
Product of elements |
|
Run an external command and get realtime output |
|
The sigmoid function in numpy |
|
Use |
|
Spearman’s rank correlation |
|
TF-IDF normalization (following the Seurat v3 approach) |
Classes
Global configurations |
|
Data frame with certain format constraints |
|
Shield a code block from keyboard interruptions, delaying handling till the block is finished (adapted from https://stackoverflow.com/a/21919644). |
|
Manage loggers used in the package |
|
Ensure singletons via a meta class |