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.
- {nci_cidc_schemas-0.27.5/nci_cidc_schemas.egg-info → nci_cidc_schemas-0.27.7}/PKG-INFO +3 -2
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/__init__.py +1 -1
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/sample.json +21 -7
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/wes_analysis_template.json +9 -9
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/template.py +36 -1
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7/nci_cidc_schemas.egg-info}/PKG-INFO +3 -2
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_1PA_multiWES.json +3 -3
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_cytof_with_analysis.json +2 -2
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/manifest_data.py +6 -6
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_template.py +32 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/LICENSE +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/MANIFEST.in +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/README.md +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/cli.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/constants.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/json_validation.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/metaschema/strict_meta_schema.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/migrations.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/pipeline_configs/rna_level1_analysis_config.yaml.j2 +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/__init__.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/constants.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/core.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/extra_metadata.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/merger.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/prism/pipelines.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/aliquot.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bam.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bam_bai.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bed.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bigwig.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_binary.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_clinical_csv.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_clinical_docx.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_clinical_xlsx.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_cncf.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_cns.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_core.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_csv.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_elisa_xlsx.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_fastq_gz.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_fcs.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_file.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_gz.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_image.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_jpg.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_json.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_junction.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_log.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_maf.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_narrowPeak.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_npx.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_ome_tiff.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_pdf.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_png.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_rcc.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_rdata.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_tbi.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_text.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_tsv.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_vcf.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_vcf_gz.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_xlsx.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_yaml.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_zip.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/atacseq_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/antibody.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/assay_core.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/available_assays.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/available_ngs_analyses.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/composite_image.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/controls.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/enrichment_core.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/excluded_samples.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/hande_local_file.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/image.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging/mif_entry.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging/mif_export.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging/mif_input.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging/mif_roi.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/imaging_data.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/local_file.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mapping.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mibi_antibody.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mibi_imaging/mibi_files.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mibi_imaging/mibi_input.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/mif_antibody.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/multiple_local_files.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/atacseq/atacseq_analysis.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/ngs_assay_record.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/fusion.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/microbiome.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/msisensor.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/neoantigen.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/rna_analysis.json +0 -0
- {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
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/rseqc.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/salmon.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/star.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs/rna/trust4.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs_assay_core.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/ngs_assay_record.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/reads_core.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/components/reads_with_index.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/ctdna_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/cytof_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/cytof_assay_core.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/elisa_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/hande_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/ihc_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/mibi_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/microbiome_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/mif_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/misc_data.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/nanostring_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/olink_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/rna_assay-v0.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/rna_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/tcr_analysis.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/tcr_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/wes_analysis.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/wes_assay.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/wes_core.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/wes_tumor_only_analysis.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/clinical_data.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/clinical_trial.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/participant.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/shipping_core.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/atacseq_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/cytof_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/rna_level1_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/analyses/tcr_analysis_template.json +0 -0
- {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
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/atacseq_fastq_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/clinical_data_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/ctdna_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/cytof_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/elisa_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/hande_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/ihc_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/mibi_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/microbiome_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/mif_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/misc_data_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/nanostring_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/olink_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/rna_bam_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/rna_fastq_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/tcr_adaptive_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/tcr_fastq_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/wes_bam_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/assays/wes_fastq_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/h_and_e_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/microbiome_dna_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/normal_blood_dna_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/normal_tissue_dna_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/pbmc_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/plasma_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/tissue_slide_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/tumor_normal_pairing_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/template_reader.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/template_writer.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/unprism.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/util.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/SOURCES.txt +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/dependency_links.txt +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/entry_points.txt +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/not-zip-safe +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/requires.txt +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/nci_cidc_schemas.egg-info/top_level.txt +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/requirements.txt +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/setup.cfg +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/setup.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/__init__.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/conftest.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/constants.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.1.csv +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.1.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.2.bom.csv +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.2.csv +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.2.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.3.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinical_test_file.docx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_1.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_ihc.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/clinicaltrial_examples/CT_minimal.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/date_examples.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/elisa_test_file.1.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/elisa_test_file.2.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/hande_err_template.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/olink/invalid_olink_assay_1_NPX.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/olink/olink_assay_1_NPX.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/olink/olink_assay_2_NPX.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/olink/olink_assay_combined.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/pbmc_invalid.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/pbmc_manifest_valid.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/1.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/a.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/b.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/c.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/d1/3.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/d1/d2/2.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/invalid_ref.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/target-templates/atacseq_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/target-templates/rna_level1_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/schemas/target-templates/wes_analysis_template.json +0 -0
- {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
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/tiny_invalid_manifest.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/data/tiny_valid_manifest.xlsx +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/__init__.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/__init__.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/analysis_data.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/assay_data.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/utils.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/schema/test_schema.json +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_cidc_data_model.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_constants.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_core.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_extra_metadata.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_merger.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/test_pipelines.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_artifacts.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_assays.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_clinicaltrial_examples.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_json_validation.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_migrations.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_schemas.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_strict_meta_schema.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_template_reader.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_template_writer.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_templates.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_trial_core.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_unprism.py +0 -0
- {nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/test_util.py +0 -0
- {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.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: nci_cidc_schemas
|
|
3
|
-
Version: 0.27.
|
|
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
|
|
@@ -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
|
-
"
|
|
172
|
-
"
|
|
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
|
-
"
|
|
177
|
-
"
|
|
177
|
+
"Surgical Excision",
|
|
178
|
+
"Fine Needle Aspiration",
|
|
178
179
|
"Lumbar Puncture",
|
|
179
|
-
"
|
|
180
|
-
"
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: nci_cidc_schemas
|
|
3
|
-
Version: 0.27.
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
226
|
+
"sample_collection_procedure": "Surgical Excision",
|
|
227
227
|
"processed_sample_volume_units": "Microliters"
|
|
228
228
|
}
|
|
229
229
|
],
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/tests/prism/cidc_test_data/manifest_data.py
RENAMED
|
@@ -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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/metaschema/strict_meta_schema.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bam.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_bed.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_cns.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_csv.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_fcs.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_gz.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_jpg.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_log.json
RENAMED
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_maf.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_npx.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_pdf.json
RENAMED
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_png.json
RENAMED
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_rcc.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_tbi.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_tsv.json
RENAMED
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_vcf.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/artifacts/artifact_zip.json
RENAMED
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/atacseq_assay.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/ctdna_assay.json
RENAMED
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/cytof_assay.json
RENAMED
|
File without changes
|
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/elisa_assay.json
RENAMED
|
File without changes
|
{nci_cidc_schemas-0.27.5 → nci_cidc_schemas-0.27.7}/cidc_schemas/schemas/assays/hande_assay.json
RENAMED
|
File without changes
|