Skip to main content

FlowSOM

PyPI version Conda version Documentation Tests codecov DOI

The complete FlowSOM package known from R and Bioconductor, now available in Python with scverse integration!

FlowSOM is a clustering and visualization algorithm originally based on a self-organizing map (SOM). FlowSOM is used to distinguish cell populations from cytometry data in an unsupervised way and can help to gain deeper insights in fields such as immunology and oncology.

Getting started

Please refer to the documentation. In particular, the following resources are available:

Installation

You need to have Python 3.9 or newer installed on your system. There are several options to install FlowSOM:

Recommended installation: install the latest release of FlowSOM from PyPI:

pip install flowsom

Alternative 1: install the development version from the GitHub repository:

pip install git+https://github.com/saeyslab/FlowSOM_Python

Alternative 2: install the FlowSOM Conda package via the Conda package manager:

conda install -c conda-forge flowsom

Usage

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_clusters=10, seed=42
)

# Plot the FlowSOM results
p = fs.pl.plot_stars(fsom, background_values=fsom.get_cluster_data().obs.metaclustering)
p.show()

Release notes

See the changelog.

Contact

For questions and help requests or if you found a bug, please use the issue tracker.

Citation

If you use FlowSOM in your work, please cite the following papers:

A. Couckuyt, B. Rombaut, Y. Saeys, and S. Van Gassen, “Efficient cytometry analysis with FlowSOM in Python boosts interoperability with other single-cell tools,” Bioinformatics, vol. 40, no. 4, p. btae179, Apr. 2024, doi: 10.1093/bioinformatics/btae179.

S. Van Gassen et al., “FlowSOM: Using self-organizing maps for visualization and interpretation of cytometry data,” Cytometry Part A, vol. 87, no. 7, pp. 636–645, 2015, doi: 10.1002/cyto.a.22625.

Metadata

Release files for flowsom 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flowsom 0.2.2
File Size Uploaded
flowsom-0.2.2.tar.gz 11.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for flowsom 0.2.2
File Interpreter ABI Platform
flowsom-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 MB

Release files / flowsom-0.2.2.tar.gz

Download URL flowsom-0.2.2.tar.gz
Size 11.0 MB
Tags Source
SHA-256 checksum
How to use checksums
465ead0447509ea01fc929bc9b41a46282dc9ed7b6b906c3bd87735b1d431562
BLAKE2b-256 checksum
How to use checksums
5fb64be17631fbe45befc01b27fae24c894528a2ea25ada842c0a112da7f4bfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 17, 2025.

Transparency log

Release files / flowsom-0.2.2-py3-none-any.whl

Download URL flowsom-0.2.2-py3-none-any.whl
Size 62.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
331d69169706f30416635ccaae3d448eea61c2f80b903726a41f21ce02bf47de
BLAKE2b-256 checksum
How to use checksums
504f1e72f7c7a3dc2ae675bb0a0c223db3e23a3addc000f325ba6e6bec870fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 17, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page