nci-cidc-schemas 0.27.8__py2.py3-none-any.whl → 0.27.10__py2.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.
Potentially problematic release.
This version of nci-cidc-schemas might be problematic. Click here for more details.
- cidc_schemas/__init__.py +1 -1
- cidc_schemas/json_validation.py +16 -3
- cidc_schemas/schemas/sample.json +4 -0
- cidc_schemas/schemas/shipping_core.json +3 -3
- cidc_schemas/schemas/templates/manifests/h_and_e_template.json +5 -0
- cidc_schemas/schemas/templates/manifests/microbiome_dna_template.json +5 -0
- cidc_schemas/schemas/templates/manifests/normal_blood_dna_template.json +5 -0
- cidc_schemas/schemas/templates/manifests/normal_tissue_dna_template.json +5 -0
- cidc_schemas/schemas/templates/manifests/pbmc_template.json +5 -0
- cidc_schemas/schemas/templates/manifests/plasma_template.json +5 -0
- cidc_schemas/schemas/templates/manifests/tissue_slide_template.json +5 -0
- cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json +5 -0
- cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json +5 -0
- {nci_cidc_schemas-0.27.8.dist-info → nci_cidc_schemas-0.27.10.dist-info}/METADATA +1 -1
- {nci_cidc_schemas-0.27.8.dist-info → nci_cidc_schemas-0.27.10.dist-info}/RECORD +19 -19
- {nci_cidc_schemas-0.27.8.dist-info → nci_cidc_schemas-0.27.10.dist-info}/WHEEL +1 -1
- {nci_cidc_schemas-0.27.8.dist-info → nci_cidc_schemas-0.27.10.dist-info}/entry_points.txt +0 -0
- {nci_cidc_schemas-0.27.8.dist-info → nci_cidc_schemas-0.27.10.dist-info}/licenses/LICENSE +0 -0
- {nci_cidc_schemas-0.27.8.dist-info → nci_cidc_schemas-0.27.10.dist-info}/top_level.txt +0 -0
cidc_schemas/__init__.py
CHANGED
cidc_schemas/json_validation.py
CHANGED
|
@@ -106,8 +106,22 @@ class _Validator(jsonschema.Draft7Validator):
|
|
|
106
106
|
if "matched_paths" in search:
|
|
107
107
|
for path in search["matched_paths"]:
|
|
108
108
|
scope = {"root": self.schema}
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
try:
|
|
110
|
+
ref_path_pattern = eval(path, scope)
|
|
111
|
+
except Exception as e:
|
|
112
|
+
raise RuntimeError(
|
|
113
|
+
f"Failed to evaluate in_doc_ref_pattern at path '{path}': {e}"
|
|
114
|
+
) from e
|
|
115
|
+
|
|
116
|
+
# protect against None cache
|
|
117
|
+
if self._in_doc_refs_cache is None:
|
|
118
|
+
print(f"_in_doc_refs_cache: {self._in_doc_refs_cache}")
|
|
119
|
+
print(f"scope '{scope}'")
|
|
120
|
+
raise RuntimeError(
|
|
121
|
+
"Internal error: _in_doc_refs_cache is None when trying to build cache. "
|
|
122
|
+
"This usually means the validation context was improperly set up."
|
|
123
|
+
)
|
|
124
|
+
|
|
111
125
|
# If there are no cached values for this ref path pattern, collect them
|
|
112
126
|
if ref_path_pattern not in self._in_doc_refs_cache:
|
|
113
127
|
self._in_doc_refs_cache[ref_path_pattern] = (
|
|
@@ -116,7 +130,6 @@ class _Validator(jsonschema.Draft7Validator):
|
|
|
116
130
|
)
|
|
117
131
|
)
|
|
118
132
|
|
|
119
|
-
# see: https://docs.python.org/3/library/contextlib.html
|
|
120
133
|
try:
|
|
121
134
|
yield
|
|
122
135
|
finally:
|
cidc_schemas/schemas/sample.json
CHANGED
|
@@ -154,6 +154,10 @@
|
|
|
154
154
|
"Other"
|
|
155
155
|
]
|
|
156
156
|
},
|
|
157
|
+
"type_of_sample_other": {
|
|
158
|
+
"description": "The description of the sample other.",
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
157
161
|
"description_of_sample": {
|
|
158
162
|
"description": "The description of the sample.",
|
|
159
163
|
"type": "string",
|
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"type of sample": {
|
|
214
214
|
"merge_pointer": "/type_of_sample",
|
|
215
215
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
216
|
+
},
|
|
217
|
+
"type of sample other": {
|
|
218
|
+
"merge_pointer": "/type_of_sample_other",
|
|
219
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
220
|
+
"allow_empty": true
|
|
216
221
|
},
|
|
217
222
|
"type of tumor sample": {
|
|
218
223
|
"merge_pointer": "/type_of_tumor_sample",
|
|
@@ -217,6 +217,11 @@
|
|
|
217
217
|
"merge_pointer": "/type_of_sample",
|
|
218
218
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
219
219
|
},
|
|
220
|
+
"type of sample other": {
|
|
221
|
+
"merge_pointer": "/type_of_sample_other",
|
|
222
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
223
|
+
"allow_empty": true
|
|
224
|
+
},
|
|
220
225
|
"type of tumor sample": {
|
|
221
226
|
"merge_pointer": "/type_of_tumor_sample",
|
|
222
227
|
"type_ref": "sample.json#properties/type_of_tumor_sample"
|
|
@@ -212,6 +212,11 @@
|
|
|
212
212
|
"merge_pointer": "/type_of_sample",
|
|
213
213
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
214
214
|
},
|
|
215
|
+
"type of sample other": {
|
|
216
|
+
"merge_pointer": "/type_of_sample_other",
|
|
217
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
218
|
+
"allow_empty": true
|
|
219
|
+
},
|
|
215
220
|
"type of tumor sample": {
|
|
216
221
|
"merge_pointer": "/type_of_tumor_sample",
|
|
217
222
|
"type_ref": "sample.json#properties/type_of_tumor_sample"
|
|
@@ -220,6 +220,11 @@
|
|
|
220
220
|
"merge_pointer": "/type_of_sample",
|
|
221
221
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
222
222
|
},
|
|
223
|
+
"type of sample other": {
|
|
224
|
+
"merge_pointer": "/type_of_sample_other",
|
|
225
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
226
|
+
"allow_empty": true
|
|
227
|
+
},
|
|
223
228
|
"sample collection procedure": {
|
|
224
229
|
"merge_pointer": "/sample_collection_procedure",
|
|
225
230
|
"type_ref": "sample.json#properties/sample_collection_procedure"
|
|
@@ -213,6 +213,11 @@
|
|
|
213
213
|
"type of sample": {
|
|
214
214
|
"merge_pointer": "0/type_of_sample",
|
|
215
215
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
216
|
+
},
|
|
217
|
+
"type of sample other": {
|
|
218
|
+
"merge_pointer": "/type_of_sample_other",
|
|
219
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
220
|
+
"allow_empty": true
|
|
216
221
|
},
|
|
217
222
|
"sample collection procedure": {
|
|
218
223
|
"merge_pointer": "/sample_collection_procedure",
|
|
@@ -215,6 +215,11 @@
|
|
|
215
215
|
"merge_pointer": "/type_of_sample",
|
|
216
216
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
217
217
|
},
|
|
218
|
+
"type of sample other": {
|
|
219
|
+
"merge_pointer": "/type_of_sample_other",
|
|
220
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
221
|
+
"allow_empty": true
|
|
222
|
+
},
|
|
218
223
|
"sample collection procedure": {
|
|
219
224
|
"merge_pointer": "/sample_collection_procedure",
|
|
220
225
|
"type_ref": "sample.json#properties/sample_collection_procedure"
|
|
@@ -215,6 +215,11 @@
|
|
|
215
215
|
"merge_pointer": "/type_of_sample",
|
|
216
216
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
217
217
|
},
|
|
218
|
+
"type of sample other": {
|
|
219
|
+
"merge_pointer": "/type_of_sample_other",
|
|
220
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
221
|
+
"allow_empty": true
|
|
222
|
+
},
|
|
218
223
|
"type of tumor sample": {
|
|
219
224
|
"merge_pointer": "/type_of_tumor_sample",
|
|
220
225
|
"type_ref": "sample.json#properties/type_of_tumor_sample"
|
|
@@ -215,6 +215,11 @@
|
|
|
215
215
|
"merge_pointer": "/type_of_sample",
|
|
216
216
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
217
217
|
},
|
|
218
|
+
"type of sample other": {
|
|
219
|
+
"merge_pointer": "/type_of_sample_other",
|
|
220
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
221
|
+
"allow_empty": true
|
|
222
|
+
},
|
|
218
223
|
"type of tumor sample": {
|
|
219
224
|
"merge_pointer": "/type_of_tumor_sample",
|
|
220
225
|
"type_ref": "sample.json#properties/type_of_tumor_sample"
|
|
@@ -215,6 +215,11 @@
|
|
|
215
215
|
"merge_pointer": "/type_of_sample",
|
|
216
216
|
"type_ref": "sample.json#properties/type_of_sample"
|
|
217
217
|
},
|
|
218
|
+
"type of sample other": {
|
|
219
|
+
"merge_pointer": "/type_of_sample_other",
|
|
220
|
+
"type_ref": "sample.json#properties/type_of_sample_other",
|
|
221
|
+
"allow_empty": true
|
|
222
|
+
},
|
|
218
223
|
"type of tumor sample": {
|
|
219
224
|
"merge_pointer": "/type_of_tumor_sample",
|
|
220
225
|
"type_ref": "sample.json#properties/type_of_tumor_sample"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
cidc_schemas/__init__.py,sha256=
|
|
1
|
+
cidc_schemas/__init__.py,sha256=CNRBwX2Hba3M5la6V032DEO4wjN3K9NFqIHiehMhU54,136
|
|
2
2
|
cidc_schemas/cli.py,sha256=gWiktRlraNH8Q0zNUae9dohKjPwBmcY0BJwdcQ_fIic,4099
|
|
3
3
|
cidc_schemas/constants.py,sha256=RULs7pGuBAVq1teXymrfbVsK23ZowJvLuZlv0KcjL-Y,698
|
|
4
|
-
cidc_schemas/json_validation.py,sha256=
|
|
4
|
+
cidc_schemas/json_validation.py,sha256=BcwWg9cjg3aaFkGIDQyXHpYZGB8IRRzPVvurLXlQiVw,23161
|
|
5
5
|
cidc_schemas/migrations.py,sha256=Amg_T4cFgMzySD7yNnT_PWpqP7hwlTWGeHlI_RSXuRI,14766
|
|
6
6
|
cidc_schemas/template.py,sha256=uvQNbkvusMq9D_1cnUMxT7j7Rf-iqq7o5nuZUhCaXY0,51428
|
|
7
7
|
cidc_schemas/template_reader.py,sha256=xXtLRKu1y4FrPj8RgyGOmB2hlsCDXcuvMBWami2_jV8,13119
|
|
@@ -20,8 +20,8 @@ cidc_schemas/schemas/aliquot.json,sha256=F24s6xGTeJl-VT6s6wvV8YtMA4O-0BsUCwtD2OE
|
|
|
20
20
|
cidc_schemas/schemas/clinical_data.json,sha256=ubt2dqTLCbDuxuOXrBObT_xLHVSArMBx4oASFOAYEas,1474
|
|
21
21
|
cidc_schemas/schemas/clinical_trial.json,sha256=aUjYgdtlRWDfULk0-apralt4-KrtjriUqt3qNTdL2Rc,4442
|
|
22
22
|
cidc_schemas/schemas/participant.json,sha256=X72GQSdLqhZl_Vg8OHPqRotblIluNSmiw8N5UeM-di8,2843
|
|
23
|
-
cidc_schemas/schemas/sample.json,sha256=
|
|
24
|
-
cidc_schemas/schemas/shipping_core.json,sha256=
|
|
23
|
+
cidc_schemas/schemas/sample.json,sha256=4WnxrgJ978CybHg3bQ2JrYgi_0ih0zHyIhr1DwPuDRc,21519
|
|
24
|
+
cidc_schemas/schemas/shipping_core.json,sha256=poCU_gwwXSy997eqkJCBY8TswEHo7rUDIuGszcgYKK8,4239
|
|
25
25
|
cidc_schemas/schemas/artifacts/artifact_bam.json,sha256=nPy3qx07--arLyb9VgfdVK6OJoMPhr6rnp-3AF6o82Q,1653
|
|
26
26
|
cidc_schemas/schemas/artifacts/artifact_bam_bai.json,sha256=S1LxCZVyN3v-Hxhs7TEDbGcV-y7LVdAoLzGblT9IhEk,1671
|
|
27
27
|
cidc_schemas/schemas/artifacts/artifact_bed.json,sha256=nGPKiAd2GQGJ6JkdLaqZhfOuyDmsAdUqril1Yao2qmE,1653
|
|
@@ -144,19 +144,19 @@ cidc_schemas/schemas/templates/assays/tcr_adaptive_template.json,sha256=Hb8ngxw6
|
|
|
144
144
|
cidc_schemas/schemas/templates/assays/tcr_fastq_template.json,sha256=7Qq4ssI8ErDrHy5RIxjPcNiDf2IBHG42JcngDFKxqlE,3457
|
|
145
145
|
cidc_schemas/schemas/templates/assays/wes_bam_template.json,sha256=nxbb_lNPi-5cdAlwmSBvn7cS_8gMjROOz7wBWk6ev0Y,2724
|
|
146
146
|
cidc_schemas/schemas/templates/assays/wes_fastq_template.json,sha256=vuwuIpqXyqpGxCunpjbHKaBQhfKFnr2R-wMkXDiJdKM,3143
|
|
147
|
-
cidc_schemas/schemas/templates/manifests/h_and_e_template.json,sha256=
|
|
148
|
-
cidc_schemas/schemas/templates/manifests/microbiome_dna_template.json,sha256=
|
|
149
|
-
cidc_schemas/schemas/templates/manifests/normal_blood_dna_template.json,sha256=
|
|
150
|
-
cidc_schemas/schemas/templates/manifests/normal_tissue_dna_template.json,sha256=
|
|
151
|
-
cidc_schemas/schemas/templates/manifests/pbmc_template.json,sha256=
|
|
152
|
-
cidc_schemas/schemas/templates/manifests/plasma_template.json,sha256=
|
|
153
|
-
cidc_schemas/schemas/templates/manifests/tissue_slide_template.json,sha256=
|
|
147
|
+
cidc_schemas/schemas/templates/manifests/h_and_e_template.json,sha256=8fbhWxKWhITds1KkbEdQxHHoeoKB2Tm40plzsxz3_FE,18009
|
|
148
|
+
cidc_schemas/schemas/templates/manifests/microbiome_dna_template.json,sha256=POucJzR6ac_ndXgttL8Pm6s7BKtu5tqJz4Y49U8zLj0,17848
|
|
149
|
+
cidc_schemas/schemas/templates/manifests/normal_blood_dna_template.json,sha256=13FceWQ4DR09N0hJgBwcN6aO6q94Ru-ys1JZcd_Iefk,18931
|
|
150
|
+
cidc_schemas/schemas/templates/manifests/normal_tissue_dna_template.json,sha256=yAKMW5KIbQ14O8wXUTRdMM1QFg-hxLNz0y4XncxPpRI,18669
|
|
151
|
+
cidc_schemas/schemas/templates/manifests/pbmc_template.json,sha256=gHxO3dcBMjzHM6PTCg7eZwFnKF4cEbXFZdVeZHfCQG8,18524
|
|
152
|
+
cidc_schemas/schemas/templates/manifests/plasma_template.json,sha256=VNraMcIdpxvPJC5SH4nnUeqOCz5HUuiGiMcKC20Ctso,16138
|
|
153
|
+
cidc_schemas/schemas/templates/manifests/tissue_slide_template.json,sha256=q2GmOA2bstMRJmkigOri_uFYKJNHJG3qjVXUjV410Ls,16557
|
|
154
154
|
cidc_schemas/schemas/templates/manifests/tumor_normal_pairing_template.json,sha256=lVJrGb28n-vyfjGBzhrzjn1lMKw1b4HXXmWtwA603v0,2797
|
|
155
|
-
cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json,sha256=
|
|
156
|
-
cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json,sha256
|
|
157
|
-
nci_cidc_schemas-0.27.
|
|
158
|
-
nci_cidc_schemas-0.27.
|
|
159
|
-
nci_cidc_schemas-0.27.
|
|
160
|
-
nci_cidc_schemas-0.27.
|
|
161
|
-
nci_cidc_schemas-0.27.
|
|
162
|
-
nci_cidc_schemas-0.27.
|
|
155
|
+
cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json,sha256=LpaoDXDS11NCa-Dv37N-tzEGomswQrx5fypkUcG7xJk,18956
|
|
156
|
+
cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json,sha256=-gww6NCHbtbI5z7UmNSmKyPK3IqKCE8F6n4XwTAb_gk,18101
|
|
157
|
+
nci_cidc_schemas-0.27.10.dist-info/licenses/LICENSE,sha256=zK77-w4rYCZBHAYJEGkcFuPXwKIsP7jMPZ2iQOXjzko,1072
|
|
158
|
+
nci_cidc_schemas-0.27.10.dist-info/METADATA,sha256=M2wECfycUwM55Xfm1hUrueC0IOscCc1zmQhnbEQAObs,4554
|
|
159
|
+
nci_cidc_schemas-0.27.10.dist-info/WHEEL,sha256=AeO2BvogYWm3eGaHCvhzmUYt8ia7KfURiHzO_1atlys,109
|
|
160
|
+
nci_cidc_schemas-0.27.10.dist-info/entry_points.txt,sha256=kSyTzXeJQrJp_2ZX0GS_NnbJR8ceQKLBSgER46PM0hs,55
|
|
161
|
+
nci_cidc_schemas-0.27.10.dist-info/top_level.txt,sha256=Wwb5Cu7QrnbmSJxI2d00e3-Mir36t0jTRnSulmfhi30,13
|
|
162
|
+
nci_cidc_schemas-0.27.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|