nci-cidc-schemas 0.27.18__py2.py3-none-any.whl → 0.27.20__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 CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = """NCI"""
4
4
  __email__ = "nci-cidc-tools-admin@mail.nih.gov"
5
- __version__ = "0.27.18"
5
+ __version__ = "0.27.20"
@@ -18,6 +18,7 @@ from .merger import PRISM_MERGE_STRATEGIES, MergeCollisionException
18
18
  from ..util import get_logger
19
19
  from jsonmerge import Merger
20
20
  from jsonpointer import EndOfList, JsonPointer, JsonPointerException, resolve_pointer
21
+ from datetime import date
21
22
 
22
23
  from .constants import SUPPORTED_TEMPLATES
23
24
 
@@ -533,4 +534,25 @@ def prismify(
533
534
  else:
534
535
  root_ct_obj = template_root_obj
535
536
 
537
+ # Adding additional fields during manifest ingestion
538
+ if "shipments" in root_ct_obj:
539
+ if len(root_ct_obj["shipments"]) != 1:
540
+ raise Exception("Can only process one manifest at a time")
541
+ root_ct_obj["shipments"][0]["upload_type"] = template.type
542
+ root_ct_obj["shipments"][0]["date_ingested"] = date.today().strftime("%Y-%m-%d")
543
+ manifest = root_ct_obj["shipments"][0]
544
+ for participant in root_ct_obj["participants"]:
545
+ for sample in participant["samples"]:
546
+ fields = [
547
+ "manifest_id",
548
+ "upload_type",
549
+ "assay_type",
550
+ "ship_to_name",
551
+ "ship_from_name",
552
+ "date_ingested",
553
+ ]
554
+ for field in fields:
555
+ if field in manifest:
556
+ sample[field] = manifest[field]
557
+
536
558
  return root_ct_obj, collected_files, errors_so_far
@@ -537,6 +537,30 @@
537
537
  "intended_assay": {
538
538
  "type": "string",
539
539
  "description": "The assay that this sample is expected to be used as input for."
540
+ },
541
+ "manifest_id": {
542
+ "type": "string",
543
+ "description": "Id of the manifest"
544
+ },
545
+ "upload_type": {
546
+ "type": "string",
547
+ "description": "Type of manifest"
548
+ },
549
+ "date_ingested": {
550
+ "type": "string",
551
+ "description": "Date CIDC ingested the sample/manifest"
552
+ },
553
+ "assay_type": {
554
+ "type": "string",
555
+ "description": "Assay type of sample"
556
+ },
557
+ "ship_to_name": {
558
+ "type": "string",
559
+ "description": "Recipient of sample"
560
+ },
561
+ "ship_from_name": {
562
+ "type": "string",
563
+ "description": "Sender of sample"
540
564
  }
541
565
  },
542
566
  "additionalProperties": false,
@@ -42,20 +42,27 @@
42
42
  "enum": [
43
43
  "Olink",
44
44
  "WES",
45
+ "BD Rhapsody",
46
+ "GeoMx",
45
47
  "RNAseq",
46
48
  "IHC",
47
49
  "CyTOF",
48
50
  "H&E",
49
51
  "ELISA",
52
+ "EVP",
50
53
  "mIF",
51
54
  "mIHC",
55
+ "MALDI Glycan",
52
56
  "TCRseq",
53
57
  "ATACseq",
54
58
  "ctDNA",
55
59
  "Microbiome",
56
60
  "Nanostring",
61
+ "NULISA",
57
62
  "MIBI",
58
- "scRNA-Seq"
63
+ "scRNA-Seq",
64
+ "snRNA-Seq",
65
+ "Visium"
59
66
  ]
60
67
  },
61
68
  "courier": {
@@ -174,6 +181,14 @@
174
181
  "receiving_party": {
175
182
  "description": "Site where sample was shipped to be assayed.",
176
183
  "type": "string"
184
+ },
185
+ "upload_type": {
186
+ "description": "The type of manifest being uploaded",
187
+ "type": "string"
188
+ },
189
+ "date_ingested": {
190
+ "description": "The date CIDC ingests the manifest",
191
+ "type": "string"
177
192
  }
178
193
  }
179
194
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nci_cidc_schemas
3
- Version: 0.27.18
3
+ Version: 0.27.20
4
4
  Summary: The CIDC data model and tools for working with it.
5
5
  Home-page: https://github.com/NCI-CIDC/cidc-schemas
6
6
  Author: NCI
@@ -1,4 +1,4 @@
1
- cidc_schemas/__init__.py,sha256=xZBbp_EukH5SFvMq6iFrfayuSjiBbQGdQVv-pAc6jgY,136
1
+ cidc_schemas/__init__.py,sha256=yi2KxIY-2AGxT7M-1FX19wNnU2g4mQGctrrjhsdwFRo,136
2
2
  cidc_schemas/cli.py,sha256=gWiktRlraNH8Q0zNUae9dohKjPwBmcY0BJwdcQ_fIic,4099
3
3
  cidc_schemas/constants.py,sha256=RULs7pGuBAVq1teXymrfbVsK23ZowJvLuZlv0KcjL-Y,698
4
4
  cidc_schemas/json_validation.py,sha256=spmPsqinib7Ns5GvWOKKa1rc7IrN_s2bqifpTKdaLVU,23288
@@ -12,7 +12,7 @@ cidc_schemas/metaschema/strict_meta_schema.json,sha256=3FiS0r2dAXgfPsruJwZYbQoQn
12
12
  cidc_schemas/pipeline_configs/rna_level1_analysis_config.yaml.j2,sha256=6no9sFqwzb1T61RZGD-owDt2K5R8G_fPTzflV4fOroo,2832
13
13
  cidc_schemas/prism/__init__.py,sha256=J5Tj0X7Di6cyxAjaduOUp2aVyvl8UI67bgxEkgttvcU,530
14
14
  cidc_schemas/prism/constants.py,sha256=xRxwWtux1PUed2BsdfW9-21NQzNdc05HYYcO5Q0jkEQ,2357
15
- cidc_schemas/prism/core.py,sha256=2WZ6e1-T88zHUYnl5PnD9pBSu-enRJBtRsf-WKc42Wk,19301
15
+ cidc_schemas/prism/core.py,sha256=tXDCCHurvcrxfU11meH3NRAVo9niklup0dpLRoIXwPk,20242
16
16
  cidc_schemas/prism/extra_metadata.py,sha256=S9w5EGAT0xwaWMrpYluF7Y1ONsI4wFtxFD8ib6Va_fU,8567
17
17
  cidc_schemas/prism/merger.py,sha256=36CKBPVoWecHuvGp3oT9a2d4jWIkvKuS_UofKTEpMYs,13065
18
18
  cidc_schemas/prism/pipelines.py,sha256=dvZtoC7pEVgdPual_DZUTBFfgvSV7yTdk1RHwi5h6Vs,33522
@@ -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=4WnxrgJ978CybHg3bQ2JrYgi_0ih0zHyIhr1DwPuDRc,21519
24
- cidc_schemas/schemas/shipping_core.json,sha256=cth7FYWKEujJkWOkOHTj2QWgKPUOL0pizbzAJZ67lOs,4260
23
+ cidc_schemas/schemas/sample.json,sha256=ljUzhe7J2WKHpLcz5XZTxIx7oRQa8uEYO-OQse5L-HA,22227
24
+ cidc_schemas/schemas/shipping_core.json,sha256=fASyy11eM2X9q5fFc3hpwfSEGls4d4VsBZawG-VeSzI,4619
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
@@ -158,9 +158,9 @@ cidc_schemas/schemas/templates/manifests/tissue_slide_template.json,sha256=q2GmO
158
158
  cidc_schemas/schemas/templates/manifests/tumor_normal_pairing_template.json,sha256=lVJrGb28n-vyfjGBzhrzjn1lMKw1b4HXXmWtwA603v0,2797
159
159
  cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json,sha256=LpaoDXDS11NCa-Dv37N-tzEGomswQrx5fypkUcG7xJk,18956
160
160
  cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json,sha256=-gww6NCHbtbI5z7UmNSmKyPK3IqKCE8F6n4XwTAb_gk,18101
161
- nci_cidc_schemas-0.27.18.dist-info/licenses/LICENSE,sha256=zK77-w4rYCZBHAYJEGkcFuPXwKIsP7jMPZ2iQOXjzko,1072
162
- nci_cidc_schemas-0.27.18.dist-info/METADATA,sha256=7t-gt6qTSW6RkkcohEb00Nv3X8ywvHtPBF068Nn8GJg,4554
163
- nci_cidc_schemas-0.27.18.dist-info/WHEEL,sha256=egKm5cKfE6OqlHwodY8Jjp4yqZDBXgsj09UsV5ojd_U,109
164
- nci_cidc_schemas-0.27.18.dist-info/entry_points.txt,sha256=kSyTzXeJQrJp_2ZX0GS_NnbJR8ceQKLBSgER46PM0hs,55
165
- nci_cidc_schemas-0.27.18.dist-info/top_level.txt,sha256=Wwb5Cu7QrnbmSJxI2d00e3-Mir36t0jTRnSulmfhi30,13
166
- nci_cidc_schemas-0.27.18.dist-info/RECORD,,
161
+ nci_cidc_schemas-0.27.20.dist-info/licenses/LICENSE,sha256=zK77-w4rYCZBHAYJEGkcFuPXwKIsP7jMPZ2iQOXjzko,1072
162
+ nci_cidc_schemas-0.27.20.dist-info/METADATA,sha256=kVdUjaEclSr5z_sQQcGy-gax_Vz3aQZ9j0TcE0z1EH8,4554
163
+ nci_cidc_schemas-0.27.20.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
164
+ nci_cidc_schemas-0.27.20.dist-info/entry_points.txt,sha256=kSyTzXeJQrJp_2ZX0GS_NnbJR8ceQKLBSgER46PM0hs,55
165
+ nci_cidc_schemas-0.27.20.dist-info/top_level.txt,sha256=Wwb5Cu7QrnbmSJxI2d00e3-Mir36t0jTRnSulmfhi30,13
166
+ nci_cidc_schemas-0.27.20.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any