API#
Import FlowSOM using the alias fs for convenience. Functions and classes can then be accessed as fs.FlowSOM or fs.io.read_FCS:
import flowsom as fs
The functionality is organised in subpackages:
iofor reading and writing FCS filesppfor preprocessingmodelsfor modelstlfor toolsplfor plotting
The central class is FlowSOM, which can be used to read in data and directly perform the FlowSOM algorithm [VGCVH+15]. There is also a convenience function flowsom_clustering which performs the same steps but directly on an existing AnnData object. For more low-level control, the FlowSOMEstimator class with a scikit-learn Estimator API can be used.
For more background information, see the paper for this software package [CRSVG24] and the Nature Protocols paper [QCE+21] on applying FlowSOM in practice.
|
A class that contains all the FlowSOM data using MuData objects. |
|
Perform FlowSOM clustering on an anndata object and returns the anndata object. |
Reading#
|
Reads in an FCS file. |
|
Reads in a CSV file. |
Preprocessing#
|
Aggregate multiple FCS files together. |
Models#
|
A class that implements the FlowSOM model. |
|
A class that implements the FlowSOM model. |
|
Estimate a Self-Organizing Map (SOM) clustering model. |
|
Implementation of Consensus clustering. |
Base class for all cluster estimators in FlowSOM. |
|
|
Base class for all FlowSOM estimators in FlowSOM. |
|
|
|
Tools#
|
Gets the channels of the provided markers based on a FlowSOM object or an FCS file. |
|
Get percentage-positive values for all clusters. |
|
Get counts of number of cells in clusters or metaclusters. |
|
Map FCS files on an existing FlowSOM object. |
|
Gets the markers of the provided channels based on a FlowSOM object or an FCS file. |
Get percentage-positive values for all metaclusters. |
|
|
Get percentages of number of cells in clusters or metaclusters. |
Plotting#
|
Makes a visual FlowSOMmary of a FlowSOM object. |
|
Function to draw 2D scatter plots of FlowSOM (meta)clusters. |
|
Plot labels for each cluster. |
|
Plot cluster ids for each cluster. |
|
Plot FlowSOM grid or tree, colored by node values given in variable. |
|
Plot FlowSOM grid or tree, colored by node values for a specific marker. |
|
Plot star charts. |
|
Plot FlowSOM grid or tree, with pies indicating another clustering or manual gating result. |