seroverse 0.0.1__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.
Files changed (72) hide show
  1. seroverse-0.0.1/.github/workflows/ci.yml +94 -0
  2. seroverse-0.0.1/.github/workflows/docs.yml +81 -0
  3. seroverse-0.0.1/.github/workflows/release.yml +88 -0
  4. seroverse-0.0.1/.gitignore +221 -0
  5. seroverse-0.0.1/.pre-commit-config.yaml +23 -0
  6. seroverse-0.0.1/.python-version +1 -0
  7. seroverse-0.0.1/CHANGELOG.md +23 -0
  8. seroverse-0.0.1/CITATION.cff +20 -0
  9. seroverse-0.0.1/CODE_OF_CONDUCT.md +128 -0
  10. seroverse-0.0.1/CONTRIBUTING.md +74 -0
  11. seroverse-0.0.1/LICENSE +674 -0
  12. seroverse-0.0.1/PKG-INFO +715 -0
  13. seroverse-0.0.1/README.md +2 -0
  14. seroverse-0.0.1/docs/architecture.md +121 -0
  15. seroverse-0.0.1/docs/assets/favicon-kbank.svg +8 -0
  16. seroverse-0.0.1/docs/assets/favicon-seroepi.svg +11 -0
  17. seroverse-0.0.1/docs/assets/favicon-serogen.svg +12 -0
  18. seroverse-0.0.1/docs/assets/favicon-seroref.svg +8 -0
  19. seroverse-0.0.1/docs/assets/favicon.svg +11 -0
  20. seroverse-0.0.1/docs/citation.md +39 -0
  21. seroverse-0.0.1/docs/conduct.md +13 -0
  22. seroverse-0.0.1/docs/contributing.md +13 -0
  23. seroverse-0.0.1/docs/index.md +396 -0
  24. seroverse-0.0.1/docs/overrides/main.html +220 -0
  25. seroverse-0.0.1/docs/overrides/partials/comments.html +59 -0
  26. seroverse-0.0.1/docs/reference/client.md +49 -0
  27. seroverse-0.0.1/docs/reference/core.md +83 -0
  28. seroverse-0.0.1/docs/reference/index.md +31 -0
  29. seroverse-0.0.1/docs/releases.md +14 -0
  30. seroverse-0.0.1/docs/stylesheets/extra.css +782 -0
  31. seroverse-0.0.1/pyproject.toml +146 -0
  32. seroverse-0.0.1/scripts/fetch_announcement.py +98 -0
  33. seroverse-0.0.1/scripts/sync_theme.py +101 -0
  34. seroverse-0.0.1/src/seroverse/__init__.py +0 -0
  35. seroverse-0.0.1/src/seroverse/_version.py +24 -0
  36. seroverse-0.0.1/src/seroverse/client/__init__.py +0 -0
  37. seroverse-0.0.1/src/seroverse/client/base.py +287 -0
  38. seroverse-0.0.1/src/seroverse/client/dsmz.py +234 -0
  39. seroverse-0.0.1/src/seroverse/client/ena.py +93 -0
  40. seroverse-0.0.1/src/seroverse/client/ncbi.py +329 -0
  41. seroverse-0.0.1/src/seroverse/client/pathogenwatch.py +798 -0
  42. seroverse-0.0.1/src/seroverse/core/__init__.py +0 -0
  43. seroverse-0.0.1/src/seroverse/core/collections.py +280 -0
  44. seroverse-0.0.1/src/seroverse/core/genome.py +135 -0
  45. seroverse-0.0.1/src/seroverse/core/graph/__init__.py +0 -0
  46. seroverse-0.0.1/src/seroverse/core/graph/align.py +328 -0
  47. seroverse-0.0.1/src/seroverse/core/graph/arborescence.py +595 -0
  48. seroverse-0.0.1/src/seroverse/core/graph/csr.py +1115 -0
  49. seroverse-0.0.1/src/seroverse/core/graph/gnn.py +767 -0
  50. seroverse-0.0.1/src/seroverse/core/graph/layout.py +407 -0
  51. seroverse-0.0.1/src/seroverse/core/graph/models.py +1029 -0
  52. seroverse-0.0.1/src/seroverse/core/interval.py +207 -0
  53. seroverse-0.0.1/src/seroverse/core/io/__init__.py +0 -0
  54. seroverse-0.0.1/src/seroverse/core/io/fasta.py +191 -0
  55. seroverse-0.0.1/src/seroverse/core/seq/__init__.py +0 -0
  56. seroverse-0.0.1/src/seroverse/core/seq/alphabet.py +922 -0
  57. seroverse-0.0.1/src/seroverse/core/seq/clustering.py +1295 -0
  58. seroverse-0.0.1/src/seroverse/core/seq/kmers.py +1387 -0
  59. seroverse-0.0.1/src/seroverse/core/seq/pairwise.py +580 -0
  60. seroverse-0.0.1/src/seroverse/core/seq/seq.py +663 -0
  61. seroverse-0.0.1/src/seroverse/progress.py +203 -0
  62. seroverse-0.0.1/src/seroverse/py.typed +0 -0
  63. seroverse-0.0.1/tests/conftest.py +73 -0
  64. seroverse-0.0.1/tests/data/PAO1.fna.zst +0 -0
  65. seroverse-0.0.1/tests/data/SGH10_chromosome.fna.zst +0 -0
  66. seroverse-0.0.1/tests/data/STMC125.fna.zst +0 -0
  67. seroverse-0.0.1/tests/test_client.py +102 -0
  68. seroverse-0.0.1/tests/test_fasta.py +76 -0
  69. seroverse-0.0.1/tests/test_genome.py +54 -0
  70. seroverse-0.0.1/tests/test_graph.py +312 -0
  71. seroverse-0.0.1/uv.lock +2494 -0
  72. seroverse-0.0.1/zensical.toml +188 -0
@@ -0,0 +1,94 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+ pull_request:
7
+ branches: [main, master]
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ concurrency:
14
+ group: ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
16
+
17
+ env:
18
+ FORCE_COLOR: "1"
19
+ UV_CACHE_DIR: /tmp/.uv-cache
20
+ NUMBA_CACHE_DIR: ${{ github.workspace }}/.numba_cache
21
+
22
+ jobs:
23
+ quality:
24
+ name: Lint & Typecheck
25
+ runs-on: ubuntu-latest
26
+ timeout-minutes: 10
27
+ steps:
28
+ - name: Checkout repository
29
+ uses: actions/checkout@v4
30
+
31
+ - name: Set up uv
32
+ uses: astral-sh/setup-uv@v5
33
+ with:
34
+ version: "latest"
35
+ python-version: "3.14"
36
+ enable-cache: true
37
+ cache-dependency-glob: "uv.lock"
38
+
39
+ - name: Install Python 3.14 & dependencies
40
+ run: uv sync --frozen --python 3.14 --group lint --group typing
41
+
42
+ - name: Run Ruff linter
43
+ run: uv run --no-sync ruff check --output-format=github .
44
+
45
+ - name: Check Ruff formatting
46
+ run: uv run --no-sync ruff format --check .
47
+
48
+ - name: Run ty static type checker
49
+ run: uv run --no-sync ty check src/
50
+
51
+ test:
52
+ name: Test (${{ matrix.os }}, py${{ matrix.python-version }})
53
+ runs-on: ${{ matrix.os }}
54
+ timeout-minutes: 20
55
+ strategy:
56
+ fail-fast: false
57
+ matrix:
58
+ os: [ubuntu-latest, macos-latest]
59
+ python-version: ["3.14"]
60
+ steps:
61
+ - name: Checkout repository
62
+ uses: actions/checkout@v4
63
+
64
+ - name: Set up uv
65
+ uses: astral-sh/setup-uv@v5
66
+ with:
67
+ version: "latest"
68
+ python-version: ${{ matrix.python-version }}
69
+ enable-cache: true
70
+ cache-dependency-glob: "uv.lock"
71
+
72
+ - name: Restore Numba JIT cache
73
+ uses: actions/cache@v4
74
+ with:
75
+ path: ${{ env.NUMBA_CACHE_DIR }}
76
+ key: numba-jit-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('src/**/*.py') }}
77
+ restore-keys: |
78
+ numba-jit-${{ runner.os }}-py${{ matrix.python-version }}-
79
+
80
+ - name: Install Python ${{ matrix.python-version }} & test dependencies
81
+ run: uv sync --frozen --python ${{ matrix.python-version }} --group test
82
+
83
+ - name: Run pytest suite with coverage
84
+ run: |
85
+ uv run --no-sync pytest \
86
+ -o addopts="-ra --tb=short --cov=src/seroverse --cov-report=term-missing --cov-report=xml --junitxml=pytest-report.xml"
87
+
88
+ - name: Publish test summary
89
+ if: always()
90
+ run: |
91
+ echo "### 🧪 Test Suite Results (${{ matrix.os }} / Python ${{ matrix.python-version }})" >> $GITHUB_STEP_SUMMARY
92
+ echo "" >> $GITHUB_STEP_SUMMARY
93
+ echo "- **Runner**: \`${{ runner.os }} (${{ runner.arch }})\`" >> $GITHUB_STEP_SUMMARY
94
+ echo "- **Numba Cache**: \`${{ env.NUMBA_CACHE_DIR }}\`" >> $GITHUB_STEP_SUMMARY
@@ -0,0 +1,81 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+ pull_request:
7
+ branches: [main, master]
8
+ paths:
9
+ - "docs/**"
10
+ - "scripts/**"
11
+ - "src/**"
12
+ - "zensical.toml"
13
+ - "CODE_OF_CONDUCT.md"
14
+ - "CONTRIBUTING.md"
15
+ - "CHANGELOG.md"
16
+ - "pyproject.toml"
17
+ - "uv.lock"
18
+ - ".python-version"
19
+ - ".github/workflows/docs.yml"
20
+ workflow_dispatch:
21
+
22
+ permissions:
23
+ contents: read
24
+ pages: write
25
+ id-token: write
26
+
27
+ concurrency:
28
+ group: pages-${{ github.ref }}
29
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
30
+
31
+ jobs:
32
+ build:
33
+ name: Build Zensical Site
34
+ runs-on: ubuntu-latest
35
+ timeout-minutes: 10
36
+ steps:
37
+ - name: Checkout repository
38
+ uses: actions/checkout@v4
39
+ with:
40
+ fetch-depth: 0
41
+
42
+ - name: Set up uv
43
+ uses: astral-sh/setup-uv@v5
44
+ with:
45
+ version: "latest"
46
+ python-version: "3.14"
47
+ enable-cache: true
48
+ cache-dependency-glob: "uv.lock"
49
+
50
+ - name: Install documentation dependencies
51
+ run: uv sync --python 3.14 --group docs
52
+
53
+ - name: Fetch latest announcement from SeroVerse/.github
54
+ env:
55
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56
+ run: uv run --no-sync python scripts/fetch_announcement.py
57
+
58
+ - name: Build documentation with Zensical
59
+ run: uv run --no-sync zensical build --clean --strict
60
+
61
+ - name: Upload Pages artifact
62
+ if: github.event_name != 'pull_request'
63
+ uses: actions/upload-pages-artifact@v3
64
+ with:
65
+ path: site
66
+
67
+ deploy:
68
+ name: Deploy to GitHub Pages
69
+ if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
70
+ needs: build
71
+ runs-on: ubuntu-latest
72
+ environment:
73
+ name: github-pages
74
+ url: ${{ steps.deployment.outputs.page_url }}
75
+ steps:
76
+ - name: Configure GitHub Pages
77
+ uses: actions/configure-pages@v5
78
+
79
+ - name: Deploy to GitHub Pages
80
+ id: deployment
81
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,88 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+ inputs:
9
+ dry_run:
10
+ description: "Build & verify distributions without publishing to PyPI"
11
+ required: false
12
+ default: true
13
+ type: boolean
14
+
15
+ permissions:
16
+ contents: write
17
+ id-token: write
18
+
19
+ jobs:
20
+ build:
21
+ name: Build Distribution Artifacts
22
+ runs-on: ubuntu-latest
23
+ timeout-minutes: 10
24
+ steps:
25
+ - name: Checkout repository with full history for hatch-vcs
26
+ uses: actions/checkout@v4
27
+ with:
28
+ fetch-depth: 0
29
+
30
+ - name: Set up uv
31
+ uses: astral-sh/setup-uv@v5
32
+ with:
33
+ version: "latest"
34
+ python-version: "3.14"
35
+ enable-cache: true
36
+ cache-dependency-glob: "uv.lock"
37
+
38
+ - name: Build wheel and sdist
39
+ run: uv build
40
+
41
+ - name: Smoke-test built wheel in isolated environment
42
+ run: |
43
+ uv run --isolated --no-project --with dist/*.whl python -c "
44
+ import seroverse
45
+ "
46
+
47
+ - name: Upload distribution artifacts
48
+ uses: actions/upload-artifact@v4
49
+ with:
50
+ name: dist
51
+ path: dist/
52
+ retention-days: 7
53
+
54
+ publish-pypi:
55
+ name: Publish to PyPI (Trusted Publishing)
56
+ if: startsWith(github.ref, 'refs/tags/v') && github.event.inputs.dry_run != 'true'
57
+ needs: build
58
+ runs-on: ubuntu-latest
59
+ environment:
60
+ name: pypi
61
+ url: https://pypi.org/p/seroverse
62
+ steps:
63
+ - name: Download distribution artifacts
64
+ uses: actions/download-artifact@v4
65
+ with:
66
+ name: dist
67
+ path: dist/
68
+
69
+ - name: Publish package distributions to PyPI
70
+ uses: pypa/gh-action-pypi-publish@release/v1
71
+
72
+ github-release:
73
+ name: Create GitHub Release
74
+ if: startsWith(github.ref, 'refs/tags/v') && github.event.inputs.dry_run != 'true'
75
+ needs: [build, publish-pypi]
76
+ runs-on: ubuntu-latest
77
+ steps:
78
+ - name: Download distribution artifacts
79
+ uses: actions/download-artifact@v4
80
+ with:
81
+ name: dist
82
+ path: dist/
83
+
84
+ - name: Create GitHub Release
85
+ uses: softprops/action-gh-release@v2
86
+ with:
87
+ files: dist/*
88
+ generate_release_notes: true
@@ -0,0 +1,221 @@
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
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ # Pipfile.lock
97
+
98
+ # uv
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ # poetry.lock
110
+ # poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ # pdm.lock
117
+ # pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ # pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi/*
127
+ !.pixi/config.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule*
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Spyder project settings
163
+ .spyderproject
164
+ .spyproject
165
+
166
+ # Rope project settings
167
+ .ropeproject
168
+
169
+ # mkdocs/Zensical documentation
170
+ /site
171
+ docs/overrides/announcement.html
172
+
173
+ # mypy
174
+ .mypy_cache/
175
+ .dmypy.json
176
+ dmypy.json
177
+
178
+ # Pyre type checker
179
+ .pyre/
180
+
181
+ # pytype static type analyzer
182
+ .pytype/
183
+
184
+ # Cython debug symbols
185
+ cython_debug/
186
+
187
+ # PyCharm
188
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
189
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
190
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
191
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
192
+ .idea/
193
+
194
+ # Abstra
195
+ # Abstra is an AI-powered process automation framework.
196
+ # Ignore directories containing user credentials, local state, and settings.
197
+ # Learn more at https://abstra.io/docs
198
+ .abstra/
199
+
200
+ # Visual Studio Code
201
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
202
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
203
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
204
+ # could uncomment the following to ignore the entire vscode folder
205
+ # .vscode/
206
+ # Temporary file for partial code execution
207
+ tempCodeRunnerFile.py
208
+
209
+ # Ruff stuff:
210
+ .ruff_cache/
211
+
212
+ # PyPI configuration file
213
+ .pypirc
214
+
215
+ # Marimo
216
+ marimo/_static/
217
+ marimo/_lsp/
218
+ __marimo__/
219
+
220
+ # Streamlit
221
+ .streamlit/secrets.toml
@@ -0,0 +1,23 @@
1
+ repos:
2
+ - repo: local
3
+ hooks:
4
+ - id: ruff-check
5
+ name: ruff check
6
+ entry: uv run --no-sync ruff check --fix
7
+ language: system
8
+ types: [python]
9
+ require_serial: true
10
+
11
+ - id: ruff-format
12
+ name: ruff format
13
+ entry: uv run --no-sync ruff format
14
+ language: system
15
+ types: [python]
16
+ require_serial: true
17
+
18
+ - id: ty
19
+ name: ty check
20
+ entry: uv run --no-sync ty check src/
21
+ language: system
22
+ types: [python]
23
+ pass_filenames: false
@@ -0,0 +1 @@
1
+ 3.14
@@ -0,0 +1,23 @@
1
+ # Release Notes
2
+
3
+ All notable changes to **`SeroVerse`** and the SeroVerse ecosystem are documented on this page. This project adheres to [Semantic Versioning](https://semver.org/) and the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) specification.
4
+
5
+ ---
6
+
7
+ ## [Unreleased]
8
+
9
+ ### Added
10
+
11
+ - **Structure-of-Arrays & Graph Core (`seroverse.core`)**:
12
+ - `BatchedContainer` and `RaggedArrayContainer` zero-copy memory protocols (`seroverse.core.collections`).
13
+ - `Intervals` (`seroverse.core.interval`) and `GenomeAssembly` (`seroverse.core.genome`, `seroverse.core.io.fasta`).
14
+ - 2-bit DNA/RNA (`Alphabet.DNA`) and `MMSEQS12` reduced amino-acid alphabets with ragged translation across NCBI translation tables (`seroverse.core.seq.alphabet`).
15
+ - `RandstrobeIndex` ($O(1)$ strobemer seeding) and `FracMinHashIndex` k-mer indices (`seroverse.core.seq.kmers`).
16
+ - Vectorized unbanded/banded Smith-Waterman-Gotoh local and semi-global alignment (`PairwiseAligner` in `seroverse.core.seq.pairwise`).
17
+ - Hybrid sequence + motif-rescued protein clustering (`Clusterer` supporting greedy incremental and sparse Markov Clustering `MCL` modes in `seroverse.core.seq.clustering`).
18
+ - Packed CSR directed multigraphs (`Graph`, `Graphs`), Consensus Pan-Graph compression (`GraphBatch.as_pan_graph`), Hungarian + L2-QP `GraphAligner`, branch-and-bound `maximum_spanning_arborescence`, `RelationalMPNN`, and Fruchterman-Reingold `LayoutEngine` (`seroverse.core.graph`).
19
+ - **Async Repository & Metadata Clients (`seroverse.client`)**:
20
+ - Async token-bucket rate-limited HTTP client (`Client`) and `msgspec` cassette serialization (`cassette_context`, `encode_msgpack`, `decode_msgpack`, `load_msgpack`, `save_msgpack` in `seroverse.client.base`).
21
+ - `NCBIClient` (`seroverse.client.ncbi`), `ENAClient` (`seroverse.client.ena`), `BacDiveClient` & `StrainInfoClient` (`seroverse.client.dsmz`), and `PathogenwatchBaseClient` (`seroverse.client.pathogenwatch`).
22
+ - **Unified Ecosystem Documentation**:
23
+ - Unified Zensical documentation hub for `SeroVerse`, `SeroRef`, `KBank`, `SeroGen`, and `SeroEpi` with organization-wide GitHub Discussions announcements and Giscus comments.
@@ -0,0 +1,20 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use SeroVerse in your work, please cite it using the following metadata."
3
+ title: "SeroVerse: Core data structures, graph algorithms, and async database clients for bacterial genomics, glycomics, and sero-epidemiology"
4
+ type: software
5
+ authors:
6
+ - family-names: "Stanton"
7
+ given-names: "Thomas David"
8
+ email: "tomdstanton@gmail.com"
9
+ orcid: "https://orcid.org/0000-0002-8898-4432"
10
+ affiliation: "Monash University"
11
+ repository-code: "https://github.com/SeroVerse/SeroVerse"
12
+ url: "https://seroverse.github.io/SeroVerse/"
13
+ license: "GPL-3.0-only"
14
+ keywords:
15
+ - bioinformatics
16
+ - genomics
17
+ - glycomics
18
+ - epidemiology
19
+ - serotyping
20
+ - microbiology
@@ -0,0 +1,128 @@
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, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ 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
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of 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
35
+ address, 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 e-mail 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 the community leaders responsible for enforcement at
63
+ tomdstanton@gmail.com.
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
86
+ of 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
93
+ permanent 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
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.