Skip to main content

A Python module for interacting with IFCB data.

Project description

libflowcam

An optimised, native Python library for working with FlowCam data. Implements lazy-loading wherever possible and maintains open file pointers for speedy access. Returns standard Pillow image objects for further processing.

Example

from libflowcam import ROIReader

# Represents a typical sample density
sample1 = ROIReader("testdata/flowcam_polina_pontoon_0907_r2/flowcam_polina_pontoon_0907_r2.csv")
print(str(len(sample1.rois)) + " ROIs") # Should be 6268 ROIs
for roi_index in [10, 100, 1000]:
    sample1.rois[roi_index].image.save("testout/flowcam_polina_pontoon_0907_r2_" + str(roi_index) + ".png")

# A very dense sample, this is a cruel test
sample2 = ROIReader("testdata/flowcam_polina_pontoon_0707_r1/flowcam_polina_pontoon_0707_r1.csv")
print(str(len(sample2.rois)) + " ROIs") # Should be 137015 ROIs
for roi_index in [10, 100, 1000, 10000, 100000]:
    sample2.rois[roi_index].image.save("testout/flowcam_polina_pontoon_0707_r1_" + str(roi_index) + ".png")

Note

This library has been built with no internal knowledge of the FlowCam software, and the data output format was reverse engineered soley from output data. It would therefore be highly appreciated if users could contribute data that breaks the library in order to better accomodate for all use cases.

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

libflowcam-0.4.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

libflowcam-0.4-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file libflowcam-0.4.tar.gz.

File metadata

  • Download URL: libflowcam-0.4.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for libflowcam-0.4.tar.gz
Algorithm Hash digest
SHA256 121c9abfbb8d62d9d5edc232dd667db43c4c0691e425643f74b4988c0348161a
MD5 f8524d370f165d6c16d5056684722c51
BLAKE2b-256 8847f34c3adab6ae4fbb6ac7150c1c367a748255ca12b53fb3bdc63c79ab7b46

See more details on using hashes here.

File details

Details for the file libflowcam-0.4-py3-none-any.whl.

File metadata

  • Download URL: libflowcam-0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for libflowcam-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 12b4a3a2696066222b8a747c21ef49584354854870d743a4d3f4b2a357d7f5e2
MD5 6ba5bd9d6bcc3f07e3efcf7f9e6958d0
BLAKE2b-256 e27f71733f63d983e12b8fd01f26bd8c41b5dbcfd9c403de365c6bf93693b57e

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