Skip to main content

Seaflowpy

A Python package for SeaFlow flow cytometer data.

Table of Contents

  1. Install
  2. Command-line Interface
  3. Configuration
  4. Testing

Install

This package is compatible with Python 3.10 and 3.11

Source

To install this project from a clone of the repo use poetry

poetry self add poetry-plugin-export
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install

PyPI

pip install seaflowpy

Docker

Docker images are available from Docker Hub at ctberthiaume/seaflowpy.

docker pull ctberthiaume/seaflowpy
docker run -it ctberthiaume/seaflowpy seaflowpy version

The Docker build file is in this repo at /Dockerfile. The build process for the Docker image is detailed in /build-docker.sh.

Command-line interface

All seaflowpy CLI tools are accessible from the seaflowpy executable. Run seaflowpy --help to begin exploring the CLI usage documentation.

SFL validation workflow

SFL validation sub-commands are available under the seaflowpy sfl command. The usage details for each command can be accessed as seaflowpy sfl <cmd> -h.

The basic worfkflow should be

  1. If starting with an SDS file, first convert to SFL with seaflowpy sds2sfl

  2. If the SFL file is output from sds2sfl or is a raw SeaFlow SFL file, convert it to a normalized format with seaflowpy sfl print. This command can be used to concatenate multiple SFL files, e.g. merge all SFL files in day-of-year directories.

  3. Check for potential errors or warnings with seaflowpy sfl validate.

  4. Fix errors and warnings. Duplicate file errors can be fixed with seaflowpy sfl dedup. Bad lat/lon errors may be fixed withseaflowpy sfl convert-gga, assuming the bad coordinates are GGA to begin with. This can be checked with with seaflowpy sfl detect-gga. Other errors or missing values may need to be fixed manually.

  5. (Optional) Update event rates based on true event counts and file duration with seaflowpy sfl fix-event-rate. True event counts for raw EVT files can be determined with seaflowpy evt count. If filtering has already been performed then event counts can be pulled from the all_count column of the opp table in the SQLITE3 database. e.g. sqlite3 -separator $'\t' SCOPE_14.db 'SELECT file, all_count ORDER BY file'

  6. (Optional) As a check for dataset completeness, the list of files in an SFL file can be compared to the actual EVT files present with seaflowpy sfl manifest. It's normal for a few files to differ, especially near midnight. If a large number of files are missing it may be a sign that the data transfer was incomplete or the SFL file is missing some days.

  7. Once all errors or warnings have been fixed, do a final seaflowpy validate before adding the SFL file to the appropriate repository.

Configuration

To use seaflowpy sfl manifest AWS credentials need to be configured. The easiest way to do this is to install the awscli Python package and go through configuration.

pip3 install awscli
aws configure

This will store AWS configuration in ~/.aws which seaflowpy will use to access Seaflow data in S3 storage.

Testing

Seaflowpy uses pytest for testing. Tests can be run from this directory as pytest to test the installed version of the package.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seaflowpy-15.1.3.tar.gz (33.8 MB view details)

Uploaded Source

Built Distribution

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

seaflowpy-15.1.3-py3-none-any.whl (74.2 kB view details)

Uploaded Python 3

File details

Details for the file seaflowpy-15.1.3.tar.gz.

File metadata

  • Download URL: seaflowpy-15.1.3.tar.gz
  • Upload date:
  • Size: 33.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for seaflowpy-15.1.3.tar.gz
Algorithm Hash digest
SHA256 0750bf387e7fd8c29beb59b83721bea2e8cb2a69c277140def1e388d39f16a56
MD5 866485ffa45dc9ca7b329672ed755d5a
BLAKE2b-256 9c3b4f5346efdcfce98401fe47df2fa017b696c6bfc98eea1ec05a6a6898c185

See more details on using hashes here.

File details

Details for the file seaflowpy-15.1.3-py3-none-any.whl.

File metadata

  • Download URL: seaflowpy-15.1.3-py3-none-any.whl
  • Upload date:
  • Size: 74.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for seaflowpy-15.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f93a1b3ca51f226ffc67c213eb8f133b430fdba06e220fc6fd5b8bb32eb5c03
MD5 286defaee205bfbba6e84eed467096d3
BLAKE2b-256 f63cc279d106333a240d28c9826ffc2dad93a12e4f1909dea4c8e2ac07ac28cd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

15.1.3 This release

2 files

15.1.2

2 files

15.1.1

2 files

14.6.3

2 files

14.6.2

2 files

14.6.0

2 files

14.5.2

2 files

14.5.1

2 files

14.5.0

2 files

14.4.3

2 files

14.4.2

2 files

14.4.1

2 files

14.3.3

1 file

14.2.0

2 files

14.0.2

2 files

14.0.1

2 files

13.1.11

2 files

13.1.8

2 files

13.1.3

2 files

13.1.2

2 files

13.1.1

2 files

13.0.0

2 files

12.1.1

2 files

12.0.2

2 files

9.1.5

2 files

9.1.3

2 files

9.1.1

2 files

9.1.0

2 files

9.0.1

2 files

8.1.1

2 files

8.1.0

2 files

7.1.0

2 files

7.0.0

2 files

6.3.0

2 files

6.2.1

2 files

6.2.0

2 files

6.1.0

2 files

6.0.0

2 files

5.3.0

2 files

5.2.0

2 files

5.1.1

2 files

4.2.1

2 files

4.1.0

2 files

4.0.0

2 files

3.4.0

2 files

3.3.1

2 files

3.3.0

2 files

3.2.0

2 files

3.1.0

2 files

2.1.0

2 files

1.0.0

2 files

0.15.1

2 files

0.15.0

2 files

0.14.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page