ghga-transpiler 2.3.1__tar.gz → 2.4.0__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 (31) hide show
  1. {ghga_transpiler-2.3.1/src/ghga_transpiler.egg-info → ghga_transpiler-2.4.0}/PKG-INFO +2 -2
  2. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/pyproject.toml +2 -2
  3. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/configs/2.0.yaml +4 -0
  4. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/configs/2.1.yaml +4 -0
  5. ghga_transpiler-2.4.0/src/ghga_transpiler/configs/2.2.yaml +178 -0
  6. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/transformations.py +5 -0
  7. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0/src/ghga_transpiler.egg-info}/PKG-INFO +2 -2
  8. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler.egg-info/SOURCES.txt +1 -0
  9. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler.egg-info/requires.txt +1 -1
  10. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/LICENSE +0 -0
  11. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/README.md +0 -0
  12. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/setup.cfg +0 -0
  13. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/__init__.py +0 -0
  14. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/__main__.py +0 -0
  15. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/cli.py +0 -0
  16. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/config/__init__.py +0 -0
  17. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/config/config.py +0 -0
  18. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/config/exceptions.py +0 -0
  19. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/configs/0.10.yaml +0 -0
  20. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/configs/1.0.yaml +0 -0
  21. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/configs/1.1.yaml +0 -0
  22. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/configs/__init__.py +0 -0
  23. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/core.py +0 -0
  24. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler/io.py +0 -0
  25. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler.egg-info/dependency_links.txt +0 -0
  26. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler.egg-info/entry_points.txt +0 -0
  27. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/src/ghga_transpiler.egg-info/top_level.txt +0 -0
  28. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/tests/test_convert_workbook.py +0 -0
  29. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/tests/test_create_config.py +0 -0
  30. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/tests/test_io.py +0 -0
  31. {ghga_transpiler-2.3.1 → ghga_transpiler-2.4.0}/tests/test_process_workbook.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghga_transpiler
3
- Version: 2.3.1
3
+ Version: 2.4.0
4
4
  Summary: GHGA-Transpiler - excel to JSON converter
5
5
  Author-email: "German Human Genome Phenome Archive (GHGA)" <contact@ghga.de>
6
6
  License: Apache 2.0
@@ -22,7 +22,7 @@ Requires-Dist: defusedxml==0.*,>=0.7
22
22
  Requires-Dist: pydantic<3,>=2.6
23
23
  Requires-Dist: PyYAML~=6.0
24
24
  Requires-Dist: semver==3.*
25
- Requires-Dist: click==8.1.0
25
+ Requires-Dist: click~=8.1.0
26
26
  Dynamic: license-file
27
27
 
28
28
 
@@ -21,7 +21,7 @@ classifiers = [
21
21
  "Intended Audience :: Developers",
22
22
  ]
23
23
  name = "ghga_transpiler"
24
- version = "2.3.1"
24
+ version = "2.4.0"
25
25
  description = "GHGA-Transpiler - excel to JSON converter"
26
26
  dependencies = [
27
27
  "typer >= 0.12",
@@ -30,7 +30,7 @@ dependencies = [
30
30
  "pydantic >=2.6, <3",
31
31
  "PyYAML ~= 6.0",
32
32
  "semver == 3.*",
33
- "click==8.1.0",
33
+ "click ~= 8.1.0",
34
34
  ]
35
35
 
36
36
  [project.license]
@@ -119,6 +119,8 @@ worksheets:
119
119
  !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
120
120
  attributes:
121
121
  !!python/object/apply:ghga_transpiler.transformations.to_attributes []
122
+ sequencing_read_length:
123
+ !!python/name:ghga_transpiler.transformations.to_string
122
124
  sheet_name: ExperimentMethod
123
125
  - settings:
124
126
  end_column: 7
@@ -136,6 +138,8 @@ worksheets:
136
138
  !!python/object/apply:ghga_transpiler.transformations.to_list []
137
139
  format:
138
140
  !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
141
+ sequencing_lane_id:
142
+ !!python/name:ghga_transpiler.transformations.to_string
139
143
  sheet_name: ResearchDataFile
140
144
  - settings:
141
145
  end_column: 7
@@ -121,6 +121,8 @@ worksheets:
121
121
  !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
122
122
  attributes:
123
123
  !!python/object/apply:ghga_transpiler.transformations.to_attributes []
124
+ sequencing_read_length:
125
+ !!python/name:ghga_transpiler.transformations.to_string
124
126
  sheet_name: ExperimentMethod
125
127
  - settings:
126
128
  end_column: 7
@@ -138,6 +140,8 @@ worksheets:
138
140
  !!python/object/apply:ghga_transpiler.transformations.to_list []
139
141
  format:
140
142
  !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
143
+ sequencing_lane_id:
144
+ !!python/name:ghga_transpiler.transformations.to_string
141
145
  sheet_name: ResearchDataFile
142
146
  - settings:
143
147
  end_column: 7
@@ -0,0 +1,178 @@
1
+ ghga_metadata_version: 2.2.0
2
+ default_settings:
3
+ header_row: 1
4
+ start_row: 7
5
+ start_column: 1
6
+ transformations:
7
+ attributes:
8
+ !!python/object/apply:ghga_transpiler.transformations.to_attributes []
9
+ format:
10
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
11
+ worksheets:
12
+ - settings:
13
+ end_column: 7
14
+ name: analyses
15
+ transformations:
16
+ research_data_files:
17
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
18
+ sheet_name: Analysis
19
+ - settings:
20
+ end_column: 17
21
+ name: analysis_methods
22
+ transformations:
23
+ reference_type:
24
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
25
+ parameters:
26
+ !!python/object/apply:ghga_transpiler.transformations.to_attributes []
27
+ software_versions:
28
+ !!python/object/apply:ghga_transpiler.transformations.to_attributes []
29
+ attributes:
30
+ !!python/object/apply:ghga_transpiler.transformations.to_attributes []
31
+ sheet_name: AnalysisMethod
32
+ - settings:
33
+ end_column: 7
34
+ name: analysis_method_supporting_files
35
+ sheet_name: AnalysisMethodSupportingFile
36
+ - settings:
37
+ end_column: 7
38
+ name: studies
39
+ transformations:
40
+ affiliations:
41
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
42
+ attributes:
43
+ !!python/object/apply:ghga_transpiler.transformations.to_attributes []
44
+ types:
45
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case_list []
46
+ attributes:
47
+ !!python/object/apply:ghga_transpiler.transformations.to_attributes []
48
+ sheet_name: Study
49
+ - settings:
50
+ end_column: 10
51
+ name: individuals
52
+ transformations:
53
+ phenotypic_features_terms:
54
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
55
+ phenotypic_features_ids:
56
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
57
+ diagnosis_ids:
58
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
59
+ diagnosis_terms:
60
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
61
+ sex:
62
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
63
+ ancestry_terms:
64
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
65
+ ancestry_ids:
66
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
67
+ sheet_name: Individual
68
+ - settings:
69
+ end_column: 7
70
+ name: individual_supporting_files
71
+ sheet_name: IndividualSupportingFile
72
+ - settings:
73
+ end_column: 21
74
+ name: samples
75
+ transformations:
76
+ type:
77
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
78
+ storage:
79
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
80
+ disease_or_healthy:
81
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
82
+ case_control_status:
83
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
84
+ xref: !!python/object/apply:ghga_transpiler.transformations.to_list []
85
+ biospecimen_age_at_sampling:
86
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
87
+ biospecimen_vital_status_at_sampling:
88
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
89
+ biospecimen_isolation:
90
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
91
+ biospecimen_storage:
92
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
93
+ attributes:
94
+ !!python/object/apply:ghga_transpiler.transformations.to_attributes []
95
+ sheet_name: Sample
96
+ - settings:
97
+ end_column: 23
98
+ name: experiment_methods
99
+ transformations:
100
+ library_type:
101
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
102
+ library_selection_methods:
103
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case_list []
104
+ library_preparation_kit_retail_name:
105
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
106
+ primer:
107
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
108
+ end_bias:
109
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
110
+ target_regions:
111
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
112
+ rnaseq_strandedness:
113
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
114
+ instrument_model:
115
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
116
+ sequencing_layout:
117
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
118
+ flow_cell_type:
119
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
120
+ sample_barcode_read:
121
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
122
+ sequencing_layout:
123
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
124
+ attributes:
125
+ !!python/object/apply:ghga_transpiler.transformations.to_attributes []
126
+ sequencing_read_length:
127
+ !!python/name:ghga_transpiler.transformations.to_string
128
+ sheet_name: ExperimentMethod
129
+ - settings:
130
+ end_column: 7
131
+ name: experiment_method_supporting_files
132
+ sheet_name: ExperimentMethodSupportingFile
133
+ - settings:
134
+ end_column: 8
135
+ name: experiments
136
+ sheet_name: Experiment
137
+ - settings:
138
+ end_column: 9
139
+ name: research_data_files
140
+ transformations:
141
+ experiments:
142
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
143
+ format:
144
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
145
+ sequencing_lane_id:
146
+ !!python/name:ghga_transpiler.transformations.to_string
147
+ sheet_name: ResearchDataFile
148
+ - settings:
149
+ end_column: 7
150
+ name: process_data_files
151
+ sheet_name: ProcessDataFile
152
+ - settings:
153
+ end_column: 7
154
+ name: datasets
155
+ transformations:
156
+ types: !!python/object/apply:ghga_transpiler.transformations.to_list []
157
+ sheet_name: Dataset
158
+ - settings:
159
+ end_column: 11
160
+ name: data_access_policies
161
+ transformations:
162
+ data_use_modifier_terms:
163
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case_list []
164
+ data_use_permission_term:
165
+ !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
166
+ data_use_modifier_ids:
167
+ !!python/object/apply:ghga_transpiler.transformations.to_list []
168
+ sheet_name: DataAccessPolicy
169
+ - settings:
170
+ end_column: 4
171
+ name: data_access_committees
172
+ sheet_name: DataAccessCommittee
173
+ - settings:
174
+ end_column: 9
175
+ name: publications
176
+ transformations:
177
+ xref: !!python/object/apply:ghga_transpiler.transformations.to_list []
178
+ sheet_name: Publication
@@ -20,6 +20,11 @@
20
20
  from collections.abc import Callable
21
21
 
22
22
 
23
+ def to_string(value: int | str) -> str:
24
+ """Converts a value to string"""
25
+ return str(value)
26
+
27
+
23
28
  def split_by_semicolon(value: str) -> list[str]:
24
29
  """Splits a string by semicolon"""
25
30
  return [elem.strip() for elem in value.split(";")]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghga_transpiler
3
- Version: 2.3.1
3
+ Version: 2.4.0
4
4
  Summary: GHGA-Transpiler - excel to JSON converter
5
5
  Author-email: "German Human Genome Phenome Archive (GHGA)" <contact@ghga.de>
6
6
  License: Apache 2.0
@@ -22,7 +22,7 @@ Requires-Dist: defusedxml==0.*,>=0.7
22
22
  Requires-Dist: pydantic<3,>=2.6
23
23
  Requires-Dist: PyYAML~=6.0
24
24
  Requires-Dist: semver==3.*
25
- Requires-Dist: click==8.1.0
25
+ Requires-Dist: click~=8.1.0
26
26
  Dynamic: license-file
27
27
 
28
28
 
@@ -21,6 +21,7 @@ src/ghga_transpiler/configs/1.0.yaml
21
21
  src/ghga_transpiler/configs/1.1.yaml
22
22
  src/ghga_transpiler/configs/2.0.yaml
23
23
  src/ghga_transpiler/configs/2.1.yaml
24
+ src/ghga_transpiler/configs/2.2.yaml
24
25
  src/ghga_transpiler/configs/__init__.py
25
26
  tests/test_convert_workbook.py
26
27
  tests/test_create_config.py
@@ -4,4 +4,4 @@ defusedxml==0.*,>=0.7
4
4
  pydantic<3,>=2.6
5
5
  PyYAML~=6.0
6
6
  semver==3.*
7
- click==8.1.0
7
+ click~=8.1.0
File without changes