ghga-transpiler 2.3.2__py3-none-any.whl → 2.4.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.
@@ -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.2
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
@@ -3,19 +3,20 @@ ghga_transpiler/__main__.py,sha256=k82ZsGuAOTrbqB4rCNkGOS-AWU8GICtD1_owfiey-Sk,8
3
3
  ghga_transpiler/cli.py,sha256=CvRQdiprRj1ZHjXgHpZ7JhDoAum7WB-sdFyMKknjtxk,2522
4
4
  ghga_transpiler/core.py,sha256=Fhf5pICDmVPKrUOhQNo6uN-mZB8mA1Vlyq3VGeeVSZ8,5235
5
5
  ghga_transpiler/io.py,sha256=e9DT5l5UumX2NcBJOkrR0y7ho_FPvK914WeFRZ4rOjw,1805
6
- ghga_transpiler/transformations.py,sha256=th320v3teZwjn13T-xS9n2_lCrBo5Wrl9wq0qOnbMEs,2222
6
+ ghga_transpiler/transformations.py,sha256=ajsqvgRMLqmreDNwM_l-ho38iHlGQt04aYQh7aMmV6Y,2323
7
7
  ghga_transpiler/config/__init__.py,sha256=CsnuJcqYMBx5zDcMgAzuKGRs5GQSS9N0evzDZ-T_g7k,817
8
8
  ghga_transpiler/config/config.py,sha256=YlIMQwnnpi8BelrdHtbZpJsp9RfwHCDZ56tCvU89wts,3823
9
9
  ghga_transpiler/config/exceptions.py,sha256=WB0YM5hJAn7iVGB_SY0p6Q4D0do1ti7AM4pKnMyVfLc,1090
10
10
  ghga_transpiler/configs/0.10.yaml,sha256=hsS8xwzJ00SRSb-VIfM-oM8UM0hOdR3xeuflf1fra4Y,5683
11
11
  ghga_transpiler/configs/1.0.yaml,sha256=MgSEkDpZjn7I76uLFAfpCfmOqOaCBjEojn6VDX6TnUc,5683
12
12
  ghga_transpiler/configs/1.1.yaml,sha256=rgxTV7bEVMwk1UeJ8hAeCZcqTwX10KXQKoaYnpV0bxI,5683
13
- ghga_transpiler/configs/2.0.yaml,sha256=3lwXFjtbEW-mWGj99d3PaWJflLnuy7WAS5AvNubDJlI,6637
14
- ghga_transpiler/configs/2.1.yaml,sha256=A-vJbxUcW0yyAKpgz2IkN81n92wxIC2A3sYEq-UZ9d0,6738
13
+ ghga_transpiler/configs/2.0.yaml,sha256=Abs_rnznuTNp0jHY_hNrDSZgYcts0v-0AdA-QBuQo8w,6829
14
+ ghga_transpiler/configs/2.1.yaml,sha256=N2nvgIAh1Es_2VO1Ti6wxDhRKKGtFk1EwVJj9jacfdA,6930
15
+ ghga_transpiler/configs/2.2.yaml,sha256=_OIfepEwVwUaH-pDrorhVsM53DFfCiZ42SPLZ2rSS6k,7035
15
16
  ghga_transpiler/configs/__init__.py,sha256=xL0pfHoTdBh0LhdqA8lpdhp3W68HJVXF7AURhBM7pU4,686
16
- ghga_transpiler-2.3.2.dist-info/licenses/LICENSE,sha256=nKgIWA3zoWy18_YSW6e9Gd6_p7d7ccwjNZrfJzvKALE,11452
17
- ghga_transpiler-2.3.2.dist-info/METADATA,sha256=dGGbq4pUOGx8ABI06_5844wczf5ctsJW0pd6awMs_q0,4452
18
- ghga_transpiler-2.3.2.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
19
- ghga_transpiler-2.3.2.dist-info/entry_points.txt,sha256=Fr_VQJynZZl95NXjrQW2gE0bCocgjKVNEZQpaLls8po,65
20
- ghga_transpiler-2.3.2.dist-info/top_level.txt,sha256=TksRpDO3Y4mvK-B09UhQU3ceZpG19fljNlVDGTfjg8o,16
21
- ghga_transpiler-2.3.2.dist-info/RECORD,,
17
+ ghga_transpiler-2.4.0.dist-info/licenses/LICENSE,sha256=nKgIWA3zoWy18_YSW6e9Gd6_p7d7ccwjNZrfJzvKALE,11452
18
+ ghga_transpiler-2.4.0.dist-info/METADATA,sha256=8nB2YE9zlyz05r3E2o9aw8Y0ug3cn9rMAjs7QKUbces,4452
19
+ ghga_transpiler-2.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
+ ghga_transpiler-2.4.0.dist-info/entry_points.txt,sha256=Fr_VQJynZZl95NXjrQW2gE0bCocgjKVNEZQpaLls8po,65
21
+ ghga_transpiler-2.4.0.dist-info/top_level.txt,sha256=TksRpDO3Y4mvK-B09UhQU3ceZpG19fljNlVDGTfjg8o,16
22
+ ghga_transpiler-2.4.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5