https://github.com/cgohlke/fcsfiles

Read fluorescence correlation spectroscopy (FCS) data files.

https://github.com/cgohlke/fcsfiles

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 1 committers (100.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.2%) to scientific vocabulary

Keywords

fluorescence-correlation format-reader python zeiss
Last synced: 5 months ago · JSON representation

Repository

Read fluorescence correlation spectroscopy (FCS) data files.

Basic Info
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Topics
fluorescence-correlation format-reader python zeiss
Created almost 6 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.rst

..
  This file is generated by setup.py

Read fluorescence correlation spectroscopy (FCS) data files
===========================================================

Fcsfiles is a Python library to read Carl Zeiss(r) ConfoCor(r) RAW and ASCII
measurement data files.

:Author: `Christoph Gohlke `_
:License: BSD 3-Clause
:Version: 2025.1.1

Quickstart
----------

Install the fcsfiles package and all dependencies from the
`Python Package Index `_::

    python -m pip install -U fcsfiles

See `Examples`_ for using the programming interface.

Source code and support are available on
`GitHub `_.

Requirements
------------

This revision was tested with the following requirements and dependencies
(other versions may work):

- `CPython `_ 3.10.11, 3.11.9, 3.12.8, 3.13.1 64-bit
- `NumPy `_ 2.1.3

Revisions
---------

2025.1.1

- Improve type hints.
- Drop support for Python 3.9, support Python 3.13.

2024.5.24

- Support NumPy 2.
- Fix docstring examples not correctly rendered on GitHub.

2023.8.30

- Fix linting issues.
- Add py.typed marker.
- Convert to Google style docstrings.
- Drop support for Python 3.8 and numpy < 1.22 (NEP29).

2022.9.28

- Update metadata.

2022.2.2

- Add type hints.
- Use float64 or int64 for ConfoCor3Fcs arrays.
- Drop support for Python 3.7 and numpy < 1.19 (NEP29).

2021.6.6

- Drop support for Python 3.6 (NEP 29).

2020.9.18

- Relax ConfoCor3Raw header requirement.
- Support os.PathLike file names.

2020.1.1

- Drop support for Python 2.7 and 3.5.

Notes
-----

"Carl Zeiss" and "ConfoCor" are registered trademarks of Carl Zeiss, Inc.

The use of this implementation may be subject to patent or license
restrictions.

The API is not stable yet and is expected to change between revisions.

This module does *not* read flow cytometry standard FCS files.

Examples
--------

Read the CountRateArray from a ConfoCor3 ASCII file as a numpy array:

.. code-block:: python

    >>> fcs = ConfoCor3Fcs('ConfoCor3.fcs')
    >>> fcs['FcsData']['FcsEntry'][0]['FcsDataSet']['CountRateArray'].shape
    (60000, 2)
    >>> print(fcs)  # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
    Carl Zeiss ConfoCor3 - measurement data file - version 3.0 ANSI
    BEGIN FcsData 30000
            Name = Fluorescein
            Comment =
            AverageFlags = Repeat|Position|Average_Fit_Results
            SortOrder = Channel-Repeat-Position-Kinetics
            BEGIN FcsEntry1 10000
    ...

Read data and metadata from a ConfoCor3 RAW file:

.. code-block:: python

    >>> fcs = ConfoCor3Raw('ConfoCor3.raw')
    >>> fcs.filename
    'f5ee4f36488fca2f89cb6b8626111006_R1_P1_K1_Ch1.raw'
    >>> fcs.frequency
    20000000
    >>> times = fcs.asarray()
    >>> int(times[10858])
    1199925494
    >>> times, bincounts = fcs.asarray(bins=1000)
    >>> times.shape
    (1000,)
    >>> int(bincounts[618])
    23
    >>> fcs.close()

Read data and metadata from a ConfoCor2 RAW file:

.. code-block:: python

    >>> fcs = ConfoCor2Raw('ConfoCor2.raw')
    >>> fcs.frequency
    20000000
    >>> ch0, ch1 = fcs.asarray()
    >>> int(ch1[4812432])
    999999833
    >>> times, ch0, ch1 = fcs.asarray(bins=1000)
    >>> times.shape
    (1000,)
    >>> int(ch1[428])
    10095
    >>> fcs.close()

Owner

  • Name: Christoph Gohlke
  • Login: cgohlke
  • Kind: user
  • Location: Irvine, California

GitHub Events

Total
  • Push event: 1
  • Fork event: 1
  • Create event: 1
Last Year
  • Push event: 1
  • Fork event: 1
  • Create event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 49
  • Total Committers: 1
  • Avg Commits per committer: 49.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 4
  • Committers: 1
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Christoph Gohlke c****e@u****u 49
Committer Domains (Top 20 + Academic)
uci.edu: 1

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

setup.py pypi
  • numpy >=1.19.2