Skip to main content

Flow Cytometry Standard I/O

Project description

FlowIO

PyPI license PyPI pyversions PyPI version

Build Status Coverage

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FlowIO-0.9.10-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: FlowIO-0.9.10.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.6

File hashes

Hashes for FlowIO-0.9.10.tar.gz
Algorithm Hash digest
SHA256 0f5026d6b1c6b5ce2cbbed854ac1235dd2ca49b860d66e64efd267233321f965
MD5 2b9a1b88e3d98a7ab54bdb2c423a6756
BLAKE2b-256 0dac07bd620a18f10ac5f79ff49a15d21ad37a9e8a90ed9159736f50515a87af

See more details on using hashes here.

File details

Details for the file FlowIO-0.9.10-py3-none-any.whl.

File metadata

  • Download URL: FlowIO-0.9.10-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.6

File hashes

Hashes for FlowIO-0.9.10-py3-none-any.whl
Algorithm Hash digest
SHA256 4330128fd0cd9e8b23342129bb309e334d553741687f506d4b51bf507b3927fc
MD5 4544dca1eb3536a205f8a091acd974f3
BLAKE2b-256 aca726967ae2658101322427bd8c3751c8ab2c65958756876cd3514bf8956f70

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