FlowIO is a Python library for reading / writing Flow Cytometry Standard (FCS) files
Project description
FlowIO
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file FlowIO-0.9.13.tar.gz.
File metadata
- Download URL: FlowIO-0.9.13.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f63943f968e367bd3f0188fbd4797986a2895213c3676b404bc7e8a9da694995
|
|
| MD5 |
171038fd8462aeb559a26a2cfe461672
|
|
| BLAKE2b-256 |
1af8b930bed20bef51d1c3d334dd0e43b945fe6f789f92d59aa16e89f906e9d3
|
File details
Details for the file FlowIO-0.9.13-py3-none-any.whl.
File metadata
- Download URL: FlowIO-0.9.13-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81b7bb6b99671a3b4bc6216a8abe9df7820eabb63bb6f5a48099a5acef892b23
|
|
| MD5 |
973a4378664f2a5b7c9ff695072697cd
|
|
| BLAKE2b-256 |
cceaa66c17872dedca071adcd41e9e0d0163baa67ca2d8e9c085271871b65aed
|