API documentation¶
This section provides detailed API documentation for all public functions
and classes in seSemiProfiler.
Initial Setup¶
Initial setup of the semi-profiling pipeline, including processing the bulk data, clustering for finding the initial representatives. |
Get Representatives Single-cell (used in example)¶
|
Used for acquiring representatives’ single-cell data in the example. |
Single-cell Processing & Feature Augmentation¶
Process the reprsentatives’ single-cell data, including preprocessing and feature augmentations. |
Single-cell Inference¶
|
Computationally infer the single-cell data of a single non-representative target sample based on a representatives’ single-cell data and bulk data of both samples. |
|
Computationally infer the single-cell data of all non-representative samples (target samples) based on the cohort’s bulk data and the representatives’ single-cell data |
Representatives Selection¶
Use active learning to select the next batch of representatives |
Global Mode¶
|
To accommodate users who prefer all-in-one-batch profiling, we have developed hits new function. |
Checking if further representative selection is needed for the global mode. |
Utils - Downstream Analysis¶
Estimate the cost of semi-profiling and real-profiling. |
|
|
Visualize the performance of reconstruction by plotting the original and reconstructed data in the same UMAP. |
Visualize the inference performance by plotting the representative, inferred target, and target ground truth in the same UMAP. |
|
|
Visualize the training loss curves |
|
Assemble inferred sample data and representative sample data into semi-profiled cohort and annotate the celltype. |
Assemble previous round of inferred representative data and annotate the cell type. |
|
|
Compare the real-profiled and semi-profiled datasets by plotting them in a same UMAP |
Compare the real-profiled and semi-profiled datasets by plotting them in a same UMAP |
|
Compute the cell type proportion in a dataset |
|
Visualizing the cell type composition in each group. |
|
|
Generate heatmaps for visualizing gene set activation pattern in a dataset. |
Use dotplot to compare the cell type signatures found using the real-profiled dataset and the semi-profiled datset. |
|
|
Use RRHO graph to compare the positive and negative markers found using real-profiled and semi-profiled datasets. |
Compare the enrichment analysis results using the real-profiled and semi-profiled datasets. |
|
|
Conclude the semi-profiling history of a project and output the erros, upperbounds, and lower bounds, which are necessary for overall performance evaluation. |
|
Visualize the error and cost as more representatives are sequenced. |
Utils - Statistics¶
Combination number |
|
|
Returns the pmf of a hypergeometric test. |
|
Returns the p-value of a hypergeometric test. |
|
Compute distances from a vector to its K-nearest neighbros in a matrix. |