The complete FlowSOM package known from R, now available in Python
Please refer to the documentation. In particular, the
You need to have Python 3.9 or newer installed on your system. If you don't have Python installed, we recommend installing Mambaforge.
There are several alternative options to install FlowSOM:
- Install the latest development version:
pip install git+https://github.com/saeyslab/FlowSOM_Python
Starting from an FCS file that is properly transformed, compensated and checked for quality, the following code can be used to run the FlowSOM algorithm:
# Import the FlowSOM package
import flowsom as fs
# Load the FCS file
ff = fs.io.read_FCS("./tests/data/ff.fcs")
# Run the FlowSOM algorithm
fsom = fs.FlowSOM(
ff, cols_to_use=[8, 11, 13, 14, 15, 16, 17], xdim=10, ydim=10, n_clus=10
)
# Plot the FlowSOM results
p = fs.pl.plot_stars(fsom, background_values=fsom.get_cluster_data().obs.metaclustering)
p.show()
See the changelog.
For questions and help requests or if you found a bug, please use the issue tracker.
If you use FlowSOM
in your work, please cite the following paper:
Sofie Van Gassen, Britt Callebaut, Mary J. Van Helden, Bart N. Lambrecht, Piet Demeester, Tom Dhaene and Yvan Saeys. FlowSOM: Using self-organizing maps for visualization and interpretation of cytometry data. Cytometry A 2015, volume 87.7 (p. 636-645)
DOI: 10.1002/cyto.a.22625