ome-iris 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ome_iris-0.0.3/.gitignore +222 -0
- ome_iris-0.0.3/.pre-commit-config.yaml +61 -0
- ome_iris-0.0.3/.python-version +1 -0
- ome_iris-0.0.3/AGENTS.md +42 -0
- ome_iris-0.0.3/CITATION.cff +22 -0
- ome_iris-0.0.3/CODE_OF_CONDUCT.md +132 -0
- ome_iris-0.0.3/CONTRIBUTING.md +129 -0
- ome_iris-0.0.3/LICENSE +28 -0
- ome_iris-0.0.3/MANIFEST.in +13 -0
- ome_iris-0.0.3/PKG-INFO +217 -0
- ome_iris-0.0.3/README.md +199 -0
- ome_iris-0.0.3/pyproject.toml +56 -0
- ome_iris-0.0.3/setup.cfg +4 -0
- ome_iris-0.0.3/src/OME_IRIS/__init__.py +8 -0
- ome_iris-0.0.3/src/OME_IRIS/_version.py +24 -0
- ome_iris-0.0.3/src/OME_IRIS/clean.py +9 -0
- ome_iris-0.0.3/src/OME_IRIS/cli.py +149 -0
- ome_iris-0.0.3/src/OME_IRIS/data/dataset.schema.yaml +104 -0
- ome_iris-0.0.3/src/OME_IRIS/data/datasets/jump-plate-example.yaml +45 -0
- ome_iris-0.0.3/src/OME_IRIS/data/datasets/nf1-cellpainting-shrunken.yaml +68 -0
- ome_iris-0.0.3/src/OME_IRIS/data/datasets/nuclei-3d.yaml +61 -0
- ome_iris-0.0.3/src/OME_IRIS/data/datasets/pediatric-cancer-atlas.yaml +65 -0
- ome_iris-0.0.3/src/OME_IRIS/data/datasets.csv +5 -0
- ome_iris-0.0.3/src/OME_IRIS/fetch.py +314 -0
- ome_iris-0.0.3/src/OME_IRIS/rocrate.py +85 -0
- ome_iris-0.0.3/src/OME_IRIS/scaffold.py +136 -0
- ome_iris-0.0.3/src/OME_IRIS/verify.py +207 -0
- ome_iris-0.0.3/src/ome_iris.egg-info/PKG-INFO +217 -0
- ome_iris-0.0.3/src/ome_iris.egg-info/SOURCES.txt +32 -0
- ome_iris-0.0.3/src/ome_iris.egg-info/dependency_links.txt +1 -0
- ome_iris-0.0.3/src/ome_iris.egg-info/entry_points.txt +2 -0
- ome_iris-0.0.3/src/ome_iris.egg-info/requires.txt +3 -0
- ome_iris-0.0.3/src/ome_iris.egg-info/top_level.txt +1 -0
- ome_iris-0.0.3/uv.lock +1767 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
# Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
# poetry.lock
|
|
109
|
+
# poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
# pdm.lock
|
|
116
|
+
# pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
# pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# Redis
|
|
135
|
+
*.rdb
|
|
136
|
+
*.aof
|
|
137
|
+
*.pid
|
|
138
|
+
|
|
139
|
+
# RabbitMQ
|
|
140
|
+
mnesia/
|
|
141
|
+
rabbitmq/
|
|
142
|
+
rabbitmq-data/
|
|
143
|
+
|
|
144
|
+
# ActiveMQ
|
|
145
|
+
activemq-data/
|
|
146
|
+
|
|
147
|
+
# SageMath parsed files
|
|
148
|
+
*.sage.py
|
|
149
|
+
|
|
150
|
+
# Environments
|
|
151
|
+
.env
|
|
152
|
+
.envrc
|
|
153
|
+
.venv
|
|
154
|
+
env/
|
|
155
|
+
venv/
|
|
156
|
+
ENV/
|
|
157
|
+
env.bak/
|
|
158
|
+
venv.bak/
|
|
159
|
+
|
|
160
|
+
# Spyder project settings
|
|
161
|
+
.spyderproject
|
|
162
|
+
.spyproject
|
|
163
|
+
|
|
164
|
+
# Rope project settings
|
|
165
|
+
.ropeproject
|
|
166
|
+
|
|
167
|
+
# mkdocs documentation
|
|
168
|
+
/site
|
|
169
|
+
|
|
170
|
+
# mypy
|
|
171
|
+
.mypy_cache/
|
|
172
|
+
.dmypy.json
|
|
173
|
+
dmypy.json
|
|
174
|
+
|
|
175
|
+
# Pyre type checker
|
|
176
|
+
.pyre/
|
|
177
|
+
|
|
178
|
+
# pytype static type analyzer
|
|
179
|
+
.pytype/
|
|
180
|
+
|
|
181
|
+
# Cython debug symbols
|
|
182
|
+
cython_debug/
|
|
183
|
+
|
|
184
|
+
# PyCharm
|
|
185
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
186
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
188
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
189
|
+
# .idea/
|
|
190
|
+
|
|
191
|
+
# Abstra
|
|
192
|
+
# Abstra is an AI-powered process automation framework.
|
|
193
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
194
|
+
# Learn more at https://abstra.io/docs
|
|
195
|
+
.abstra/
|
|
196
|
+
|
|
197
|
+
# Visual Studio Code
|
|
198
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
199
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
200
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
201
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
202
|
+
# .vscode/
|
|
203
|
+
# Temporary file for partial code execution
|
|
204
|
+
tempCodeRunnerFile.py
|
|
205
|
+
|
|
206
|
+
# Ruff stuff:
|
|
207
|
+
.ruff_cache/
|
|
208
|
+
|
|
209
|
+
# PyPI configuration file
|
|
210
|
+
.pypirc
|
|
211
|
+
|
|
212
|
+
# Marimo
|
|
213
|
+
marimo/_static/
|
|
214
|
+
marimo/_lsp/
|
|
215
|
+
__marimo__/
|
|
216
|
+
|
|
217
|
+
# Streamlit
|
|
218
|
+
.streamlit/secrets.toml
|
|
219
|
+
|
|
220
|
+
# docs
|
|
221
|
+
pages/
|
|
222
|
+
src/OME_IRIS/_version.py
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v6.0.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- id: end-of-file-fixer
|
|
9
|
+
- id: check-yaml
|
|
10
|
+
- id: detect-private-key
|
|
11
|
+
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
12
|
+
rev: "v2.21.2"
|
|
13
|
+
hooks:
|
|
14
|
+
- id: pyproject-fmt
|
|
15
|
+
- repo: https://github.com/citation-file-format/cffconvert
|
|
16
|
+
rev: b6045d78aac9e02b039703b030588d54d53262ac
|
|
17
|
+
hooks:
|
|
18
|
+
- id: validate-cff
|
|
19
|
+
- repo: https://github.com/codespell-project/codespell
|
|
20
|
+
rev: v2.4.2
|
|
21
|
+
hooks:
|
|
22
|
+
- id: codespell
|
|
23
|
+
exclude: |
|
|
24
|
+
(?x)^(
|
|
25
|
+
.*\.lock |
|
|
26
|
+
.*\.csv |
|
|
27
|
+
.*\.cff |
|
|
28
|
+
.*\.ipynb
|
|
29
|
+
)$
|
|
30
|
+
- repo: https://github.com/executablebooks/mdformat
|
|
31
|
+
rev: 1.0.0
|
|
32
|
+
hooks:
|
|
33
|
+
- id: mdformat
|
|
34
|
+
additional_dependencies:
|
|
35
|
+
- mdformat-gfm
|
|
36
|
+
- repo: https://github.com/adrienverge/yamllint
|
|
37
|
+
rev: v1.38.0
|
|
38
|
+
hooks:
|
|
39
|
+
- id: yamllint
|
|
40
|
+
exclude: pre-commit-config.yaml
|
|
41
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
42
|
+
rev: "v0.15.14"
|
|
43
|
+
hooks:
|
|
44
|
+
- id: ruff-format
|
|
45
|
+
- id: ruff-check
|
|
46
|
+
- repo: https://github.com/rhysd/actionlint
|
|
47
|
+
rev: v1.7.12
|
|
48
|
+
hooks:
|
|
49
|
+
- id: actionlint
|
|
50
|
+
- repo: https://github.com/jendrikseipp/vulture
|
|
51
|
+
rev: 'v2.16'
|
|
52
|
+
hooks:
|
|
53
|
+
- id: vulture
|
|
54
|
+
args: ["src", "tests"]
|
|
55
|
+
- repo: local
|
|
56
|
+
hooks:
|
|
57
|
+
- id: ty
|
|
58
|
+
name: ty
|
|
59
|
+
entry: bash -c "command -v uv >/dev/null 2>&1 && uv run --frozen --with ty ty check || true"
|
|
60
|
+
language: system
|
|
61
|
+
files: ^(src|tests)/.*\.py$
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.11
|
ome_iris-0.0.3/AGENTS.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Agent Guide
|
|
2
|
+
|
|
3
|
+
This repository includes local agent guidance in `.agents/skills/`.
|
|
4
|
+
|
|
5
|
+
## Where agent guidance lives
|
|
6
|
+
|
|
7
|
+
- Root guide: `AGENTS.md`
|
|
8
|
+
- Skills directory: `.agents/skills/`
|
|
9
|
+
- Skill directories:
|
|
10
|
+
- `.agents/skills/test-driven-development/SKILL.md`
|
|
11
|
+
- `.agents/skills/incremental-implementation/SKILL.md`
|
|
12
|
+
- `.agents/skills/code-review-and-quality/SKILL.md`
|
|
13
|
+
- `.agents/skills/ci-cd-and-automation/SKILL.md`
|
|
14
|
+
- `.agents/skills/debugging-and-error-recovery/SKILL.md`
|
|
15
|
+
- `.agents/skills/learning-opportunities/SKILL.md`
|
|
16
|
+
|
|
17
|
+
## How to use these skills
|
|
18
|
+
|
|
19
|
+
- Load relevant skill(s) before making edits.
|
|
20
|
+
- Prefer small changes with frequent validation.
|
|
21
|
+
- Keep work aligned with this project's `pyproject.toml`, CI workflows, and pre-commit hooks.
|
|
22
|
+
|
|
23
|
+
## Default execution order
|
|
24
|
+
|
|
25
|
+
1. Apply `test-driven-development` when behavior changes.
|
|
26
|
+
1. Apply `incremental-implementation` for multi-file or higher-risk changes.
|
|
27
|
+
1. Apply `code-review-and-quality` as the final quality gate before completion.
|
|
28
|
+
1. Apply `ci-cd-and-automation` when changing checks, tasks, or pipelines.
|
|
29
|
+
1. Apply `debugging-and-error-recovery` when tests, CI, or runtime behavior fails unexpectedly.
|
|
30
|
+
1. Optionally apply `learning-opportunities` for 10-15 minute learning exercises after design-heavy work.
|
|
31
|
+
|
|
32
|
+
## Local commands
|
|
33
|
+
|
|
34
|
+
- Run tests: `uv run --frozen pytest`
|
|
35
|
+
- Run lint/format hooks: `pre-commit run --all-files`
|
|
36
|
+
- Run type checks via pre-commit hook: `pre-commit run ty --all-files`
|
|
37
|
+
- Run full local pipeline: `uv run --frozen poe pipeline`
|
|
38
|
+
|
|
39
|
+
## Scope expectations
|
|
40
|
+
|
|
41
|
+
- These instructions are project-local.
|
|
42
|
+
- If team standards evolve, update these files in-place.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
title: OME-IRIS
|
|
3
|
+
message: If you use this project, please cite it using the metadata below.
|
|
4
|
+
type: software
|
|
5
|
+
authors:
|
|
6
|
+
- given-names: Dave
|
|
7
|
+
family-names: Bunten
|
|
8
|
+
orcid: "https://orcid.org/0000-0001-6041-3665"
|
|
9
|
+
- given-names: Gregory
|
|
10
|
+
family-names: Way
|
|
11
|
+
orcid: 'https://orcid.org/0000-0002-0503-9348'
|
|
12
|
+
repository-code: https://github.com/d33bs/OME-IRIS
|
|
13
|
+
license: BSD-3-Clause
|
|
14
|
+
date-released: 2026-05-26
|
|
15
|
+
abstract: >-
|
|
16
|
+
OME-IRIS is a minimal open bioimage dataset catalog for benchmarking image IO,
|
|
17
|
+
masks, metadata, and image-linked profile workflows.
|
|
18
|
+
keywords:
|
|
19
|
+
- bioimaging
|
|
20
|
+
- benchmarking
|
|
21
|
+
- microscopy
|
|
22
|
+
- dataset catalog
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socioeconomic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
- Demonstrating empathy and kindness toward other people
|
|
21
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
- Giving and gracefully accepting constructive feedback
|
|
23
|
+
- Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
- Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
- The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
- Public or private harassment
|
|
34
|
+
- Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to community leaders responsible for enforcement.
|
|
63
|
+
Please reach out to the maintainers of this repository by using their GitHub profile email address contact information to privately notify us of any incidents of this nature.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder][mozilla coc].
|
|
123
|
+
|
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
+
[https://www.contributor-covenant.org/faq][faq]. Translations are available at
|
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
127
|
+
|
|
128
|
+
[faq]: https://www.contributor-covenant.org/faq
|
|
129
|
+
[homepage]: https://www.contributor-covenant.org
|
|
130
|
+
[mozilla coc]: https://github.com/mozilla/diversity
|
|
131
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
132
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Contributing to OME-IRIS
|
|
2
|
+
|
|
3
|
+
Thanks for contributing to OME-IRIS.
|
|
4
|
+
|
|
5
|
+
This project is intentionally small: a lightweight bioimage dataset catalog with fetch/verify tooling. Keep changes simple, readable, and easy to validate.
|
|
6
|
+
|
|
7
|
+
## Development setup
|
|
8
|
+
|
|
9
|
+
1. Install dependencies:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
uv sync
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
2. Run the test suite:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
uv run --frozen pytest
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
3. Run pre-commit checks:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pre-commit run --all-files
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
4. (Optional) build docs:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
uv sync --group docs
|
|
31
|
+
uv run --frozen sphinx-build docs/src docs/build
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Repository orientation
|
|
35
|
+
|
|
36
|
+
- Keep changes aligned with the project goal: a small, easy-to-use bioimage dataset catalog.
|
|
37
|
+
- Prefer working through the unified CLI and tests rather than relying on fixed internal paths.
|
|
38
|
+
- Treat schema, manifests, and validation tooling as evolving components.
|
|
39
|
+
|
|
40
|
+
## Common workflows
|
|
41
|
+
|
|
42
|
+
### Update or add a dataset
|
|
43
|
+
|
|
44
|
+
1. Add or edit a dataset manifest in the current manifest location.
|
|
45
|
+
1. Update the catalog metadata index used by the project.
|
|
46
|
+
1. Validate locally:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
uv run ome-iris verify
|
|
50
|
+
uv run --frozen pytest
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
To generate a starter manifest + CSV row from a source path:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
uv run ome-iris scaffold --source-path /path/to/dataset
|
|
57
|
+
uv run ome-iris scaffold --source-path /path/to/dataset --append-csv
|
|
58
|
+
uv run ome-iris scaffold --source-path /path/to/dataset --include-directory-entry --directory-path images --archive-format zip
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Use a custom data directory
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
uv run ome-iris fetch --data-dir /tmp/ome-iris-data
|
|
65
|
+
uv run ome-iris verify --data-dir /tmp/ome-iris-data
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Check fetch behavior
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
uv run ome-iris fetch --tier small
|
|
72
|
+
uv run ome-iris fetch --dataset <dataset-id>
|
|
73
|
+
uv run ome-iris export-rocrate --dataset <dataset-id>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
If URLs are missing, fetch should report them clearly instead of failing silently.
|
|
77
|
+
Each fetched dataset directory includes `ro-crate-metadata.json` for provenance and relationship metadata.
|
|
78
|
+
|
|
79
|
+
For mixed-source datasets, add multiple `files` entries with per-file URLs. If a source is provided as an archive, you can use:
|
|
80
|
+
|
|
81
|
+
- `kind: directory`
|
|
82
|
+
- `archive_format: zip` or `archive_format: tar`
|
|
83
|
+
- required top-level `source_identifier` to define the local dataset root under `data/`
|
|
84
|
+
- `files[].path` relative to `data/<source_identifier>/`
|
|
85
|
+
- directory traversal is supported for GitHub `tree` URLs and local directories
|
|
86
|
+
|
|
87
|
+
`sha256` is optional, but recommended when URLs are stable.
|
|
88
|
+
|
|
89
|
+
You can also define top-level `relationships` entries to link components.
|
|
90
|
+
`from` and `to` must reference existing `files[].path` values.
|
|
91
|
+
Prefer standard relationship fields (`via_columns`, `filename_patterns`, `derived_from_columns`) before using `custom_metadata`.
|
|
92
|
+
Set `rocrate_predicate` on every relationship using an explicit absolute JSON-LD predicate URI (required).
|
|
93
|
+
|
|
94
|
+
## Custom metadata support
|
|
95
|
+
|
|
96
|
+
Custom metadata is first-class and validated.
|
|
97
|
+
|
|
98
|
+
- Use `custom_metadata` at manifest, source, or file level.
|
|
99
|
+
- `custom_metadata` must be an object/map.
|
|
100
|
+
- Supported value types: string, number, boolean, null, list, and nested objects.
|
|
101
|
+
|
|
102
|
+
If `custom_metadata` is not an object or contains unsupported types, `ome-iris verify` reports an error.
|
|
103
|
+
|
|
104
|
+
## Testing expectations
|
|
105
|
+
|
|
106
|
+
- Add or update tests for behavior changes.
|
|
107
|
+
- Prefer small, focused tests over broad integration tests.
|
|
108
|
+
- Keep the suite fast.
|
|
109
|
+
|
|
110
|
+
Recommended test loop:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
uv run --frozen pytest -k fetch -q
|
|
114
|
+
uv run --frozen pytest -k verify -q
|
|
115
|
+
uv run --frozen pytest
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Pull request guidelines
|
|
119
|
+
|
|
120
|
+
- Keep PR scope tight and purpose-specific.
|
|
121
|
+
- Include a short summary of what changed and why.
|
|
122
|
+
- Include validation evidence (tests/checks run).
|
|
123
|
+
- Do not commit large data files.
|
|
124
|
+
|
|
125
|
+
## Style and design principles
|
|
126
|
+
|
|
127
|
+
- Prefer plain Python and minimal dependencies.
|
|
128
|
+
- Avoid adding workflow orchestration tools (DVC, Snakemake, Nextflow, Docker) for core functionality.
|
|
129
|
+
- Preserve the project goal: "a tiny data catalog with fetch and verify."
|
ome_iris-0.0.3/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, the Regents of the University of Colorado
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|