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 (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-0.9.14.tar.gz (10.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: FlowIO-0.9.14.tar.gz
  • Upload date:
  • Size: 10.0 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-0.9.14.tar.gz
Algorithm Hash digest
SHA256 528e68df6805079fc5357c28a31914c14228e56f476127a64ce2fd2ac112b1ed
MD5 a715e83f9e8138ee1b506a1b8c4dcba2
BLAKE2b-256 d6ef0d7d2fcfe8462cbd0d3f741464988fe08fbb7f7d0ac60b2e4085b611317a

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