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.3.tar.gz (12.4 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.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for libflowcam-0.3.tar.gz
Algorithm Hash digest
SHA256 56ebe72b62cb329235101b9f27c473e5b827a88f1135a1de98a45a27ce6ef7c6
MD5 fd21d0d842c635a5a018f3bdbba6704f
BLAKE2b-256 56cf9d5a06dd848289a2c310db916a02f4896dbc394299f1441b63bb196f9aeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libflowcam-0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 648170776c3e5a63d76aa0b7a311225cc86bcae4409a7ccef303e4e8668f5c04
MD5 d2dfc491613d02784291d517564612fc
BLAKE2b-256 31d0069f49b4555f13cd0fc328cd84a31ea187f0b91f97a737e2e1a084496253

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