Skip to main content

Flow Cytometry Standard I/O

Project description

FlowIO

PyPI license PyPI pyversions PyPI version

Overview

FlowIO is a Python library for reading and writing Flow Cytometry Standard (FCS) files. Flow IO has zero external dependencies and works in both Python 2 and 3. 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.6.tar.gz (9.2 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.6-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: FlowIO-0.9.6.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.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.2

File hashes

Hashes for FlowIO-0.9.6.tar.gz
Algorithm Hash digest
SHA256 666273ac9d3e32caf94feb8e63290eb7474c1b06bce6d9ee2ef9c990263627b4
MD5 e616b7af653a6fe868261d0718daa506
BLAKE2b-256 69291fc74850b49e19704f85f54210519294172cac90b5678a9dc14564887580

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FlowIO-0.9.6-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.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.2

File hashes

Hashes for FlowIO-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9df22665dd032fda47ea661d7e5b7ddbea2aa4a9c9ebb794f618273005d12956
MD5 db79dabcc045109983826ac6ef757123
BLAKE2b-256 c408fc04d5364abf7417ec04247d2db2756005c2124d5544d3cd66ce3571ebc3

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