Skip to main content

A python package for performing flow cytometry analysis

Project description

Authors: Jonathan Friedman and Eugene Yurtsev

https://travis-ci.org/eyurtsev/FlowCytometryTools.svg?branch=master https://zenodo.org/badge/doi/10.5281/zenodo.32991.svg

FlowCytometryTools is a python package for visualization and analysis of high-throughput flow cytometry data.

  • Intuitive: provides a simple programmatic interface to work with flow cytometry data

  • Flexible: can analyze either individual samples or collections of many plates

  • Scalable: simplifies analysis of high-throughput data using the power of pandas

Who is this for?

FlowCytometryTools is for researchers who want to use the python programming language to analyze flow cytometry data.

The package is specifically tailored for high-throughput analysis. It provides an interface that can directly work with collections of flow cytometry measurements (e.g., 96-well plates).

Basic familiarity with the python programming languages is recommended.

You can find a few example scripts that load and plot flow cytometry data in the gallery page.

If you like what you see, then proceed to the installation page and then to the tutorial.

And yes, there’s a UI to draw basic gates. It’s super basic, but it gets the job done.

https://github.com/eyurtsev/FlowCytometryTools/blob/master/doc/source/_static/webagg_demo.gif _static/webagg_demo.gif

Features

  • Transformations: hyperlog (hlog), truncated log (tlog), or anything you can dream of ;)

  • Plotting: 1D, 2D histograms for both single samples and collections (e.g., 96-well plates).

  • Gating: threshold, interval, quad, polygon gates

  • Subsampling: easy to subsample to examine only part of a measurement and randomize event order

  • GUI: simple graphical user interface to draw gates (wx or webagg)

  • FCS Formats: Supports FCS 2.0, 3.0, and 3.1

Resources

Dependencies

For more information about how to obtain these, please see the installation page.

FlowCytometryTools may work with older versions of some of these dependencies, but if you run into issues, please update the dependencies.

Required Dependencies

  1. python python 2.7 or python 3

  2. pandas (Recommended version: 0.19.0 or higher).

  3. matplotlib (Recommended version: 1.5.3 or higher).

  4. scipy

Optional Dependencies

  1. wx-python : Used for the FlowCytometryTools GUI.

Alternatives

FlowCytometryTools is not the only open source software for performing data analysis on flow cytometry data.

So if you find that FlowCytometryTools does not suit your needs, take a look at the following software:

Changes

v0.4.6, 2017-03-26

  • FIX: edge case for inferring x-range for spline interpolation when doing log transforms and with data the contains values in the interval.

  • FIX: fix linear transform (kwargs weren’t being passed correctly).

  • FIX: interval gate was raising exceptions for certain numpy versions (fix by alonyan)

v0.4.5, 2015-10-31

  • Sample fcs files now included with installation

  • Mostly maintenance (tests, configuration files, etc.)

v0.4.4, 2015-09-06

** Repository moved to github **

Enhancements:

  • added an experimental web-based backend for drawing gates. Use FCMeasurement.view_inteactively(backend=’webagg’).

  • col first enumerator for forming an ordered fcs file collection (Yoav Ram)

Bug fixes:

  • FCPlate.from_dir ID_kwargs match against full path, not just filename (Nick Bolten)

  • fcs parser can read larger fcs files and handles blank headers (Ben Roth)

v0.4.3, 2014-12-05

  • ENHC: Automatically determine bin location when plotting plates.

  • Fix for Accuri V6 FCS (Ben Roth)

  • Fix for xlim/ylim when plotting 2d histograms

v0.4.2, 2014-10-08

  • FCS parser can handle more formats

  • Updated documentation

v0.4.1, 2014-09-13

  • Bug fixes for GUI

  • Now works with matplotlib 1.4.0

  • Added documentation and examples to gallery

v0.4.0, 2014-06-05

  • Updates in documentation

  • Added experimental view() function

  • Renamed old view() function into -> view_interactively()

  • Added queueing to help when dealing with large quantities of data.

  • Histogram plots should work with pandas (0.14.0) & matplotlib (1.3.1).

v0.3.6, 2014-02-11

  • Mostly updates in documentation

v0.3.5, 2014-01-19

  • Boost in speed for transformations on collections of measurements (like 96-well plates).

  • Much of the documentation has been updated and improved.

  • Improved GUI.

v0.3.0, 2013-10-27 Initial Release

LICENSE

The MIT License (MIT)

Copyright (c) 2013-2015 Eugene Yurtsev and Jonathan Friedman

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

FlowCytometryTools-0.5.1.tar.gz (7.0 MB view details)

Uploaded Source

Built Distribution

FlowCytometryTools-0.5.1-py3-none-any.whl (7.1 MB view details)

Uploaded Python 3

File details

Details for the file FlowCytometryTools-0.5.1.tar.gz.

File metadata

  • Download URL: FlowCytometryTools-0.5.1.tar.gz
  • Upload date:
  • Size: 7.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.10

File hashes

Hashes for FlowCytometryTools-0.5.1.tar.gz
Algorithm Hash digest
SHA256 2a2a151f6d0bc53318848c7bb2d5dfa61412e7c81fc5efcbb4643aee471e5393
MD5 d983fd37189df41dd3dec7f0b108783b
BLAKE2b-256 e451aaeef2bf0f333e278442096afeb608642d4f6ff16a1595d846777ad8bc5f

See more details on using hashes here.

File details

Details for the file FlowCytometryTools-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: FlowCytometryTools-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.10

File hashes

Hashes for FlowCytometryTools-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9380ffb968469e3f0a97113add1c10e82cab6131462cf47b6826d36d1679e354
MD5 19b95fcc04028f7cd234e195f12b285a
BLAKE2b-256 5433b9db6698488857879c71f741399e6b2ffc93bf388f70b943537e0b995db4

See more details on using hashes here.

Supported by

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