nci-cidc-schemas 0.26.36__py2.py3-none-any.whl → 0.26.37__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.26.36"
5
+ __version__ = "0.26.37"
@@ -497,7 +497,7 @@ def convert(fmt: str, value: str) -> str:
497
497
  elif fmt == "date":
498
498
  reformatter = _to_date
499
499
  elif fmt == "string":
500
- reformatter = lambda n: n and str(n)
500
+ reformatter = lambda n: (n or n == 0) and str(n)
501
501
  elif fmt == "integer":
502
502
  reformatter = lambda n: n and int(n)
503
503
  elif fmt == "boolean":
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "metaschema/strict_meta_schema.json#",
3
+ "$id": "local_file",
4
+ "title": "Local file type",
5
+ "type": "object",
6
+ "description": "A type to store local file paths.",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "file_path": {
10
+ "$id": "local_file_path",
11
+ "type": "string",
12
+ "description": "Path to file, relative to the intake bucket. One of image file or annotated file is required."
13
+ }
14
+ },
15
+ "required": []
16
+ }
@@ -22,10 +22,8 @@
22
22
  "bias_qc_plots",
23
23
  "optimal_solution",
24
24
  "other_solutions",
25
- "fraction_cna_subclonal",
26
25
  "fraction_genome_subclonal",
27
26
  "gc_map_correction_mad",
28
- "subclone_fraction",
29
27
  "tumor_fraction",
30
28
  "tumor_ploidy"
31
29
  ],
@@ -46,7 +44,7 @@
46
44
  "on_premise_rdata_file": {"$ref": "artifacts/artifact_rdata.json"},
47
45
 
48
46
  "fraction_cna_subclonal": {
49
- "description": "Fraction of copy number altered bins that are subclonal. Accepts NaN. (0-1)",
47
+ "description": "Fraction of copy number altered bins that are subclonal (0-1)",
50
48
  "type": ["number", "string"]
51
49
  },
52
50
  "fraction_genome_subclonal": {
@@ -60,7 +58,7 @@
60
58
  "type": "number"
61
59
  },
62
60
  "subclone_fraction": {
63
- "description": "Fraction of tumor-derived DNA that is subclonal. Accepts NA. (0-1)",
61
+ "description": "Fraction of tumor-derived DNA that is subclonal (0-1)",
64
62
  "type": ["number", "string"]
65
63
  },
66
64
  "tumor_fraction": {
@@ -59,7 +59,8 @@
59
59
  },
60
60
  "fraction cna subclonal": {
61
61
  "merge_pointer": "0/fraction_cna_subclonal",
62
- "type_ref": "assays/ctdna_assay.json#definitions/entry/properties/fraction_cna_subclonal"
62
+ "type_ref": "assays/ctdna_assay.json#definitions/entry/properties/fraction_cna_subclonal",
63
+ "allow_empty": true
63
64
  },
64
65
  "fraction genome subclonal": {
65
66
  "merge_pointer": "0/fraction_genome_subclonal",
@@ -87,7 +88,8 @@
87
88
  },
88
89
  "subclone fraction": {
89
90
  "merge_pointer": "0/subclone_fraction",
90
- "type_ref": "assays/ctdna_assay.json#definitions/entry/properties/subclone_fraction"
91
+ "type_ref": "assays/ctdna_assay.json#definitions/entry/properties/subclone_fraction",
92
+ "allow_empty": true
91
93
  },
92
94
  "tumor fraction": {
93
95
  "merge_pointer": "0/tumor_fraction",
@@ -33,8 +33,9 @@
33
33
  "merge_pointer": "0/files/image_file",
34
34
  "is_artifact": 1,
35
35
  "gcs_uri_format": "{protocol identifier}/hande/{cimac id}/image_file.{file type}",
36
- "type_ref": "assays/components/local_file.json#properties/file_path",
37
- "allow_empty": true
36
+ "type_ref": "assays/components/hande_local_file.json#properties/file_path",
37
+ "allow_empty": true,
38
+ "type": "string"
38
39
  },
39
40
  "annotated file type": {
40
41
  "do_not_merge": true,
@@ -46,8 +47,9 @@
46
47
  "merge_pointer": "0/files/annotated_image",
47
48
  "is_artifact": 1,
48
49
  "gcs_uri_format": "{protocol identifier}/hande/{cimac id}/annotated_image.{annotated file type}",
49
- "type_ref": "assays/components/local_file.json#properties/file_path",
50
- "allow_empty": true
50
+ "type_ref": "assays/components/hande_local_file.json#properties/file_path",
51
+ "allow_empty": true,
52
+ "type": "string"
51
53
  },
52
54
  "tumor tissue (% total area)": {
53
55
  "merge_pointer": "0/tumor_tissue_percentage",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nci_cidc_schemas
3
- Version: 0.26.36
3
+ Version: 0.26.37
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,7 +1,7 @@
1
- cidc_schemas/__init__.py,sha256=PyjN4BhZxDfIvvKNqCcz38xDv5i4Np3N29vZJJZUFGw,136
1
+ cidc_schemas/__init__.py,sha256=h-hrmAr_pO3lT0PGp-TreTtSOzEBGlYR2jFq8uUp23o,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=SyZSW7AAS-qlYLUUV_ri4393utkNsDexcWB73rEmFLs,20035
4
+ cidc_schemas/json_validation.py,sha256=81Dql5LAw4t-0t1cYKpCNQqiUok9rQvGxSk-9VxyILA,20047
5
5
  cidc_schemas/migrations.py,sha256=Amg_T4cFgMzySD7yNnT_PWpqP7hwlTWGeHlI_RSXuRI,14766
6
6
  cidc_schemas/template.py,sha256=gM6Xp1fOZaF8wOLzY5HGdxi4p8cEYhYXRpqRPncYua0,49865
7
7
  cidc_schemas/template_reader.py,sha256=xXtLRKu1y4FrPj8RgyGOmB2hlsCDXcuvMBWami2_jV8,13119
@@ -61,7 +61,7 @@ cidc_schemas/schemas/artifacts/artifact_xlsx.json,sha256=PmQ3NY_8ywS3iFa4vvLzcXb
61
61
  cidc_schemas/schemas/artifacts/artifact_yaml.json,sha256=Eey5T68k4jXqiFXfgWTVi3ZoiY5EZxc75rWCEvaZscE,1657
62
62
  cidc_schemas/schemas/artifacts/artifact_zip.json,sha256=L9TyKfKm2j0jUo7ED7Lb43Z6VRHP7hEirC349viEBhQ,1653
63
63
  cidc_schemas/schemas/assays/atacseq_assay.json,sha256=5ezVeJmrwOWuXLtf9-gH8iYKhLCys9Ii2VamezNI_hM,2547
64
- cidc_schemas/schemas/assays/ctdna_assay.json,sha256=1AwUYiE93XEVDg_FPFyV2OgaD7Ry7pWoD4AH2DAXasA,3503
64
+ cidc_schemas/schemas/assays/ctdna_assay.json,sha256=NjsS0htltMIN_sGoissbnkCZCQIbNdNF1YNfWAU_Unk,3421
65
65
  cidc_schemas/schemas/assays/cytof_assay.json,sha256=rf0vebcoHY_dS4wlqkoBY9rclSAE3CRdxeGLXAbhScM,3659
66
66
  cidc_schemas/schemas/assays/cytof_assay_core.json,sha256=Vwg3RmEEdCpZtDDaVAWBDCKTMnSxagsdqSJq4AiDu9w,8828
67
67
  cidc_schemas/schemas/assays/elisa_assay.json,sha256=YHeoxYmgdpefLWkBXNg60JUig2Ccqg8thWZ5M5q3hyw,2233
@@ -89,6 +89,7 @@ cidc_schemas/schemas/assays/components/composite_image.json,sha256=k9EaBG3y9j-lv
89
89
  cidc_schemas/schemas/assays/components/controls.json,sha256=_Wxz7W2msTGJ2Ei4XZg0Qy1t8A5_rLSHNvdPurC073E,458
90
90
  cidc_schemas/schemas/assays/components/enrichment_core.json,sha256=zC5G7q-QyNrdynCOoPCCSfOuSKq8TiDH-Pl6gITNfVQ,813
91
91
  cidc_schemas/schemas/assays/components/excluded_samples.json,sha256=BAuh31ZTGLBEQkGxTkZQQo05CGD4OeHwFOVyVZgdkHI,663
92
+ cidc_schemas/schemas/assays/components/hande_local_file.json,sha256=0fMiJo3DMIzL6CVm0JCKdgJqT3-L7ppUHNjtLdVQpcU,454
92
93
  cidc_schemas/schemas/assays/components/image.json,sha256=1llHvtKct7EfgVRibufHf6mfB8HPScPe8-vCoQQzKDA,1260
93
94
  cidc_schemas/schemas/assays/components/imaging_data.json,sha256=pFMGY03w6VkA4RGvx9YFeT969oLGWxEmjvPe01mk3FU,926
94
95
  cidc_schemas/schemas/assays/components/local_file.json,sha256=NWBTV1FIr8KQXFNFiUwxe68ZRiCKxx8Z2rPcMZLp5ug,405
@@ -126,10 +127,10 @@ cidc_schemas/schemas/templates/analyses/wes_analysis_template.json,sha256=V5RRZ3
126
127
  cidc_schemas/schemas/templates/analyses/wes_tumor_only_analysis_template.json,sha256=oHQ89pnzqGWE2sfb5sYGYhyknyd0pr0dTEGTYn2y_tQ,16240
127
128
  cidc_schemas/schemas/templates/assays/atacseq_fastq_template.json,sha256=7WygawkxnhFu5xBAuIhSOBD8TwCqDgINjC-HIYeCf4Q,3928
128
129
  cidc_schemas/schemas/templates/assays/clinical_data_template.json,sha256=1luQXzyqbAKKiNVwVQFeZ4dwzVpnTeGAropzd_mYmx4,2193
129
- cidc_schemas/schemas/templates/assays/ctdna_template.json,sha256=kNDDyRDz_521Snxo21GmhbYLJgGIzM6axRKsbK3JR74,6077
130
+ cidc_schemas/schemas/templates/assays/ctdna_template.json,sha256=KDyOPbBh0dytlZRJVKNuaGEB8MAyq6Ls1CvI8d2wF3o,6151
130
131
  cidc_schemas/schemas/templates/assays/cytof_template.json,sha256=YGaLt7DKsz32o3na8NDs-bXteVnAPMiF1hLH643f6kY,13328
131
132
  cidc_schemas/schemas/templates/assays/elisa_template.json,sha256=Q8cv5ZpaRZUfvr6e4PC4uvMqhhaDGLdvVMN_s8Uiajw,2259
132
- cidc_schemas/schemas/templates/assays/hande_template.json,sha256=BNMQO4JpBrjuD8ITH1x7cJfkqI4bgKZilvN9yqavaqs,4293
133
+ cidc_schemas/schemas/templates/assays/hande_template.json,sha256=EtFvoEtXZelqQPYuJKRbo2127MUek6wGnMcOvMMr3Os,4391
133
134
  cidc_schemas/schemas/templates/assays/ihc_template.json,sha256=lOSP6v24FMk-WN7Za4IYQkM94R-1TEvrnllRopEEYa4,7341
134
135
  cidc_schemas/schemas/templates/assays/mibi_template.json,sha256=T5gAgsmWpUkkO6CI7aFpyD4efSTZsNmbsLLBrHXpNzg,7787
135
136
  cidc_schemas/schemas/templates/assays/microbiome_template.json,sha256=2qaTB8W-tG6NhbSJ3KAEIacp1E4g-cFBGMOMc5zTafo,3578
@@ -153,9 +154,9 @@ cidc_schemas/schemas/templates/manifests/tissue_slide_template.json,sha256=Y3951
153
154
  cidc_schemas/schemas/templates/manifests/tumor_normal_pairing_template.json,sha256=lVJrGb28n-vyfjGBzhrzjn1lMKw1b4HXXmWtwA603v0,2797
154
155
  cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json,sha256=-CC7Hg-qzZ7e5QrrnkybrS1Vrfq2zlgtxU4kRnR5is8,13472
155
156
  cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json,sha256=uPiiEo1xEde6MDhQDapLIjL8XcghgeoCEDdZTzGYFBA,12617
156
- nci_cidc_schemas-0.26.36.dist-info/LICENSE,sha256=zK77-w4rYCZBHAYJEGkcFuPXwKIsP7jMPZ2iQOXjzko,1072
157
- nci_cidc_schemas-0.26.36.dist-info/METADATA,sha256=0hI13s8gAgLo2Z70NJIV5bt8j3H_CUDgWZNJwW86JYY,4314
158
- nci_cidc_schemas-0.26.36.dist-info/WHEEL,sha256=XRxW4r1PNiVhMpP4bT9oWtu3HyndxpJ84SkubFgzp_Y,109
159
- nci_cidc_schemas-0.26.36.dist-info/entry_points.txt,sha256=kSyTzXeJQrJp_2ZX0GS_NnbJR8ceQKLBSgER46PM0hs,55
160
- nci_cidc_schemas-0.26.36.dist-info/top_level.txt,sha256=Wwb5Cu7QrnbmSJxI2d00e3-Mir36t0jTRnSulmfhi30,13
161
- nci_cidc_schemas-0.26.36.dist-info/RECORD,,
157
+ nci_cidc_schemas-0.26.37.dist-info/LICENSE,sha256=zK77-w4rYCZBHAYJEGkcFuPXwKIsP7jMPZ2iQOXjzko,1072
158
+ nci_cidc_schemas-0.26.37.dist-info/METADATA,sha256=Mt2qQfxGcS3Gk4DCRwnghKWQtfC99WAQb2ypxD3gbmw,4314
159
+ nci_cidc_schemas-0.26.37.dist-info/WHEEL,sha256=TJ49d73sNs10F0aze1W_bTW2P_X7-F4YXOlBqoqA-jY,109
160
+ nci_cidc_schemas-0.26.37.dist-info/entry_points.txt,sha256=kSyTzXeJQrJp_2ZX0GS_NnbJR8ceQKLBSgER46PM0hs,55
161
+ nci_cidc_schemas-0.26.37.dist-info/top_level.txt,sha256=Wwb5Cu7QrnbmSJxI2d00e3-Mir36t0jTRnSulmfhi30,13
162
+ nci_cidc_schemas-0.26.37.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any