Quickstart#

import pytometry as pm
import readfcs
import anndata

Read fcs file example from the readfcs package.

from urllib.request import urlretrieve

path_data, _ = urlretrieve(readfcs.datasets.example(), "example.fcs")
adata = pm.io.read_fcs(path_data)
assert isinstance(adata, anndata._core.anndata.AnnData)

Save data to HDF5 file format.

adata.write("example.h5ad")