nci-cidc-schemas 0.27.15__tar.gz → 0.27.16__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.15/nci_cidc_schemas.egg-info → nci_cidc_schemas-0.27.16}/PKG-INFO +1 -1
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/__init__.py +1 -1
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/json_validation.py +2 -3
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/prism/core.py +3 -3
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/prism/extra_metadata.py +2 -2
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/prism/merger.py +2 -3
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/prism/pipelines.py +2 -3
- nci_cidc_schemas-0.27.16/cidc_schemas/schemas/assays/components/mihc_input.json +36 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/mihc_assay.json +3 -28
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/mihc_template.json +6 -24
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/template.py +2 -3
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/template_reader.py +2 -2
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/template_writer.py +2 -2
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/util.py +14 -2
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16/nci_cidc_schemas.egg-info}/PKG-INFO +1 -1
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/nci_cidc_schemas.egg-info/SOURCES.txt +1 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/cidc_test_data/assay_data.py +83 -23
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/LICENSE +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/MANIFEST.in +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/README.md +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/cli.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/constants.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/metaschema/strict_meta_schema.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/migrations.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/pipeline_configs/rna_level1_analysis_config.yaml.j2 +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/prism/__init__.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/prism/constants.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/aliquot.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_bam.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_bam_bai.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_bed.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_bigwig.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_binary.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_clinical_csv.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_clinical_docx.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_clinical_xlsx.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_cncf.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_cns.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_core.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_csv.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_elisa_xlsx.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_fastq_gz.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_fcs.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_file.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_gz.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_h5ad.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_image.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_jpg.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_json.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_junction.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_log.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_maf.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_narrowPeak.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_npx.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_ome_tiff.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_pdf.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_png.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_rcc.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_rdata.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_tbi.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_text.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_tsv.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_vcf.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_vcf_gz.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_xlsx.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_yaml.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/artifacts/artifact_zip.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/atacseq_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/antibody.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/assay_core.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/available_assays.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/available_ngs_analyses.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/composite_image.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/controls.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/enrichment_core.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/excluded_samples.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/hande_local_file.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/image.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/imaging/mif_entry.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/imaging/mif_export.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/imaging/mif_input.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/imaging/mif_roi.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/imaging_data.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/local_file.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/mapping.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/mibi_antibody.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/mibi_imaging/mibi_input.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/mif_antibody.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/mihc_antibody.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/multiple_local_files.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/atacseq/atacseq_analysis.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/ngs_assay_record.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/fusion.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/microbiome.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/msisensor.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/neoantigen.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/rna_analysis.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/rna_level1_analysis.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/rseqc.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/salmon.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/star.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs/rna/trust4.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs_assay_core.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/ngs_assay_record.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/reads_core.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/components/reads_with_index.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/ctdna_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/cytof_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/cytof_assay_core.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/elisa_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/hande_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/ihc_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/mibi_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/microbiome_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/mif_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/misc_data.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/nanostring_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/olink_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/rna_assay-v0.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/rna_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/tcr_analysis.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/tcr_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/wes_analysis.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/wes_assay.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/wes_core.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/wes_tumor_only_analysis.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/clinical_data.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/clinical_trial.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/participant.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/sample.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/shipping_core.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/analyses/atacseq_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/analyses/cytof_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/analyses/rna_level1_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/analyses/tcr_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/analyses/wes_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/analyses/wes_tumor_only_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/atacseq_fastq_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/clinical_data_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/ctdna_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/cytof_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/elisa_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/hande_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/ihc_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/mibi_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/microbiome_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/mif_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/misc_data_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/nanostring_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/olink_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/rna_bam_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/rna_fastq_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/tcr_adaptive_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/tcr_fastq_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/wes_bam_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/assays/wes_fastq_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/h_and_e_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/microbiome_dna_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/normal_blood_dna_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/normal_tissue_dna_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/pbmc_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/plasma_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/tissue_slide_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/tumor_normal_pairing_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/tumor_tissue_dna_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/templates/manifests/tumor_tissue_rna_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/unprism.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/nci_cidc_schemas.egg-info/dependency_links.txt +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/nci_cidc_schemas.egg-info/entry_points.txt +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/nci_cidc_schemas.egg-info/not-zip-safe +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/nci_cidc_schemas.egg-info/requires.txt +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/nci_cidc_schemas.egg-info/top_level.txt +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/requirements.txt +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/setup.cfg +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/setup.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/__init__.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/conftest.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/constants.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinical_test_file.1.csv +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinical_test_file.1.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinical_test_file.2.bom.csv +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinical_test_file.2.csv +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinical_test_file.2.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinical_test_file.3.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinical_test_file.docx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinicaltrial_examples/CT_1.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinicaltrial_examples/CT_1PA_multiWES.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinicaltrial_examples/CT_cytof_with_analysis.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinicaltrial_examples/CT_ihc.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/clinicaltrial_examples/CT_minimal.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/date_examples.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/elisa_test_file.1.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/elisa_test_file.2.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/hande_err_template.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/olink/invalid_olink_assay_1_NPX.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/olink/olink_assay_1_NPX.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/olink/olink_assay_2_NPX.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/olink/olink_assay_combined.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/pbmc_invalid.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/pbmc_manifest_valid.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/1.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/a.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/b.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/c.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/d1/3.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/d1/d2/2.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/invalid_ref.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/target-templates/atacseq_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/target-templates/rna_level1_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/target-templates/wes_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/schemas/target-templates/wes_tumor_only_analysis_template.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/tiny_invalid_manifest.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/data/tiny_valid_manifest.xlsx +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/__init__.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/cidc_test_data/__init__.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/cidc_test_data/analysis_data.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/cidc_test_data/manifest_data.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/cidc_test_data/utils.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/schema/test_schema.json +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/test_cidc_data_model.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/test_constants.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/test_core.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/test_extra_metadata.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/test_merger.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/test_pipelines.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_artifacts.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_assays.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_clinicaltrial_examples.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_json_validation.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_migrations.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_schemas.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_strict_meta_schema.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_template.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_template_reader.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_template_writer.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_templates.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_trial_core.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_unprism.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/test_util.py +0 -0
- {nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/utils/test_template_generator.py +0 -0
|
@@ -7,7 +7,6 @@ import copy
|
|
|
7
7
|
import functools
|
|
8
8
|
import json
|
|
9
9
|
import collections.abc
|
|
10
|
-
import logging
|
|
11
10
|
from contextlib import contextmanager
|
|
12
11
|
from typing import Optional, Callable, Union
|
|
13
12
|
|
|
@@ -18,9 +17,9 @@ from jsonschema.exceptions import ValidationError, RefResolutionError
|
|
|
18
17
|
from jsonpointer import resolve_pointer
|
|
19
18
|
|
|
20
19
|
from .constants import SCHEMA_DIR, METASCHEMA_PATH
|
|
21
|
-
from .util import JSON
|
|
20
|
+
from .util import get_logger, JSON
|
|
22
21
|
|
|
23
|
-
logger =
|
|
22
|
+
logger = get_logger("cidc_schemas.json_validation")
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
class InDocRefNotFoundError(ValidationError):
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"""Build metadata dictionaries from Excel files."""
|
|
2
2
|
|
|
3
|
-
import logging
|
|
4
3
|
import base64
|
|
5
4
|
import hmac
|
|
6
5
|
from typing import List, Tuple, Union
|
|
@@ -16,12 +15,13 @@ from cidc_schemas.template_reader import XlTemplateReader
|
|
|
16
15
|
from cidc_schemas.template_writer import RowType
|
|
17
16
|
from cidc_schemas.constants import SCHEMA_DIR
|
|
18
17
|
from .merger import PRISM_MERGE_STRATEGIES, MergeCollisionException
|
|
18
|
+
from ..util import get_logger
|
|
19
19
|
from jsonmerge import Merger
|
|
20
20
|
from jsonpointer import EndOfList, JsonPointer, JsonPointerException, resolve_pointer
|
|
21
21
|
|
|
22
22
|
from .constants import SUPPORTED_TEMPLATES
|
|
23
23
|
|
|
24
|
-
logger =
|
|
24
|
+
logger = get_logger(__file__)
|
|
25
25
|
# logger.setLevel(logging.DEBUG)
|
|
26
26
|
|
|
27
27
|
|
|
@@ -453,7 +453,7 @@ def prismify(
|
|
|
453
453
|
# for row in data:
|
|
454
454
|
for row in data:
|
|
455
455
|
|
|
456
|
-
|
|
456
|
+
logger.debug(f" next data row {row!r}")
|
|
457
457
|
|
|
458
458
|
# creating data obj
|
|
459
459
|
data_obj = {}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"""Parsers for extracting extra metadata from files containing molecular data."""
|
|
2
2
|
|
|
3
|
-
import logging
|
|
4
3
|
import re
|
|
5
4
|
from codecs import BOM_UTF8
|
|
6
5
|
from typing import BinaryIO
|
|
@@ -9,8 +8,9 @@ import openpyxl
|
|
|
9
8
|
import pandas as pd
|
|
10
9
|
|
|
11
10
|
from ..json_validation import load_and_validate_schema
|
|
11
|
+
from ..util import get_logger
|
|
12
12
|
|
|
13
|
-
logger =
|
|
13
|
+
logger = get_logger(__file__)
|
|
14
14
|
|
|
15
15
|
# Build a regex from the CIMAC ID pattern in the schema
|
|
16
16
|
cimac_id_regex = re.compile(
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"""Merge CIDC schemas metadata dictionaries."""
|
|
2
2
|
|
|
3
|
-
import logging
|
|
4
3
|
from typing import BinaryIO, List, NamedTuple, Optional, Tuple
|
|
5
4
|
|
|
6
5
|
import jsonschema
|
|
@@ -12,11 +11,11 @@ from ..json_validation import (
|
|
|
12
11
|
strip_metadata_for_validation,
|
|
13
12
|
_Validator,
|
|
14
13
|
)
|
|
15
|
-
from ..util import get_path, get_source
|
|
14
|
+
from ..util import get_logger, get_path, get_source
|
|
16
15
|
from .extra_metadata import EXTRA_METADATA_PARSERS
|
|
17
16
|
from .constants import PROTOCOL_ID_FIELD_NAME
|
|
18
17
|
|
|
19
|
-
logger =
|
|
18
|
+
logger = get_logger(__file__)
|
|
20
19
|
|
|
21
20
|
|
|
22
21
|
def merge_artifact(
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
from collections import defaultdict
|
|
4
4
|
from datetime import datetime
|
|
5
5
|
from io import BytesIO
|
|
6
|
-
import logging
|
|
7
6
|
from tempfile import NamedTemporaryFile
|
|
8
7
|
from typing import Dict, List, NamedTuple, Union
|
|
9
8
|
|
|
@@ -12,9 +11,9 @@ import pandas as pd
|
|
|
12
11
|
|
|
13
12
|
from .constants import PROTOCOL_ID_FIELD_NAME, SUPPORTED_SHIPPING_MANIFESTS
|
|
14
13
|
from ..template import Template
|
|
15
|
-
from ..util import load_pipeline_config_template, participant_id_from_cimac
|
|
14
|
+
from ..util import get_logger, load_pipeline_config_template, participant_id_from_cimac
|
|
16
15
|
|
|
17
|
-
logger =
|
|
16
|
+
logger = get_logger(__file__)
|
|
18
17
|
|
|
19
18
|
|
|
20
19
|
# Note, bucket names must be all lowercase, dash, and underscore
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "metaschema/strict_meta_schema.json#",
|
|
3
|
+
"$id": "mihc_input",
|
|
4
|
+
"title": "MIHC Input Files",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "MIHC assay input files.",
|
|
7
|
+
"inheritableBase": true,
|
|
8
|
+
"properties": {
|
|
9
|
+
"tilemap_file": {
|
|
10
|
+
"$ref": "artifacts/artifact_ome_tiff.json"
|
|
11
|
+
},
|
|
12
|
+
"tilestats_file": {
|
|
13
|
+
"$ref": "artifacts/artifact_csv.json"
|
|
14
|
+
},
|
|
15
|
+
"h5ad_file": {
|
|
16
|
+
"$ref": "artifacts/artifact_h5ad.json"
|
|
17
|
+
},
|
|
18
|
+
"multitiffs_gzip": {
|
|
19
|
+
"$ref": "artifacts/artifact_gz.json"
|
|
20
|
+
},
|
|
21
|
+
"stain_zip": {
|
|
22
|
+
"$ref": "artifacts/artifact_zip.json"
|
|
23
|
+
},
|
|
24
|
+
"geojsons_zip": {
|
|
25
|
+
"$ref": "artifacts/artifact_zip.json"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"tilemap_file",
|
|
30
|
+
"tilestats_file",
|
|
31
|
+
"h5ad_file",
|
|
32
|
+
"multitiffs_gzip",
|
|
33
|
+
"stain_zip",
|
|
34
|
+
"geojsons_zip"
|
|
35
|
+
]
|
|
36
|
+
}
|
{nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/cidc_schemas/schemas/assays/mihc_assay.json
RENAMED
|
@@ -14,35 +14,15 @@
|
|
|
14
14
|
"additionalProperties": false,
|
|
15
15
|
"required": [
|
|
16
16
|
"cimac_id",
|
|
17
|
-
"
|
|
18
|
-
"tilestats_file",
|
|
19
|
-
"h5ad_file",
|
|
20
|
-
"multitiffs_gzip",
|
|
21
|
-
"stain_zip",
|
|
22
|
-
"geojsons_zip"
|
|
17
|
+
"files"
|
|
23
18
|
],
|
|
24
19
|
"properties": {
|
|
25
20
|
"cimac_id": {
|
|
26
21
|
"description": "Id of an sample within this clinical trial, that this assay record is based upon.",
|
|
27
22
|
"$ref": "sample.json#properties/cimac_id"
|
|
28
23
|
},
|
|
29
|
-
"
|
|
30
|
-
"$ref": "
|
|
31
|
-
},
|
|
32
|
-
"tilestats_file": {
|
|
33
|
-
"$ref": "artifacts/artifact_csv.json"
|
|
34
|
-
},
|
|
35
|
-
"h5ad_file": {
|
|
36
|
-
"$ref": "artifacts/artifact_h5ad.json"
|
|
37
|
-
},
|
|
38
|
-
"multitiffs_gzip": {
|
|
39
|
-
"$ref": "artifacts/artifact_gz.json"
|
|
40
|
-
},
|
|
41
|
-
"stain_zip": {
|
|
42
|
-
"$ref": "artifacts/artifact_zip.json"
|
|
43
|
-
},
|
|
44
|
-
"geojsons_zip": {
|
|
45
|
-
"$ref": "artifacts/artifact_zip.json"
|
|
24
|
+
"files": {
|
|
25
|
+
"$ref": "assays/components/mihc_input.json"
|
|
46
26
|
}
|
|
47
27
|
}
|
|
48
28
|
}
|
|
@@ -82,11 +62,6 @@
|
|
|
82
62
|
}
|
|
83
63
|
},
|
|
84
64
|
|
|
85
|
-
|
|
86
|
-
"excluded_samples": {
|
|
87
|
-
"$ref": "assays/components/excluded_samples.json"
|
|
88
|
-
},
|
|
89
|
-
|
|
90
65
|
"records": {
|
|
91
66
|
"type": "array",
|
|
92
67
|
"description": "A single data record from a mIHC assay.",
|
|
@@ -98,24 +98,21 @@
|
|
|
98
98
|
{
|
|
99
99
|
"merge_pointer": "0/cimac_id",
|
|
100
100
|
"type_ref": "sample.json#properties/cimac_id"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"Run info":
|
|
104
|
-
{
|
|
101
|
+
},
|
|
105
102
|
"Tilemap file": {
|
|
106
|
-
"merge_pointer": "0/tilemap_file",
|
|
103
|
+
"merge_pointer": "0/files/tilemap_file",
|
|
107
104
|
"is_artifact": 1,
|
|
108
105
|
"gcs_uri_format": "{protocol identifier}/mihc/{cimac id}/tilemap.ome.tiff",
|
|
109
106
|
"type_ref": "assays/components/local_file.json#properties/file_path"
|
|
110
107
|
},
|
|
111
108
|
"Tilestats file": {
|
|
112
|
-
"merge_pointer": "0/tilestats_file",
|
|
109
|
+
"merge_pointer": "0/files/tilestats_file",
|
|
113
110
|
"is_artifact": 1,
|
|
114
111
|
"gcs_uri_format": "{protocol identifier}/mihc/{cimac id}/tilestats.csv",
|
|
115
112
|
"type_ref": "assays/components/local_file.json#properties/file_path"
|
|
116
113
|
},
|
|
117
114
|
"H5ad file": {
|
|
118
|
-
"merge_pointer": "0/h5ad_file",
|
|
115
|
+
"merge_pointer": "0/files/h5ad_file",
|
|
119
116
|
"is_artifact": 1,
|
|
120
117
|
"gcs_uri_format": "{protocol identifier}/mihc/{cimac id}/h5ad.h5ad",
|
|
121
118
|
"type_ref": "assays/components/local_file.json#properties/file_path"
|
|
@@ -127,13 +124,13 @@
|
|
|
127
124
|
"type_ref": "assays/components/local_file.json#properties/file_path"
|
|
128
125
|
},
|
|
129
126
|
"Stain Zip": {
|
|
130
|
-
"merge_pointer": "0/stain_zip",
|
|
127
|
+
"merge_pointer": "0/files/stain_zip",
|
|
131
128
|
"is_artifact": 1,
|
|
132
129
|
"gcs_uri_format": "{protocol identifier}/mihc/{cimac id}/stains.zip",
|
|
133
130
|
"type_ref": "assays/components/local_file.json#properties/file_path"
|
|
134
131
|
},
|
|
135
132
|
"Geojsons Zip": {
|
|
136
|
-
"merge_pointer": "0/geojsons_zip",
|
|
133
|
+
"merge_pointer": "0/files/geojsons_zip",
|
|
137
134
|
"is_artifact": 1,
|
|
138
135
|
"gcs_uri_format": "{protocol identifier}/mihc/{cimac id}/geo_jsons.zip",
|
|
139
136
|
"type_ref": "assays/components/local_file.json#properties/file_path"
|
|
@@ -222,21 +219,6 @@
|
|
|
222
219
|
}
|
|
223
220
|
}
|
|
224
221
|
}
|
|
225
|
-
},
|
|
226
|
-
"Excluded Samples": {
|
|
227
|
-
"prism_data_object_pointer": "/excluded_samples/-",
|
|
228
|
-
"data_columns": {
|
|
229
|
-
"Samples Excluded From Analysis": {
|
|
230
|
-
"cimac id": {
|
|
231
|
-
"type_ref": "sample.json#properties/cimac_id",
|
|
232
|
-
"merge_pointer": "0/cimac_id"
|
|
233
|
-
},
|
|
234
|
-
"reason": {
|
|
235
|
-
"type_ref": "assays/components/excluded_samples.json#items/properties/reason_excluded",
|
|
236
|
-
"merge_pointer": "0/reason_excluded"
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
222
|
}
|
|
241
223
|
}
|
|
242
224
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
6
|
import os.path
|
|
7
|
-
import logging
|
|
8
7
|
import uuid
|
|
9
8
|
import json
|
|
10
9
|
import jsonschema
|
|
@@ -24,11 +23,11 @@ from collections import defaultdict
|
|
|
24
23
|
|
|
25
24
|
from .constants import ANALYSIS_TEMPLATE_DIR, SCHEMA_DIR, TEMPLATE_DIR
|
|
26
25
|
from .json_validation import _load_dont_validate_schema
|
|
27
|
-
from .util import get_file_ext
|
|
26
|
+
from .util import get_file_ext, get_logger
|
|
28
27
|
|
|
29
28
|
from cidc_ngs_pipeline_api import OUTPUT_APIS
|
|
30
29
|
|
|
31
|
-
logger =
|
|
30
|
+
logger = get_logger("cidc_schemas.template")
|
|
32
31
|
|
|
33
32
|
|
|
34
33
|
POSSIBLE_FILE_EXTS = [
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
"""Defines the `XlTemplateReader` class for reading/validating templates from Excel templates."""
|
|
4
4
|
|
|
5
|
-
import logging
|
|
6
5
|
from itertools import dropwhile, zip_longest
|
|
7
6
|
from typing import Dict, List, Tuple, Union, BinaryIO, NamedTuple, Optional
|
|
8
7
|
from warnings import filterwarnings
|
|
@@ -18,9 +17,10 @@ import openpyxl
|
|
|
18
17
|
|
|
19
18
|
from .template import Template
|
|
20
19
|
from .template_writer import RowType, row_type_from_string
|
|
20
|
+
from .util import get_logger
|
|
21
21
|
from .json_validation import validate_instance
|
|
22
22
|
|
|
23
|
-
logger =
|
|
23
|
+
logger = get_logger("cidc_schemas.template_reader")
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
# A template row is any tuple whose first member is a RowType
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
"""Defines the `XlTemplateWriter` class for writing `Template`s to Excel templates."""
|
|
4
4
|
|
|
5
|
-
import logging
|
|
6
5
|
from typing import Dict, Optional
|
|
7
6
|
from enum import Enum
|
|
8
7
|
from datetime import time
|
|
@@ -11,8 +10,9 @@ import xlsxwriter
|
|
|
11
10
|
from xlsxwriter.utility import xl_rowcol_to_cell, xl_range
|
|
12
11
|
|
|
13
12
|
from .template import Template
|
|
13
|
+
from .util import get_logger
|
|
14
14
|
|
|
15
|
-
logger =
|
|
15
|
+
logger = get_logger("cidc_schemas.template_writer")
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class RowType(Enum):
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
import os
|
|
2
3
|
import re
|
|
4
|
+
import sys
|
|
5
|
+
from typing import List, Optional, Union
|
|
6
|
+
|
|
3
7
|
import jinja2
|
|
4
|
-
from
|
|
8
|
+
from deepdiff import grep
|
|
5
9
|
|
|
6
10
|
JSON = Union[dict, float, int, list, str]
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
|
|
13
|
+
def get_logger(name: Optional[str], log_level=logging.INFO) -> logging.Logger:
|
|
14
|
+
"""Get a configured logger with the given `name`."""
|
|
15
|
+
logger = logging.getLogger(name)
|
|
16
|
+
handler = logging.StreamHandler(sys.stdout)
|
|
17
|
+
logger.addHandler(handler)
|
|
18
|
+
logger.setLevel(log_level)
|
|
19
|
+
logger.propagate = False
|
|
20
|
+
return logger
|
|
9
21
|
|
|
10
22
|
|
|
11
23
|
def load_pipeline_config_template(name: str) -> jinja2.Template:
|
|
@@ -105,6 +105,7 @@ cidc_schemas/schemas/assays/components/mapping.json
|
|
|
105
105
|
cidc_schemas/schemas/assays/components/mibi_antibody.json
|
|
106
106
|
cidc_schemas/schemas/assays/components/mif_antibody.json
|
|
107
107
|
cidc_schemas/schemas/assays/components/mihc_antibody.json
|
|
108
|
+
cidc_schemas/schemas/assays/components/mihc_input.json
|
|
108
109
|
cidc_schemas/schemas/assays/components/multiple_local_files.json
|
|
109
110
|
cidc_schemas/schemas/assays/components/ngs_assay_core.json
|
|
110
111
|
cidc_schemas/schemas/assays/components/ngs_assay_record.json
|
{nci_cidc_schemas-0.27.15 → nci_cidc_schemas-0.27.16}/tests/prism/cidc_test_data/assay_data.py
RENAMED
|
@@ -3385,23 +3385,48 @@ def mihc() -> PrismTestData:
|
|
|
3385
3385
|
"records": [
|
|
3386
3386
|
{
|
|
3387
3387
|
"cimac_id": "CTTTPP111.01",
|
|
3388
|
-
"
|
|
3389
|
-
"
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
"
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
"
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
"
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
"
|
|
3388
|
+
"files": {
|
|
3389
|
+
"tilemap_file": {
|
|
3390
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b2e69"
|
|
3391
|
+
},
|
|
3392
|
+
"tilestats_file": {
|
|
3393
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b2221"
|
|
3394
|
+
},
|
|
3395
|
+
"h5ad_file": {
|
|
3396
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b1244"
|
|
3397
|
+
},
|
|
3398
|
+
"multitiffs_gzip": {
|
|
3399
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b1564"
|
|
3400
|
+
},
|
|
3401
|
+
"stain_zip": {
|
|
3402
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b1999"
|
|
3403
|
+
},
|
|
3404
|
+
"geojsons_zip": {
|
|
3405
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b329"
|
|
3406
|
+
},
|
|
3402
3407
|
},
|
|
3403
|
-
|
|
3404
|
-
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"cimac_id": "CTTTPP121.01",
|
|
3411
|
+
"files": {
|
|
3412
|
+
"tilemap_file": {
|
|
3413
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b2e70"
|
|
3414
|
+
},
|
|
3415
|
+
"tilestats_file": {
|
|
3416
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b23280"
|
|
3417
|
+
},
|
|
3418
|
+
"h5ad_file": {
|
|
3419
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b122111"
|
|
3420
|
+
},
|
|
3421
|
+
"multitiffs_gzip": {
|
|
3422
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b158188"
|
|
3423
|
+
},
|
|
3424
|
+
"stain_zip": {
|
|
3425
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b133312"
|
|
3426
|
+
},
|
|
3427
|
+
"geojsons_zip": {
|
|
3428
|
+
"upload_placeholder": "865f4bae-bca8-42f6-a3b7-cb4db27b4377"
|
|
3429
|
+
},
|
|
3405
3430
|
},
|
|
3406
3431
|
},
|
|
3407
3432
|
],
|
|
@@ -3410,12 +3435,6 @@ def mihc() -> PrismTestData:
|
|
|
3410
3435
|
"staining": "Bond RX",
|
|
3411
3436
|
"imaging_status": "Yes",
|
|
3412
3437
|
"batch_id": "1234",
|
|
3413
|
-
"excluded_samples": [
|
|
3414
|
-
{
|
|
3415
|
-
"cimac_id": "CTTTPP131.01",
|
|
3416
|
-
"reason_excluded": "Staining quality issue",
|
|
3417
|
-
},
|
|
3418
|
-
],
|
|
3419
3438
|
}
|
|
3420
3439
|
]
|
|
3421
3440
|
},
|
|
@@ -3470,13 +3489,54 @@ def mihc() -> PrismTestData:
|
|
|
3470
3489
|
metadata_availability=False,
|
|
3471
3490
|
allow_empty=False,
|
|
3472
3491
|
),
|
|
3492
|
+
LocalFileUploadEntry(
|
|
3493
|
+
local_path="samples2.ome.tiff",
|
|
3494
|
+
gs_key="test_prism_trial_id/mihc/CTTTPP121.01/tilemap.ome.tiff",
|
|
3495
|
+
upload_placeholder="865f4bae-bca8-42f6-a3b7-cb4db27b2e70",
|
|
3496
|
+
metadata_availability=False,
|
|
3497
|
+
allow_empty=False,
|
|
3498
|
+
),
|
|
3499
|
+
LocalFileUploadEntry(
|
|
3500
|
+
local_path="samples2.csv",
|
|
3501
|
+
gs_key="test_prism_trial_id/mihc/CTTTPP121.01/tilestats.csv",
|
|
3502
|
+
upload_placeholder="865f4bae-bca8-42f6-a3b7-cb4db27b23280",
|
|
3503
|
+
metadata_availability=False,
|
|
3504
|
+
allow_empty=False,
|
|
3505
|
+
),
|
|
3506
|
+
LocalFileUploadEntry(
|
|
3507
|
+
local_path="run2.h5ad",
|
|
3508
|
+
gs_key="test_prism_trial_id/mihc/CTTTPP121.01/h5ad.h5ad",
|
|
3509
|
+
upload_placeholder="865f4bae-bca8-42f6-a3b7-cb4db27b122111",
|
|
3510
|
+
metadata_availability=False,
|
|
3511
|
+
allow_empty=False,
|
|
3512
|
+
),
|
|
3513
|
+
LocalFileUploadEntry(
|
|
3514
|
+
local_path="run2.tar.gz",
|
|
3515
|
+
gs_key="test_prism_trial_id/mihc/CTTTPP121.01/multitiffs.tar.gz",
|
|
3516
|
+
upload_placeholder="865f4bae-bca8-42f6-a3b7-cb4db27b158188",
|
|
3517
|
+
metadata_availability=False,
|
|
3518
|
+
allow_empty=False,
|
|
3519
|
+
),
|
|
3520
|
+
LocalFileUploadEntry(
|
|
3521
|
+
local_path="stains2.zip",
|
|
3522
|
+
gs_key="test_prism_trial_id/mihc/CTTTPP121.01/stains.zip",
|
|
3523
|
+
upload_placeholder="865f4bae-bca8-42f6-a3b7-cb4db27b133312",
|
|
3524
|
+
metadata_availability=False,
|
|
3525
|
+
allow_empty=False,
|
|
3526
|
+
),
|
|
3527
|
+
LocalFileUploadEntry(
|
|
3528
|
+
local_path="geojsons.zip",
|
|
3529
|
+
gs_key="test_prism_trial_id/mihc/CTTTPP121.01/geo_jsons.zip",
|
|
3530
|
+
upload_placeholder="865f4bae-bca8-42f6-a3b7-cb4db27b4377",
|
|
3531
|
+
metadata_availability=False,
|
|
3532
|
+
allow_empty=False,
|
|
3533
|
+
),
|
|
3473
3534
|
]
|
|
3474
3535
|
|
|
3475
3536
|
cimac_ids = [
|
|
3476
3537
|
record["cimac_id"]
|
|
3477
3538
|
for batch in prismify_patch["assays"]["mihc"]
|
|
3478
3539
|
for record in batch["records"]
|
|
3479
|
-
for record in [*batch["records"], *batch["excluded_samples"]]
|
|
3480
3540
|
]
|
|
3481
3541
|
base_trial = get_test_trial(cimac_ids)
|
|
3482
3542
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|