ghga-transpiler 1.2.0__py3-none-any.whl → 2.0.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.
- ghga_transpiler/__init__.py +10 -1
- ghga_transpiler/cli.py +21 -6
- ghga_transpiler/config/config.py +17 -18
- ghga_transpiler/core.py +21 -11
- ghga_transpiler/io.py +4 -5
- ghga_transpiler/transformations.py +22 -1
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/METADATA +18 -15
- ghga_transpiler-2.0.0.dist-info/RECORD +16 -0
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/WHEEL +1 -1
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/top_level.txt +0 -2
- ghga_transpiler/configs/0.10.0.yaml +0 -109
- ghga_transpiler/configs/1.0.0.yaml +0 -109
- ghga_transpiler/configs/1.1.0.yaml +0 -109
- ghga_transpiler-1.2.0.dist-info/RECORD +0 -34
- scripts/__init__.py +0 -17
- scripts/get_package_name.py +0 -46
- scripts/license_checker.py +0 -562
- scripts/script_utils/__init__.py +0 -17
- scripts/script_utils/cli.py +0 -36
- scripts/update_all.py +0 -51
- scripts/update_config_docs.py +0 -158
- scripts/update_readme.py +0 -221
- scripts/update_template_files.py +0 -250
- tests/fixtures/__init__.py +0 -16
- tests/fixtures/configs/0.0.0.yaml +0 -16
- tests/fixtures/configs/__init__.py +0 -15
- tests/fixtures/test_data_objects/__init__.py +0 -16
- tests/fixtures/test_data_objects/conversion_data.py +0 -43
- tests/fixtures/utils.py +0 -33
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/LICENSE +0 -0
- {ghga_transpiler-1.2.0.dist-info → ghga_transpiler-2.0.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
ghga_metadata_version: 1.1.0
|
|
2
|
-
default_settings:
|
|
3
|
-
header_row: 1
|
|
4
|
-
start_row: 7
|
|
5
|
-
start_column: 1
|
|
6
|
-
transformations:
|
|
7
|
-
attributes: !!python/object/apply:ghga_transpiler.transformations.to_attributes []
|
|
8
|
-
worksheets:
|
|
9
|
-
- settings:
|
|
10
|
-
end_column: 6
|
|
11
|
-
name: analyses
|
|
12
|
-
sheet_name: Analysis
|
|
13
|
-
- settings:
|
|
14
|
-
end_column: 9
|
|
15
|
-
name: analysis_process_output_files
|
|
16
|
-
sheet_name: AnalysisProcessOutputFile
|
|
17
|
-
- settings:
|
|
18
|
-
end_column: 5
|
|
19
|
-
name: analysis_processes
|
|
20
|
-
transformations:
|
|
21
|
-
study_input_files: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
22
|
-
sample_input_files: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
23
|
-
sequencing_process_input_files: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
24
|
-
sheet_name: AnalysisProcess
|
|
25
|
-
- settings:
|
|
26
|
-
end_column: 10
|
|
27
|
-
name: biospecimens
|
|
28
|
-
sheet_name: Biospecimen
|
|
29
|
-
- settings:
|
|
30
|
-
end_column: 9
|
|
31
|
-
name: conditions
|
|
32
|
-
sheet_name: Condition
|
|
33
|
-
- settings:
|
|
34
|
-
end_column: 3
|
|
35
|
-
name: data_access_committees
|
|
36
|
-
sheet_name: DataAccessCommittee
|
|
37
|
-
- settings:
|
|
38
|
-
end_column: 8
|
|
39
|
-
name: data_access_policies
|
|
40
|
-
transformations:
|
|
41
|
-
data_use_modifiers: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
42
|
-
sheet_name: DataAccessPolicy
|
|
43
|
-
- settings:
|
|
44
|
-
end_column: 5
|
|
45
|
-
name: datasets
|
|
46
|
-
transformations:
|
|
47
|
-
types: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
48
|
-
sheet_name: Dataset
|
|
49
|
-
- settings:
|
|
50
|
-
end_column: 6
|
|
51
|
-
name: individuals
|
|
52
|
-
transformations:
|
|
53
|
-
ancestries: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
54
|
-
phenotypic_features: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
55
|
-
sheet_name: Individual
|
|
56
|
-
- settings:
|
|
57
|
-
end_column: 14
|
|
58
|
-
name: library_preparation_protocols
|
|
59
|
-
transformations:
|
|
60
|
-
target_regions: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
61
|
-
attributes: !!python/object/apply:ghga_transpiler.transformations.to_attributes []
|
|
62
|
-
sheet_name: LibraryPreparationProtocol
|
|
63
|
-
- settings:
|
|
64
|
-
end_column: 9
|
|
65
|
-
name: publications
|
|
66
|
-
transformations:
|
|
67
|
-
xref: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
68
|
-
sheet_name: Publication
|
|
69
|
-
- settings:
|
|
70
|
-
end_column: 9
|
|
71
|
-
name: sample_files
|
|
72
|
-
sheet_name: SampleFile
|
|
73
|
-
- settings:
|
|
74
|
-
end_column: 10
|
|
75
|
-
name: samples
|
|
76
|
-
transformations:
|
|
77
|
-
xref: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
78
|
-
sheet_name: Sample
|
|
79
|
-
- settings:
|
|
80
|
-
end_column: 7
|
|
81
|
-
name: sequencing_experiments
|
|
82
|
-
sheet_name: SequencingExperiment
|
|
83
|
-
- settings:
|
|
84
|
-
end_column: 9
|
|
85
|
-
name: sequencing_process_files
|
|
86
|
-
sheet_name: SequencingProcessFile
|
|
87
|
-
- settings:
|
|
88
|
-
end_column: 12
|
|
89
|
-
name: sequencing_processes
|
|
90
|
-
sheet_name: SequencingProcess
|
|
91
|
-
- settings:
|
|
92
|
-
end_column: 17
|
|
93
|
-
name: sequencing_protocols
|
|
94
|
-
sheet_name: SequencingProtocol
|
|
95
|
-
- settings:
|
|
96
|
-
end_column: 6
|
|
97
|
-
name: studies
|
|
98
|
-
transformations:
|
|
99
|
-
affiliations: !!python/object/apply:ghga_transpiler.transformations.to_list []
|
|
100
|
-
attributes: !!python/object/apply:ghga_transpiler.transformations.to_attributes []
|
|
101
|
-
sheet_name: Study
|
|
102
|
-
- settings:
|
|
103
|
-
end_column: 9
|
|
104
|
-
name: study_files
|
|
105
|
-
sheet_name: StudyFile
|
|
106
|
-
- settings:
|
|
107
|
-
end_column: 4
|
|
108
|
-
name: trios
|
|
109
|
-
sheet_name: Trio
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
ghga_transpiler/__init__.py,sha256=Udnso0Hk9DsAOwIF2HgV2ZRm4EosnNMIsUhMwBBLqCk,771
|
|
2
|
-
ghga_transpiler/__main__.py,sha256=NgajDXhJ36WPA6MR5Rb44Qqmogie16_kr0HRL-umGxc,848
|
|
3
|
-
ghga_transpiler/cli.py,sha256=fqZvP1XGwgO5FJ1fV9r8cFDQ_0PtpXld8QXtYipPyiM,2145
|
|
4
|
-
ghga_transpiler/core.py,sha256=7_wtwRBOgPYtt2mI7gW7yBZM8lTdRgrVEx4OG61xmg0,5005
|
|
5
|
-
ghga_transpiler/io.py,sha256=RY_aclqD5eTaASYIEayn8r-KQ9Avh4NJWvicyuhM-rg,1803
|
|
6
|
-
ghga_transpiler/transformations.py,sha256=qI6vKq3gJPPBE2msUm-DMdVNeLrfJIkbga8l45tS7ek,1567
|
|
7
|
-
ghga_transpiler/config/__init__.py,sha256=IKlzAd82ta9a0_aEps3f4I3GLRSJeyV1QImFcHvBLE0,818
|
|
8
|
-
ghga_transpiler/config/config.py,sha256=egao2aF7iD5wAT83UUlek-g3D3R1CIG8tiyLlhcnEAQ,3825
|
|
9
|
-
ghga_transpiler/config/exceptions.py,sha256=_A8wMX9t0YkLw4tk2IhOVdKoGoZxP2pXsEaZwrgkXhw,1091
|
|
10
|
-
ghga_transpiler/configs/0.10.0.yaml,sha256=Z_6oSY9B883bevHb5RaCBToQgp1mP8l-1xXm6tGvUi4,3415
|
|
11
|
-
ghga_transpiler/configs/1.0.0.yaml,sha256=Am6E3pdtwu_prbjSunB-Rps5qPZ722w59MMhyT1r2tg,3415
|
|
12
|
-
ghga_transpiler/configs/1.1.0.yaml,sha256=VTmwAgio8U4eFigj-RJQvd6liojBOtj02M-SSaIXW6c,3415
|
|
13
|
-
ghga_transpiler/configs/__init__.py,sha256=uGpTS9l2diw93p053atk09DuObDZ7eDZJoADCmuYX0g,687
|
|
14
|
-
scripts/__init__.py,sha256=UmLyRp2rXXxZkJJTsuXv3J4LdunfUc-7NEH2eSEYqeE,756
|
|
15
|
-
scripts/get_package_name.py,sha256=Mk3xBFcV-ttLt_61YVsL2_-IfzJrNZSkQ8KnbvbWi3g,1487
|
|
16
|
-
scripts/license_checker.py,sha256=d0BMJyLnu887UIw7BkbpTaEGGgrEmn8lFKltR8b8h-g,18568
|
|
17
|
-
scripts/update_all.py,sha256=C85KFl-P9duV2kTxJCyFvV9NnUGzcus6jEhGyTXLqf4,1461
|
|
18
|
-
scripts/update_config_docs.py,sha256=p2zLkzVP7fb2L3p2_KusajMrBMLWO3_mvhOVF9V3Eek,4972
|
|
19
|
-
scripts/update_readme.py,sha256=2wKLH3JCWwUH1aWKZxC-cFQ9JugzuzWUJ7lEQwqnoME,6789
|
|
20
|
-
scripts/update_template_files.py,sha256=WqbEJlhYVd_PCaX_AJdDTIb54HbKDQkYT_OthrPrM1Q,8499
|
|
21
|
-
scripts/script_utils/__init__.py,sha256=PQXZO-XfoUNet5pRpl2TkWNxiPWNhktX4IPPJcJgTug,737
|
|
22
|
-
scripts/script_utils/cli.py,sha256=aqeY1v0FWwXdpyVSYZSBTbrerCiErlVZ1IfZCP3CR1A,1096
|
|
23
|
-
tests/fixtures/__init__.py,sha256=E9gr4DMX7GAjMI2CGx9jny7essvn07almoATuULdpBU,750
|
|
24
|
-
tests/fixtures/utils.py,sha256=CQ5x_3OFtuIoAQBkz8GaGzKppiqphgbcxh1vUfHbIFQ,1105
|
|
25
|
-
tests/fixtures/configs/0.0.0.yaml,sha256=BvoImVhEQAn8_L6vekhFn3JtxZH37Mn62Ag6_FK9uHs,444
|
|
26
|
-
tests/fixtures/configs/__init__.py,sha256=uGpTS9l2diw93p053atk09DuObDZ7eDZJoADCmuYX0g,687
|
|
27
|
-
tests/fixtures/test_data_objects/__init__.py,sha256=UtnN52xEaTxeSVm2y-Y6LB-tZRAct86NvQgF3hqjhaw,725
|
|
28
|
-
tests/fixtures/test_data_objects/conversion_data.py,sha256=Iw0q4iLFYwwwSbaMHZmN1lF_LtIjGhzsx7Xq5WR2xr4,1429
|
|
29
|
-
ghga_transpiler-1.2.0.dist-info/LICENSE,sha256=a2nPPnhGY9QGdkfGrseHGDVj62fh8o5DoHsUpQp3GzA,11452
|
|
30
|
-
ghga_transpiler-1.2.0.dist-info/METADATA,sha256=RJFbTsINh8zAzjhI_CXWLkxcA1tMiDyWrHUonjD8feM,4321
|
|
31
|
-
ghga_transpiler-1.2.0.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
|
|
32
|
-
ghga_transpiler-1.2.0.dist-info/entry_points.txt,sha256=Fr_VQJynZZl95NXjrQW2gE0bCocgjKVNEZQpaLls8po,65
|
|
33
|
-
ghga_transpiler-1.2.0.dist-info/top_level.txt,sha256=XhvuZqfjvQnMFFAUcwm_x-J9fuHZW7QM_38DclbmV5o,30
|
|
34
|
-
ghga_transpiler-1.2.0.dist-info/RECORD,,
|
scripts/__init__.py
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Copyright 2021 - 2023 Universität Tübingen, DKFZ, EMBL, and Universität zu Köln
|
|
2
|
-
# for the German Human Genome-Phenome Archive (GHGA)
|
|
3
|
-
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
# you may not use this file except in compliance with the License.
|
|
6
|
-
# You may obtain a copy of the License at
|
|
7
|
-
#
|
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
#
|
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
# See the License for the specific language governing permissions and
|
|
14
|
-
# limitations under the License.
|
|
15
|
-
#
|
|
16
|
-
|
|
17
|
-
"""Scripts and utils used during development or in CI pipelines."""
|
scripts/get_package_name.py
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
|
|
3
|
-
# Copyright 2021 - 2023 Universität Tübingen, DKFZ, EMBL, and Universität zu Köln
|
|
4
|
-
# for the German Human Genome-Phenome Archive (GHGA)
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
|
|
18
|
-
"""Extracts the package name from the setup.cfg"""
|
|
19
|
-
|
|
20
|
-
from pathlib import Path
|
|
21
|
-
|
|
22
|
-
REPO_ROOT_DIR = Path(__file__).parent.parent.resolve()
|
|
23
|
-
SETUP_CFG_PATH = REPO_ROOT_DIR / "setup.cfg"
|
|
24
|
-
NAME_PREFIX = "name = "
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def get_package_name() -> str:
|
|
28
|
-
"""Extracts the package name"""
|
|
29
|
-
|
|
30
|
-
with open(SETUP_CFG_PATH, "r", encoding="utf8") as setup_cfg:
|
|
31
|
-
for line in setup_cfg.readlines():
|
|
32
|
-
line_stripped = line.strip()
|
|
33
|
-
if line_stripped.startswith(NAME_PREFIX):
|
|
34
|
-
package_name = line_stripped[len(NAME_PREFIX) :]
|
|
35
|
-
return package_name
|
|
36
|
-
raise RuntimeError("Could not find package name.")
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def run():
|
|
40
|
-
"""Run this script."""
|
|
41
|
-
package_name = get_package_name()
|
|
42
|
-
print(package_name)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if __name__ == "__main__":
|
|
46
|
-
run()
|