API
Import the spapros API as follows:
import spapros as sp
Selection
Main Class
|
General class for probeset selection. |
Other Functions
|
Select reference probesets with basic selection methods. |
|
Select n features based on pca loadings. |
|
Select genes based on wilxocon rank genes test. |
Evaluation
Main Class
|
General class for probe set evaluation, comparison, plotting. |
Other Functions
Get the default metric parameters. |
|
|
Train best trees including secondary trees. |
|
Compute or load decision tree classification results. |
Utility functions
Expression Constraints
|
Compute each genes q'th quantile on normalised (and log1p) data. |
|
Transfer expression thresholds between different normalisations. |
|
Return penalty function. |
Spatial Data Analysis
Plotting
The sp.pl functions are used directly only in rare cases, instead always try to use the wrapper methods from the ProbesetEvaluator and ProbesetSelector (see 2nd table below).
|
Create dotplot with additional annotation masks. |
|
Plot umaps of genes needed for cell type classification of each cell type. |
|
Plot histogram of quantiles for selected genes for different penalty kernels. |
|
Plot overlap of gene sets |
|
Plot heatmap of gene correlation matrix. |
|
Plot table of summary statistics |
|
Plot cluster similarity as NMI over number of clusters |
|
Plot mean knn overlap over k |
|
Plot heatmap of cell type classification confusion matrices. |
|
Plot maximal correlations with marker genes |
pl module |
||
---|---|---|
see pl.masked_dotplot for now |
||
potentially added soon |
||