Skip to main content

FlowIO is a Python library for reading / writing Flow Cytometry Standard (FCS) files

Project description

FlowIO

PyPI license PyPI pyversions PyPI version DOI

Build Status Coverage Documentation Status

Overview

FlowIO is a Python library for reading / writing Flow Cytometry Standard (FCS) files and has zero external dependencies. FlowIO is compatible with Python 3.6+ (FlowIO v0.9.9 was the last release supporting Python 2).

For higher level interaction with flow cytometry data, including GatingML and FlowJo 10 support, see the related FlowKit project.

Installation

The recommended way to install FlowIO is via the pip command:

pip install flowio

Or, if you prefer, you can install from the GitHub source:

git clone https://github.com/whitews/flowio
cd flowio
python setup.py install

Usage

FlowIO retrieves event data exactly as it is encoded in the FCS file: as a 1-dimensional list without separating the events into channels. However, all the metadata found within the FCS file is available as a dictionary via the 'text' attribute. Basic attributes are also available for commonly accessed properties. For example, the channel count can be used to easily convert the event data to a multi-column NumPy array:

import flowio
import numpy

fcs_data = flowio.FlowData('example.fcs')
npy_data = numpy.reshape(fcs_data.events, (-1, fcs_data.channel_count))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FlowIO-1.0.0.tar.gz (12.4 kB view details)

Uploaded Source

File details

Details for the file FlowIO-1.0.0.tar.gz.

File metadata

  • Download URL: FlowIO-1.0.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/4.7.1 keyring/23.1.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for FlowIO-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a42bb68a8baacb395a556fadab2057c898cdd48ce59e6f6d0e4ab4d24dedfd0d
MD5 4cec9dc08d4a87b055f8ca51b68e1f06
BLAKE2b-256 c62c6c9d60a472febba4f0f8e621a5cc527c8079312a42fe026edbc9631416cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page