nci-cidc-schemas 0.27.5__tar.gz → 0.27.7__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.

Potentially problematic release.


This version of nci-cidc-schemas might be problematic. Click here for more details.

Files changed (236) hide show
  1. {nci_cidc_schemas-0.27.5/nci_cidc_schemas.egg-info → nci_cidc_schemas-0.27.7}/PKG-INFO +3 -2
  2. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/__init__.py +1 -1
  3. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/sample.json +21 -7
  4. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/wes_analysis_template.json +9 -9
  5. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/template.py +36 -1
  6. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7/nci_cidc_schemas.egg-info}/PKG-INFO +3 -2
  7. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_1PA_multiWES.json +3 -3
  8. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_cytof_with_analysis.json +2 -2
  9. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/manifest_data.py +6 -6
  10. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_template.py +32 -0
  11. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/LICENSE +0 -0
  12. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/MANIFEST.in +0 -0
  13. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/README.md +0 -0
  14. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/cli.py +0 -0
  15. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/constants.py +0 -0
  16. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/json_validation.py +0 -0
  17. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/metaschema/strict_meta_schema.json +0 -0
  18. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/migrations.py +0 -0
  19. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/pipeline_configs/rna_level1_analysis_config.yaml.j2 +0 -0
  20. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/__init__.py +0 -0
  21. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/constants.py +0 -0
  22. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/core.py +0 -0
  23. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/extra_metadata.py +0 -0
  24. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/merger.py +0 -0
  25. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/pipelines.py +0 -0
  26. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/aliquot.json +0 -0
  27. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bam.json +0 -0
  28. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bam_bai.json +0 -0
  29. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bed.json +0 -0
  30. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bigwig.json +0 -0
  31. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_binary.json +0 -0
  32. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_clinical_csv.json +0 -0
  33. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_clinical_docx.json +0 -0
  34. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_clinical_xlsx.json +0 -0
  35. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_cncf.json +0 -0
  36. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_cns.json +0 -0
  37. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_core.json +0 -0
  38. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_csv.json +0 -0
  39. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_elisa_xlsx.json +0 -0
  40. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_fastq_gz.json +0 -0
  41. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_fcs.json +0 -0
  42. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_file.json +0 -0
  43. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_gz.json +0 -0
  44. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_image.json +0 -0
  45. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_jpg.json +0 -0
  46. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_json.json +0 -0
  47. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_junction.json +0 -0
  48. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_log.json +0 -0
  49. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_maf.json +0 -0
  50. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_narrowPeak.json +0 -0
  51. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_npx.json +0 -0
  52. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_ome_tiff.json +0 -0
  53. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_pdf.json +0 -0
  54. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_png.json +0 -0
  55. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_rcc.json +0 -0
  56. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_rdata.json +0 -0
  57. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_tbi.json +0 -0
  58. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_text.json +0 -0
  59. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_tsv.json +0 -0
  60. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_vcf.json +0 -0
  61. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_vcf_gz.json +0 -0
  62. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_xlsx.json +0 -0
  63. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_yaml.json +0 -0
  64. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_zip.json +0 -0
  65. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/atacseq_assay.json +0 -0
  66. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/antibody.json +0 -0
  67. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/assay_core.json +0 -0
  68. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/available_assays.json +0 -0
  69. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/available_ngs_analyses.json +0 -0
  70. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/composite_image.json +0 -0
  71. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/controls.json +0 -0
  72. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/enrichment_core.json +0 -0
  73. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/excluded_samples.json +0 -0
  74. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/hande_local_file.json +0 -0
  75. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/image.json +0 -0
  76. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging/mif_entry.json +0 -0
  77. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging/mif_export.json +0 -0
  78. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging/mif_input.json +0 -0
  79. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging/mif_roi.json +0 -0
  80. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging_data.json +0 -0
  81. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/local_file.json +0 -0
  82. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mapping.json +0 -0
  83. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mibi_antibody.json +0 -0
  84. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mibi_imaging/mibi_files.json +0 -0
  85. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mibi_imaging/mibi_input.json +0 -0
  86. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mif_antibody.json +0 -0
  87. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/multiple_local_files.json +0 -0
  88. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/atacseq/atacseq_analysis.json +0 -0
  89. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/ngs_assay_record.json +0 -0
  90. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/fusion.json +0 -0
  91. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/microbiome.json +0 -0
  92. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/msisensor.json +0 -0
  93. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/neoantigen.json +0 -0
  94. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/rna_analysis.json +0 -0
  95. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/rna_level1_analysis.json +0 -0
  96. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/rseqc.json +0 -0
  97. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/salmon.json +0 -0
  98. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/star.json +0 -0
  99. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/trust4.json +0 -0
  100. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs_assay_core.json +0 -0
  101. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs_assay_record.json +0 -0
  102. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/reads_core.json +0 -0
  103. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/reads_with_index.json +0 -0
  104. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/ctdna_assay.json +0 -0
  105. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/cytof_assay.json +0 -0
  106. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/cytof_assay_core.json +0 -0
  107. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/elisa_assay.json +0 -0
  108. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/hande_assay.json +0 -0
  109. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/ihc_assay.json +0 -0
  110. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/mibi_assay.json +0 -0
  111. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/microbiome_assay.json +0 -0
  112. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/mif_assay.json +0 -0
  113. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/misc_data.json +0 -0
  114. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/nanostring_assay.json +0 -0
  115. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/olink_assay.json +0 -0
  116. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/rna_assay-v0.json +0 -0
  117. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/rna_assay.json +0 -0
  118. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/tcr_analysis.json +0 -0
  119. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/tcr_assay.json +0 -0
  120. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/wes_analysis.json +0 -0
  121. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/wes_assay.json +0 -0
  122. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/wes_core.json +0 -0
  123. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/wes_tumor_only_analysis.json +0 -0
  124. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/clinical_data.json +0 -0
  125. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/clinical_trial.json +0 -0
  126. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/participant.json +0 -0
  127. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/shipping_core.json +0 -0
  128. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/atacseq_analysis_template.json +0 -0
  129. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/cytof_analysis_template.json +0 -0
  130. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/rna_level1_analysis_template.json +0 -0
  131. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/tcr_analysis_template.json +0 -0
  132. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/wes_tumor_only_analysis_template.json +0 -0
  133. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/atacseq_fastq_template.json +0 -0
  134. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/clinical_data_template.json +0 -0
  135. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/ctdna_template.json +0 -0
  136. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/cytof_template.json +0 -0
  137. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/elisa_template.json +0 -0
  138. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/hande_template.json +0 -0
  139. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/ihc_template.json +0 -0
  140. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/mibi_template.json +0 -0
  141. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/microbiome_template.json +0 -0
  142. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/mif_template.json +0 -0
  143. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/misc_data_template.json +0 -0
  144. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/nanostring_template.json +0 -0
  145. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/olink_template.json +0 -0
  146. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/rna_bam_template.json +0 -0
  147. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/rna_fastq_template.json +0 -0
  148. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/tcr_adaptive_template.json +0 -0
  149. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/tcr_fastq_template.json +0 -0
  150. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/wes_bam_template.json +0 -0
  151. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/wes_fastq_template.json +0 -0
  152. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/h_and_e_template.json +0 -0
  153. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/microbiome_dna_template.json +0 -0
  154. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/normal_blood_dna_template.json +0 -0
  155. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/normal_tissue_dna_template.json +0 -0
  156. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/pbmc_template.json +0 -0
  157. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/plasma_template.json +0 -0
  158. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/tissue_slide_template.json +0 -0
  159. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/tumor_normal_pairing_template.json +0 -0
  160. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json +0 -0
  161. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json +0 -0
  162. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/template_reader.py +0 -0
  163. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/template_writer.py +0 -0
  164. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/unprism.py +0 -0
  165. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/util.py +0 -0
  166. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/SOURCES.txt +0 -0
  167. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/dependency_links.txt +0 -0
  168. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/entry_points.txt +0 -0
  169. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/not-zip-safe +0 -0
  170. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/requires.txt +0 -0
  171. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/top_level.txt +0 -0
  172. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/requirements.txt +0 -0
  173. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/setup.cfg +0 -0
  174. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/setup.py +0 -0
  175. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/__init__.py +0 -0
  176. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/conftest.py +0 -0
  177. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/constants.py +0 -0
  178. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.1.csv +0 -0
  179. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.1.xlsx +0 -0
  180. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.2.bom.csv +0 -0
  181. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.2.csv +0 -0
  182. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.2.xlsx +0 -0
  183. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.3.xlsx +0 -0
  184. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.docx +0 -0
  185. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_1.json +0 -0
  186. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_ihc.json +0 -0
  187. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_minimal.json +0 -0
  188. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/date_examples.xlsx +0 -0
  189. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/elisa_test_file.1.xlsx +0 -0
  190. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/elisa_test_file.2.xlsx +0 -0
  191. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/hande_err_template.xlsx +0 -0
  192. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/olink/invalid_olink_assay_1_NPX.xlsx +0 -0
  193. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/olink/olink_assay_1_NPX.xlsx +0 -0
  194. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/olink/olink_assay_2_NPX.xlsx +0 -0
  195. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/olink/olink_assay_combined.xlsx +0 -0
  196. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/pbmc_invalid.xlsx +0 -0
  197. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/pbmc_manifest_valid.xlsx +0 -0
  198. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/1.json +0 -0
  199. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/a.json +0 -0
  200. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/b.json +0 -0
  201. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/c.json +0 -0
  202. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/d1/3.json +0 -0
  203. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/d1/d2/2.json +0 -0
  204. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/invalid_ref.json +0 -0
  205. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/target-templates/atacseq_analysis_template.json +0 -0
  206. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/target-templates/rna_level1_analysis_template.json +0 -0
  207. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/target-templates/wes_analysis_template.json +0 -0
  208. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/target-templates/wes_tumor_only_analysis_template.json +0 -0
  209. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/tiny_invalid_manifest.xlsx +0 -0
  210. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/tiny_valid_manifest.xlsx +0 -0
  211. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/__init__.py +0 -0
  212. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/__init__.py +0 -0
  213. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/analysis_data.py +0 -0
  214. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/assay_data.py +0 -0
  215. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/utils.py +0 -0
  216. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/schema/test_schema.json +0 -0
  217. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_cidc_data_model.py +0 -0
  218. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_constants.py +0 -0
  219. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_core.py +0 -0
  220. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_extra_metadata.py +0 -0
  221. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_merger.py +0 -0
  222. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_pipelines.py +0 -0
  223. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_artifacts.py +0 -0
  224. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_assays.py +0 -0
  225. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_clinicaltrial_examples.py +0 -0
  226. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_json_validation.py +0 -0
  227. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_migrations.py +0 -0
  228. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_schemas.py +0 -0
  229. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_strict_meta_schema.py +0 -0
  230. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_template_reader.py +0 -0
  231. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_template_writer.py +0 -0
  232. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_templates.py +0 -0
  233. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_trial_core.py +0 -0
  234. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_unprism.py +0 -0
  235. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_util.py +0 -0
  236. {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/utils/test_template_generator.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: nci_cidc_schemas
3
- Version: 0.27.5
3
+ Version: 0.27.7
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
@@ -37,6 +37,7 @@ Dynamic: description-content-type
37
37
  Dynamic: home-page
38
38
  Dynamic: keywords
39
39
  Dynamic: license
40
+ Dynamic: license-file
40
41
  Dynamic: requires-dist
41
42
  Dynamic: requires-python
42
43
  Dynamic: summary
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = """NCI"""
4
4
  __email__ = "nci-cidc-tools-admin@mail.nih.gov"
5
- __version__ = "0.27.05"
5
+ __version__ = "0.27.07"
@@ -168,16 +168,30 @@
168
168
  "description": "Indicates the specimen source of the sample shipped. Example: Na Heparin blood draw aliquots (2 of three), FFPE block #52",
169
169
  "type": "string",
170
170
  "enum": [
171
- "Blood Draw",
172
- "Excision",
171
+ "Fine Needle Aspiration",
172
+ "Phlebotomy",
173
+ "Bone Marrow Aspiration",
174
+ "Bone Marrow Core Biopsy",
173
175
  "Core Biopsy",
174
- "Punch Biopsy",
175
176
  "Endoscopic Biopsy",
176
- "Bone Marrow Core Biopsy",
177
- "Bone Marrow Aspirate",
177
+ "Surgical Excision",
178
+ "Fine Needle Aspiration",
178
179
  "Lumbar Puncture",
179
- "Aspirate",
180
- "Fine-Needle Aspiration",
180
+ "FFPE Block Punch Biopsy",
181
+ "Skin Biopsy",
182
+ "Apheresis",
183
+ "Bone Biopsy",
184
+ "Bronchoalveolar Lavage",
185
+ "Buccal Swab",
186
+ "Leukapheresis",
187
+ "Mid Stream Urine Collection",
188
+ "Peritoneal Lavage",
189
+ "Peritoneal Paracentesis",
190
+ "Pleural Thoracentesis",
191
+ "Saliva Collection",
192
+ "Stool Collection",
193
+ "Surgical Incision",
194
+ "Urine Voiding",
181
195
  "Not Reported",
182
196
  "Other"
183
197
  ]
@@ -293,63 +293,63 @@
293
293
  "type_ref": "sample.json#properties/cimac_id",
294
294
  "process_as": [
295
295
  {
296
- "parse_through": "lambda id: f'{folder or \"\"}analysis/align/{id}/{id}.sorted.dedup.bam'",
296
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/align/{run_id}/{normal_id}.sorted.dedup.bam'",
297
297
  "merge_pointer": "/normal/alignment/align_sorted_dedup",
298
298
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/sorted.dedup.bam",
299
299
  "type_ref": "assays/components/local_file.json#properties/file_path",
300
300
  "is_artifact": 1
301
301
  },
302
302
  {
303
- "parse_through": "lambda id: f'{folder or \"\"}analysis/align/{id}/{id}.sorted.dedup.bam.bai'",
303
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/align/{run_id}/{normal_id}.sorted.dedup.bam.bai'",
304
304
  "merge_pointer": "/normal/alignment/align_sorted_dedup_index",
305
305
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/sorted.dedup.bam.bai",
306
306
  "type_ref": "assays/components/local_file.json#properties/file_path",
307
307
  "is_artifact": 1
308
308
  },
309
309
  {
310
- "parse_through": "lambda id: f'{folder or \"\"}analysis/align/{id}/{id}_recalibrated.bam'",
310
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/align/{run_id}/{normal_id}_recalibrated.bam'",
311
311
  "merge_pointer": "/normal/alignment/align_recalibrated",
312
312
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/recalibrated.bam",
313
313
  "type_ref": "assays/components/local_file.json#properties/file_path",
314
314
  "is_artifact": 1
315
315
  },
316
316
  {
317
- "parse_through": "lambda id: f'{folder or \"\"}analysis/align/{id}/{id}_recalibrated.bam.bai'",
317
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/align/{run_id}/{normal_id}_recalibrated.bam.bai'",
318
318
  "merge_pointer": "/normal/alignment/align_recalibrated_index",
319
319
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/recalibrated.bam.bai",
320
320
  "type_ref": "assays/components/local_file.json#properties/file_path",
321
321
  "is_artifact": 1
322
322
  },
323
323
  {
324
- "parse_through": "lambda id: f'{folder or \"\"}analysis/germline/{id}/{id}_haplotyper.output.vcf'",
324
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/germline/{run_id}/{normal_id}_haplotyper.output.vcf'",
325
325
  "merge_pointer": "/normal/germline/haplotyper_output",
326
326
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/haplotyper_output.vcf",
327
327
  "type_ref": "assays/components/local_file.json#properties/file_path",
328
328
  "is_artifact": 1
329
329
  },
330
330
  {
331
- "parse_through": "lambda id: f'{folder or \"\"}analysis/germline/{id}/{id}_haplotyper.targets.vcf.gz'",
331
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/germline/{run_id}/{normal_id}_haplotyper.targets.vcf.gz'",
332
332
  "merge_pointer": "/normal/germline/haplotyper_targets",
333
333
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/haplotyper_targets.vcf.gz",
334
334
  "type_ref": "assays/components/local_file.json#properties/file_path",
335
335
  "is_artifact": 1
336
336
  },
337
337
  {
338
- "parse_through": "lambda id: f'{folder or \"\"}analysis/hlahd/{id}/result/{id}_final.result.txt'",
338
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/hlahd/{run_id}/result/{normal_id}_final.result.txt'",
339
339
  "merge_pointer": "/normal/hla/hla_final_result",
340
340
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/hla_final_result.txt",
341
341
  "type_ref": "assays/components/local_file.json#properties/file_path",
342
342
  "is_artifact": 1
343
343
  },
344
344
  {
345
- "parse_through": "lambda id: f'{folder or \"\"}analysis/optitype/{id}/{id}_result.tsv'",
345
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/optitype/{run_id}/{normal_id}_result.tsv'",
346
346
  "merge_pointer": "/normal/hla/optitype_result",
347
347
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/optitype_result.tsv",
348
348
  "type_ref": "assays/components/local_file.json#properties/file_path",
349
349
  "is_artifact": 1
350
350
  },
351
351
  {
352
- "parse_through": "lambda id: f'{folder or \"\"}analysis/xhla/{id}/report-{id}-hla.json'",
352
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/xhla/{run_id}/report-{normal_id}-hla.json'",
353
353
  "merge_pointer": "/normal/hla/xhla_report_hla",
354
354
  "gcs_uri_format": "{protocol identifier}/wes/{run id}/analysis/normal/{normal cimac id}/xhla_report_hla.json",
355
355
  "type_ref": "assays/components/local_file.json#properties/file_path",
@@ -750,7 +750,7 @@ class _FieldDef(NamedTuple):
750
750
 
751
751
  if self.parse_through:
752
752
  try:
753
- raw_val = eval(self.parse_through, format_context, {})(raw_val)
753
+ raw_val = self._eval_lambda_expression(raw_val, format_context)
754
754
 
755
755
  # catching everything, because of eval
756
756
  except Exception as e:
@@ -786,6 +786,41 @@ class _FieldDef(NamedTuple):
786
786
  else:
787
787
  return [AtomicChange(self.merge_pointer, val)], files
788
788
 
789
+ def _eval_lambda_expression(self, raw_val: str, format_context: dict):
790
+ """
791
+ Evaluates a lambda expression stored in `self.parse_through`, optionally
792
+ passing an additional parameter if the lambda function has two parameters.
793
+
794
+ Args:
795
+ raw_val (str): Initial value to process.
796
+ format_context (dict): Dictionary providing format context.
797
+
798
+ Returns:
799
+ Processed value after applying the lambda function.
800
+ """
801
+ parse_lambda = self.parse_through
802
+ # Check for multiple lambda parameters
803
+ if (
804
+ parse_lambda.startswith("lambda ")
805
+ and ":" in parse_lambda
806
+ and "," in parse_lambda
807
+ ):
808
+ # Extract the parameter section (between "lambda " and ":")
809
+ colon_index = parse_lambda.find(":")
810
+ param_section = parse_lambda[7:colon_index].strip()
811
+ params = [param.strip() for param in param_section.split(",")]
812
+
813
+ # Handles up to two parameters at this time
814
+ if len(params) == 2:
815
+ # Convert underscores to spaces to match column header formatting
816
+ param_name = params[1].replace("_", " ")
817
+ extra_val = format_context.get(param_name)
818
+ # Evaluate the lambda function with two parameters
819
+ return eval(parse_lambda, format_context, {})(raw_val, extra_val)
820
+
821
+ # Evaluate the lambda function with one parameter
822
+ return eval(parse_lambda, format_context, {})(raw_val)
823
+
789
824
  ## TODO easy - split val coerce / files calc to handle exceptions separately
790
825
  ## TODO hard - files (artifact and multi) should be just coerce?
791
826
  def _calc_val_and_files(self, raw_val, format_context: dict, encrypt_fn: Callable):
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: nci_cidc_schemas
3
- Version: 0.27.5
3
+ Version: 0.27.7
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
@@ -37,6 +37,7 @@ Dynamic: description-content-type
37
37
  Dynamic: home-page
38
38
  Dynamic: keywords
39
39
  Dynamic: license
40
+ Dynamic: license-file
40
41
  Dynamic: requires-dist
41
42
  Dynamic: requires-python
42
43
  Dynamic: summary
@@ -96,7 +96,7 @@
96
96
  "box_number": "1",
97
97
  "sample_location": "A4",
98
98
  "type_of_sample": "Whole Blood",
99
- "sample_collection_procedure": "Blood Draw",
99
+ "sample_collection_procedure": "Surgical Excision",
100
100
  "type_of_primary_container": "EDTA Tube",
101
101
  "type_of_primary_container_other": "Other",
102
102
  "processed_sample_type": "Bone Marrow Film",
@@ -129,7 +129,7 @@
129
129
  "box_number": "1",
130
130
  "sample_location": "A5",
131
131
  "type_of_sample": "Whole Blood",
132
- "sample_collection_procedure": "Blood Draw",
132
+ "sample_collection_procedure": "Surgical Excision",
133
133
  "type_of_primary_container": "EDTA Tube",
134
134
  "type_of_primary_container_other": "Other",
135
135
  "processed_sample_type": "Bone Marrow Film",
@@ -162,7 +162,7 @@
162
162
  "box_number": "1",
163
163
  "sample_location": "A6",
164
164
  "type_of_sample": "Whole Blood",
165
- "sample_collection_procedure": "Blood Draw",
165
+ "sample_collection_procedure": "Surgical Excision",
166
166
  "type_of_primary_container": "EDTA Tube",
167
167
  "type_of_primary_container_other": "Other",
168
168
  "processed_sample_type": "Bone Marrow Film",
@@ -199,7 +199,7 @@
199
199
  "type_of_primary_container": "Sodium Heparin Tube",
200
200
  "type_of_primary_container_other": "Other",
201
201
  "material_storage_condition": "Ambient",
202
- "sample_collection_procedure": "Blood Draw",
202
+ "sample_collection_procedure": "Surgical Excision",
203
203
  "processed_sample_volume_units": "Microliters"
204
204
  },
205
205
  {
@@ -223,7 +223,7 @@
223
223
  "type_of_primary_container": "Sodium Heparin Tube",
224
224
  "type_of_primary_container_other": "Other",
225
225
  "material_storage_condition": "Ambient",
226
- "sample_collection_procedure": "Blood Draw",
226
+ "sample_collection_procedure": "Surgical Excision",
227
227
  "processed_sample_volume_units": "Microliters"
228
228
  }
229
229
  ],
@@ -787,7 +787,7 @@ def normal_blood_dna() -> PrismTestData:
787
787
  "box_number": "1",
788
788
  "sample_location": "A1",
789
789
  "type_of_sample": "Whole Blood",
790
- "sample_collection_procedure": "Blood Draw",
790
+ "sample_collection_procedure": "Surgical Excision",
791
791
  "type_of_primary_container": "EDTA Tube",
792
792
  "type_of_primary_container_other": "Other",
793
793
  "processed_sample_type": "Bone Marrow Film",
@@ -822,7 +822,7 @@ def normal_blood_dna() -> PrismTestData:
822
822
  "box_number": "1",
823
823
  "sample_location": "A2",
824
824
  "type_of_sample": "Whole Blood",
825
- "sample_collection_procedure": "Blood Draw",
825
+ "sample_collection_procedure": "Surgical Excision",
826
826
  "type_of_primary_container": "EDTA Tube",
827
827
  "type_of_primary_container_other": "Other",
828
828
  "processed_sample_type": "Bone Marrow Film",
@@ -857,7 +857,7 @@ def normal_blood_dna() -> PrismTestData:
857
857
  "box_number": "1",
858
858
  "sample_location": "A3",
859
859
  "type_of_sample": "Whole Blood",
860
- "sample_collection_procedure": "Blood Draw",
860
+ "sample_collection_procedure": "Surgical Excision",
861
861
  "type_of_primary_container": "EDTA Tube",
862
862
  "type_of_primary_container_other": "Other",
863
863
  "processed_sample_type": "Bone Marrow Film",
@@ -898,7 +898,7 @@ def normal_blood_dna() -> PrismTestData:
898
898
  "box_number": "1",
899
899
  "sample_location": "A4",
900
900
  "type_of_sample": "Whole Blood",
901
- "sample_collection_procedure": "Blood Draw",
901
+ "sample_collection_procedure": "Surgical Excision",
902
902
  "type_of_primary_container": "EDTA Tube",
903
903
  "type_of_primary_container_other": "Other",
904
904
  "processed_sample_type": "Bone Marrow Film",
@@ -932,7 +932,7 @@ def normal_blood_dna() -> PrismTestData:
932
932
  "box_number": "1",
933
933
  "sample_location": "A5",
934
934
  "type_of_sample": "Whole Blood",
935
- "sample_collection_procedure": "Blood Draw",
935
+ "sample_collection_procedure": "Surgical Excision",
936
936
  "type_of_primary_container": "EDTA Tube",
937
937
  "type_of_primary_container_other": "Other",
938
938
  "processed_sample_type": "Bone Marrow Film",
@@ -966,7 +966,7 @@ def normal_blood_dna() -> PrismTestData:
966
966
  "box_number": "1",
967
967
  "sample_location": "A6",
968
968
  "type_of_sample": "Whole Blood",
969
- "sample_collection_procedure": "Blood Draw",
969
+ "sample_collection_procedure": "Surgical Excision",
970
970
  "type_of_primary_container": "EDTA Tube",
971
971
  "type_of_primary_container_other": "Other",
972
972
  "processed_sample_type": "Bone Marrow Film",
@@ -676,3 +676,35 @@ def test_fixation_stabilization_type(fixation_type, expected):
676
676
  else:
677
677
  with pytest.raises(ValueError):
678
678
  validate_fixation_stabilization_type(fixation_type)
679
+
680
+
681
+ def test_eval_lambda_expression():
682
+ prop_def_1 = {
683
+ "parse_through": "lambda id: f'{folder or \"\"}analysis/optitype/{id}/{id}_result.tsv'",
684
+ "merge_pointer": "/tumor/hla/optitype_result",
685
+ "is_artifact": 1,
686
+ "coerce": int,
687
+ "key_name": "prop1",
688
+ }
689
+ raw_val = "test_value"
690
+ format_context = {"run id": "test_run_id", "folder": "test_folder/"}
691
+
692
+ field_def = _FieldDef(**prop_def_1)
693
+ eval_value = field_def._eval_lambda_expression(raw_val, format_context)
694
+ assert (
695
+ eval_value == "test_folder/analysis/optitype/test_value/test_value_result.tsv"
696
+ )
697
+
698
+ prop_def_2 = {
699
+ "parse_through": "lambda normal_id, run_id: f'{folder or \"\"}analysis/align/{run_id}/{normal_id}.sorted.dedup.bam'",
700
+ "merge_pointer": "/normal/alignment/align_sorted_dedup",
701
+ "is_artifact": 1,
702
+ "coerce": int,
703
+ "key_name": "prop2",
704
+ }
705
+ field_def = _FieldDef(**prop_def_2)
706
+ eval_value = field_def._eval_lambda_expression(raw_val, format_context)
707
+ assert (
708
+ eval_value
709
+ == "test_folder/analysis/align/test_run_id/test_value.sorted.dedup.bam"
710
+ )