genelastic 0.8.0__py3-none-any.whl → 0.9.0__py3-none-any.whl
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.
- genelastic/api/.env +4 -0
- genelastic/api/cli_start_api.py +2 -2
- genelastic/api/errors.py +52 -0
- genelastic/api/extends/example.py +0 -6
- genelastic/api/extends/example.yml +0 -20
- genelastic/api/routes.py +313 -181
- genelastic/api/server.py +8 -3
- genelastic/api/specification.yml +343 -181
- genelastic/common/__init__.py +0 -44
- genelastic/common/cli.py +48 -0
- genelastic/common/elastic.py +374 -46
- genelastic/common/exceptions.py +34 -2
- genelastic/common/server.py +9 -1
- genelastic/common/types.py +1 -14
- genelastic/import_data/__init__.py +0 -27
- genelastic/import_data/checker.py +99 -0
- genelastic/import_data/checker_observer.py +13 -0
- genelastic/import_data/cli/__init__.py +0 -0
- genelastic/import_data/cli/cli_check.py +136 -0
- genelastic/import_data/{cli_gen_data.py → cli/gen_data.py} +4 -4
- genelastic/import_data/cli/import_data.py +346 -0
- genelastic/import_data/cli/info.py +247 -0
- genelastic/import_data/{cli_integrity.py → cli/integrity.py} +29 -7
- genelastic/import_data/cli/validate.py +146 -0
- genelastic/import_data/collect.py +185 -0
- genelastic/import_data/constants.py +136 -11
- genelastic/import_data/import_bundle.py +102 -59
- genelastic/import_data/import_bundle_factory.py +70 -149
- genelastic/import_data/importers/__init__.py +0 -0
- genelastic/import_data/importers/importer_base.py +131 -0
- genelastic/import_data/importers/importer_factory.py +85 -0
- genelastic/import_data/importers/importer_types.py +223 -0
- genelastic/import_data/logger.py +2 -1
- genelastic/import_data/models/__init__.py +0 -0
- genelastic/import_data/models/analyses.py +178 -0
- genelastic/import_data/models/analysis.py +144 -0
- genelastic/import_data/models/data_file.py +110 -0
- genelastic/import_data/models/process.py +45 -0
- genelastic/import_data/models/processes.py +84 -0
- genelastic/import_data/models/tags.py +170 -0
- genelastic/import_data/models/unique_list.py +109 -0
- genelastic/import_data/models/validate.py +26 -0
- genelastic/import_data/patterns.py +90 -0
- genelastic/import_data/random_bundle.py +10 -8
- genelastic/import_data/resolve.py +157 -0
- genelastic/ui/.env +1 -0
- genelastic/ui/cli_start_ui.py +4 -2
- genelastic/ui/routes.py +289 -42
- genelastic/ui/static/cea-cnrgh.ico +0 -0
- genelastic/ui/static/cea.ico +0 -0
- genelastic/ui/static/layout.ico +0 -0
- genelastic/ui/static/novaseq6000.png +0 -0
- genelastic/ui/static/style.css +430 -0
- genelastic/ui/static/ui.js +458 -0
- genelastic/ui/templates/analyses.html +96 -9
- genelastic/ui/templates/analysis_detail.html +44 -0
- genelastic/ui/templates/bi_process_detail.html +129 -0
- genelastic/ui/templates/bi_processes.html +114 -9
- genelastic/ui/templates/explorer.html +356 -0
- genelastic/ui/templates/home.html +205 -2
- genelastic/ui/templates/layout.html +148 -29
- genelastic/ui/templates/version.html +19 -7
- genelastic/ui/templates/wet_process_detail.html +131 -0
- genelastic/ui/templates/wet_processes.html +114 -9
- genelastic-0.9.0.dist-info/METADATA +686 -0
- genelastic-0.9.0.dist-info/RECORD +76 -0
- genelastic-0.9.0.dist-info/WHEEL +4 -0
- genelastic-0.9.0.dist-info/entry_points.txt +10 -0
- genelastic-0.9.0.dist-info/licenses/LICENSE +519 -0
- genelastic/import_data/analyses.py +0 -69
- genelastic/import_data/analysis.py +0 -205
- genelastic/import_data/bi_process.py +0 -27
- genelastic/import_data/bi_processes.py +0 -49
- genelastic/import_data/cli_import.py +0 -379
- genelastic/import_data/cli_info.py +0 -256
- genelastic/import_data/cli_validate.py +0 -54
- genelastic/import_data/data_file.py +0 -87
- genelastic/import_data/filename_pattern.py +0 -57
- genelastic/import_data/tags.py +0 -123
- genelastic/import_data/wet_process.py +0 -28
- genelastic/import_data/wet_processes.py +0 -53
- genelastic-0.8.0.dist-info/METADATA +0 -109
- genelastic-0.8.0.dist-info/RECORD +0 -52
- genelastic-0.8.0.dist-info/WHEEL +0 -5
- genelastic-0.8.0.dist-info/entry_points.txt +0 -8
- genelastic-0.8.0.dist-info/top_level.txt +0 -1
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: genelastic
|
|
3
|
-
Version: 0.8.0
|
|
4
|
-
Summary: Generate and store genetic data into an Elasticsearch database.
|
|
5
|
-
Author: CNRGH
|
|
6
|
-
Author-email: Pierrick ROGER <pierrick.roger@cnrgh.fr>, Maxime BLANCHON <maxime.blanchon@cnrgh.fr>
|
|
7
|
-
License: CeCILL
|
|
8
|
-
Keywords: CNRGH,genelastic,generation,storage,elasticsearch,database
|
|
9
|
-
Classifier: Development Status :: 3 - Alpha
|
|
10
|
-
Classifier: Intended Audience :: Science/Research
|
|
11
|
-
Classifier: License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
-
Requires-Python: >=3.11
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: elasticsearch
|
|
16
|
-
Requires-Dist: PyVCF3
|
|
17
|
-
Requires-Dist: schema
|
|
18
|
-
Requires-Dist: PyYAML
|
|
19
|
-
Requires-Dist: biophony<1.4,>=1.3.0
|
|
20
|
-
Requires-Dist: colorlog
|
|
21
|
-
Provides-Extra: tests
|
|
22
|
-
Requires-Dist: pytest; extra == "tests"
|
|
23
|
-
Requires-Dist: mypy; extra == "tests"
|
|
24
|
-
Requires-Dist: coverage; extra == "tests"
|
|
25
|
-
Requires-Dist: yamllint; extra == "tests"
|
|
26
|
-
Requires-Dist: types-PyYAML; extra == "tests"
|
|
27
|
-
Requires-Dist: ruff<0.9,>=0.8.1; extra == "tests"
|
|
28
|
-
Requires-Dist: pre-commit<4.1,>=4.0.1; extra == "tests"
|
|
29
|
-
Requires-Dist: types-requests; extra == "tests"
|
|
30
|
-
Requires-Dist: ansible-core>=2.17.0; extra == "tests"
|
|
31
|
-
Requires-Dist: ansible-lint<25,>=24.12.2; extra == "tests"
|
|
32
|
-
Provides-Extra: docs
|
|
33
|
-
Requires-Dist: sphinx; extra == "docs"
|
|
34
|
-
Requires-Dist: sphinx-autoapi; extra == "docs"
|
|
35
|
-
Requires-Dist: furo; extra == "docs"
|
|
36
|
-
Provides-Extra: api
|
|
37
|
-
Requires-Dist: flask; extra == "api"
|
|
38
|
-
Requires-Dist: elasticsearch; extra == "api"
|
|
39
|
-
Requires-Dist: environs; extra == "api"
|
|
40
|
-
Requires-Dist: connexion[flask,swagger-ui,uvicorn]; extra == "api"
|
|
41
|
-
Requires-Dist: gunicorn; extra == "api"
|
|
42
|
-
Provides-Extra: ui
|
|
43
|
-
Requires-Dist: flask; extra == "ui"
|
|
44
|
-
Requires-Dist: requests; extra == "ui"
|
|
45
|
-
Requires-Dist: environs; extra == "ui"
|
|
46
|
-
Requires-Dist: uvicorn; extra == "ui"
|
|
47
|
-
Requires-Dist: asgiref; extra == "ui"
|
|
48
|
-
Requires-Dist: gunicorn; extra == "ui"
|
|
49
|
-
|
|
50
|
-
# genelastic
|
|
51
|
-
|
|
52
|
-
Storing of genetics data into an Elasticsearch database.
|
|
53
|
-
|
|
54
|
-
## Prerequisites
|
|
55
|
-
|
|
56
|
-
- `python` >= 3.11
|
|
57
|
-
- `make`
|
|
58
|
-
|
|
59
|
-
## Installation
|
|
60
|
-
|
|
61
|
-
To install dependencies, run the following command:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
python -m venv .venv
|
|
65
|
-
source .venv/bin/activate
|
|
66
|
-
make install.deps
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Configuration
|
|
70
|
-
|
|
71
|
-
To start the **API server**, the following environment variables should be defined:
|
|
72
|
-
|
|
73
|
-
- `GENAPI_ES_URL`: URL of the Elasticsearch server,
|
|
74
|
-
- `GENAPI_ES_ENCODED_API_KEY`: Encoded API key,
|
|
75
|
-
- `GENAPI_ES_INDEX_PREFIX`: Prefix to identify indices of interest,
|
|
76
|
-
- `GENAPI_ES_CERT_FP`: Certificate fingerprint of the Elasticsearch server.
|
|
77
|
-
|
|
78
|
-
Then, run the following command:
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
make start-api
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
To start the **UI server**, the following environment variables should be defined:
|
|
85
|
-
|
|
86
|
-
- `GENUI_API_URL`: URL of the API server.
|
|
87
|
-
|
|
88
|
-
Then, run the following command:
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
make start-ui
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Developers
|
|
95
|
-
|
|
96
|
-
This project uses [pre-commit](https://pre-commit.com/) to manage Git hooks scripts. To install project hooks, run:
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
pre-commit install
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
After that, each commit will succeed only if all hooks (defined in `.pre-commit-config.yaml`) pass.
|
|
103
|
-
|
|
104
|
-
If necessary (though not recommended),
|
|
105
|
-
you can skip these hooks by using the `--no-verify` / `-n` option when committing:
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
git commit -m "My commit message" --no-verify # This commit will not run installed hooks.
|
|
109
|
-
```
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
genelastic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
genelastic/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
genelastic/api/cli_start_api.py,sha256=7sGgEDUC8qBSWxZsiNw3xirU7f8KP0e1guGsX0V8Fno,551
|
|
4
|
-
genelastic/api/routes.py,sha256=O_bZGhKex04tWauE1fYRXjNmR2smIA4JZShwcakbJJA,6938
|
|
5
|
-
genelastic/api/server.py,sha256=VRMsI9BD0OY5H9dXx39f6M64qpBIptbkxMeATvII-AY,2360
|
|
6
|
-
genelastic/api/settings.py,sha256=dbKQib2QQisxvi4riwJ67iB9imu-x7ZXOcKjeXuO0rU,316
|
|
7
|
-
genelastic/api/specification.yml,sha256=ZbjPxk5aud76yeVyqBe410g4hQJDeZImqswa1EMtD00,10116
|
|
8
|
-
genelastic/api/extends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
genelastic/api/extends/example.py,sha256=5vOw2ToYWzOj-vYkOLbqoa1MCnXIvKuv7xW6qBQ-eHU,164
|
|
10
|
-
genelastic/api/extends/example.yml,sha256=oStFpgLIOAgs01PCJWZEG1sCunAKAxLa4gNoopUy0Ko,543
|
|
11
|
-
genelastic/common/__init__.py,sha256=Rg9BZj8UJh24cRU7xvL67Ju3vLSpCEdEnZTEMrOqsx4,1012
|
|
12
|
-
genelastic/common/cli.py,sha256=uXd2alWple3lLi6nyvtFUH86qhlqUljzY8ry8rvajVI,3253
|
|
13
|
-
genelastic/common/elastic.py,sha256=0XpECyNMC9RzQN1X7u-0IXmHp_KbSjkmGizArLjxTS0,7260
|
|
14
|
-
genelastic/common/exceptions.py,sha256=l4sQBW91OuzV2R7DhrVzEMDrfsyKM-iVYufp2Cv6rR8,159
|
|
15
|
-
genelastic/common/server.py,sha256=o1AbarQ7JKEeYB5ZcvdZUdInSquLsq5dpFL--Jo7P5k,1401
|
|
16
|
-
genelastic/common/types.py,sha256=JeQ6XzIemIF1QgvprGA0UxFHyJSKjEkgMaIumOvpbNg,1013
|
|
17
|
-
genelastic/import_data/__init__.py,sha256=Ir_fI0BrdC44JiiQaWm29_SyHbDe2CQsElKHgQxELCI,602
|
|
18
|
-
genelastic/import_data/analyses.py,sha256=yA4DKtXIUR7JTCp7PEndEjI6FOooW-6lR9vkqTZ0Izs,1861
|
|
19
|
-
genelastic/import_data/analysis.py,sha256=MuHYfIWFFwHfCp9tDkWTtVKkg5AasASwrdOUZ177EeM,7799
|
|
20
|
-
genelastic/import_data/bi_process.py,sha256=CBBGx6oO7KYzUypXzpaopGY4J_nAKcDi2UPJe7B63Bs,650
|
|
21
|
-
genelastic/import_data/bi_processes.py,sha256=Kv93NOntycEiB_BldoMxHNfM6sJvgHQvVqrUSSEb_VA,1365
|
|
22
|
-
genelastic/import_data/cli_gen_data.py,sha256=teK5G7mcx6Y5Yi0idOdRyrnBNe1emKKLQKRSBElQQbg,3979
|
|
23
|
-
genelastic/import_data/cli_import.py,sha256=Ej-EqaBUNoVHGCefzLsmFbKaXNTaOBs8xJsEdRhbbLo,11622
|
|
24
|
-
genelastic/import_data/cli_info.py,sha256=ue0Pf5cJvrmJ_bBZKG2CXkXDsQO3zQ6CIXhtUwpqXhU,7301
|
|
25
|
-
genelastic/import_data/cli_integrity.py,sha256=lOMA-I1iPXiJD4X80Xg91NKO-fa3Su0uSqBUtdMKU4Q,12282
|
|
26
|
-
genelastic/import_data/cli_validate.py,sha256=AcirmmJQWFDrpiPUNTYnpFjSnvD6YyStYJHIbfi1Ly0,1515
|
|
27
|
-
genelastic/import_data/constants.py,sha256=AKYXdDqWkDzvt-laZqbWlN6C9IoQSSqD70mpSWMU6NQ,760
|
|
28
|
-
genelastic/import_data/data_file.py,sha256=P5oe_yCVQQAALetrUs93Kl1XuqoLQS0iMkeEqPKaY7g,2661
|
|
29
|
-
genelastic/import_data/filename_pattern.py,sha256=3QXOF5ZG9vFA8KG7XXucpA7EIN3dqZmmtXnuFbh0bUQ,1709
|
|
30
|
-
genelastic/import_data/import_bundle.py,sha256=7W0hKwoxwGDtWEGV_NQvyesiNx1lCMpSaqKohpTLmtY,5030
|
|
31
|
-
genelastic/import_data/import_bundle_factory.py,sha256=COdMLTTrx_Y4svZAHVJ5Y0rHM4eQj027rFJiQ66u36M,9546
|
|
32
|
-
genelastic/import_data/logger.py,sha256=X12LBoNTmV6iR8vEPyYIMYSUeQ3LpTvDO69tQYDiOuA,1915
|
|
33
|
-
genelastic/import_data/random_bundle.py,sha256=IR3XoKwKEfWAow9ZH8lb-vmCKvtnU6M-35de4JPiIgg,14811
|
|
34
|
-
genelastic/import_data/tags.py,sha256=N6_dGYqQy2QTN6AEzoEXPxRFmtq3GgTfpId-RjBstJY,4195
|
|
35
|
-
genelastic/import_data/wet_process.py,sha256=2SgN1yZFQA8Hb4ZNNeHpUhmeWlJDApqdjc_oq6ZF0jA,694
|
|
36
|
-
genelastic/import_data/wet_processes.py,sha256=mVUfFG0QUboTEoD3c-Hd1Z2_Tvid_yrKJG_XdC4n6oA,1535
|
|
37
|
-
genelastic/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
-
genelastic/ui/cli_start_ui.py,sha256=4on9dTtBJ5SeD78kOWdOaCcKC0YDe201d-t9tjocYzw,549
|
|
39
|
-
genelastic/ui/routes.py,sha256=OHwWv80aA75Gk0q8RwzSv-ayYZNEeI6QYXJ6CzzHuy0,2852
|
|
40
|
-
genelastic/ui/server.py,sha256=MY3Hzt5BleeeG7n72gFjIhu3lYytST7ZSROBAcrjlDw,347
|
|
41
|
-
genelastic/ui/settings.py,sha256=5Xc9bxm42bwkgcRSb_klD0bCqhP4DrfMs4La63fCf0Q,164
|
|
42
|
-
genelastic/ui/templates/analyses.html,sha256=dhdTGQeFuJPjQX0Qh31K0hp5wrU54F3D4hLWlgPLW-w,247
|
|
43
|
-
genelastic/ui/templates/bi_processes.html,sha256=Z6jgXymgKjn1cOL9GccCcKWJPlr-28AzNmlcmZ62lXc,265
|
|
44
|
-
genelastic/ui/templates/home.html,sha256=rNxZFpcY6bXANEDjfs7-lRghI0UfHzaBUHi3r91knns,99
|
|
45
|
-
genelastic/ui/templates/layout.html,sha256=B5a2wzvvPD0muTA4ooStT8kvi8IeCl1nZFV9WAyeqdc,1023
|
|
46
|
-
genelastic/ui/templates/version.html,sha256=v2XxGSPlwWERr-o1a-pdIstR5TllCmGROXy5h2ArafI,286
|
|
47
|
-
genelastic/ui/templates/wet_processes.html,sha256=jM0X08_zk-a8insJDx8bnHKBLu5Xqa6D2-SauYwqEcI,270
|
|
48
|
-
genelastic-0.8.0.dist-info/METADATA,sha256=kK2kz13jf_cWKCxn1wv8c1Ta_ZP8pZsocaIZ7BcDhMY,3286
|
|
49
|
-
genelastic-0.8.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
50
|
-
genelastic-0.8.0.dist-info/entry_points.txt,sha256=IxtkWdVpPE8PnjblebCvKrdw4FnTKmvcHzNJfchkQ-c,381
|
|
51
|
-
genelastic-0.8.0.dist-info/top_level.txt,sha256=ra4gCsuKH1d0sXygcnwD_u597ir6bYYxWTS7dkA6vdM,11
|
|
52
|
-
genelastic-0.8.0.dist-info/RECORD,,
|
genelastic-0.8.0.dist-info/WHEEL
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
[console_scripts]
|
|
2
|
-
gnl-data = genelastic.import_data.cli_gen_data:main
|
|
3
|
-
gnl-import = genelastic.import_data.cli_import:main
|
|
4
|
-
gnl-info = genelastic.import_data.cli_info:main
|
|
5
|
-
gnl-integrity = genelastic.import_data.cli_integrity:main
|
|
6
|
-
gnl-start-api = genelastic.api.cli_start_api:main
|
|
7
|
-
gnl-start-ui = genelastic.ui.cli_start_ui:main
|
|
8
|
-
gnl-validate = genelastic.import_data.cli_validate:main
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
genelastic
|