Skip to content

Commit

Permalink
testing HuBMAP constraints endpoint (#1355)
Browse files Browse the repository at this point in the history
* testing HuBMAP constraints endpoint

* updating changelog

* fixing release number

* General: Update CHANGELOG to "release" v0.0.24

---------

Co-authored-by: Gesina Phillips <[email protected]>
Co-authored-by: Juan Puerto <=>
  • Loading branch information
jpuerto-psc and gesinaphillips committed Aug 29, 2024
1 parent 8b1b7d0 commit 8c716ba
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 22 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## v0.0.24 (in progress)
## v0.0.24
- Release MERFISH
- Add MERFISH directory schema
- Fix documentation issue for MERFISH
Expand All @@ -17,6 +17,7 @@
- Update Visium no probes directory schema
- Update Visium with probes directory schema
- Update Visium no probes directory schema
- Change to EntityTypeInfo constraint format to support constraints endpoint

## v0.0.23
- Add token to validation_utils.get_assaytype_data, replace URL string concatenation with urllib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```
Directory Errors:
? examples/dataset-examples/bad-cedar-multi-assay-visium-bad-dir-structure/upload/Visium_9OLC_A4_S1
(as visium-no-probes-v2.1)
(as visium-no-probes-v2.2)
: - Required but missing:
- lab_processed\/.*.
- lab_processed\/images\/.*.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ TSVs:
good-visium-assay-metadata.tsv:
Schema: visium-no-probes-v2
Metadata schema version: '2'
Directory schema version: visium-no-probes-v2.1
Directory schema version: visium-no-probes-v2.2
good-visium-histology-metadata.tsv:
Schema: h-and-e-v2
Metadata schema version: '2'
Directory schema version: visium-no-probes-v2.1
Directory schema version: visium-no-probes-v2.2
good-visium-rnaseq-metadata.tsv:
Schema: rnaseq-visium-no-probes-v2
Metadata schema version: '2'
Directory schema version: visium-no-probes-v2.1
Directory schema version: visium-no-probes-v2.2
```
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ files:
required: False
description: A file generated by the micro-meta app that contains a description of the settings that were used to acquire the image data. Email HuBMAP Consortium Help Desk <[email protected]> if help is required in generating this document.
is_qa_qc: True
-
-
pattern: raw\/.*
required: True
description: This is a directory containing raw data.
-
-
pattern: raw\/images\/.*
required: True
description: Raw image files. Using this subdirectory allows for harmonization with other more complex assays, like Visium that includes both raw imaging and sequencing data.
-
-
pattern: raw\/images\/round_info_[^\/]+\.dat
required: True
description: Metadata file for the capture item-value tab separated format. This contains various instrument and acquisition details for each acquisition cycle.
Expand Down
6 changes: 3 additions & 3 deletions src/ingest_validation_tools/directory-schemas/mibi-v2.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ files:
required: False
description: A file generated by the micro-meta app that contains a description of the settings that were used to acquire the image data. Email HuBMAP Consortium Help Desk <[email protected]> if help is required in generating this document.
is_qa_qc: True
-
-
pattern: raw\/.*
required: True
description: This is a directory containing raw data.
-
description: This is a directory containing raw data.
-
pattern: raw\/images\/.*
required: True
description: Raw image files. Using this subdirectory allows for harmonization with other more complex assays, like Visium that includes both raw imaging and sequencing data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ files:
pattern: raw\/fastq\/.*
required: True
description: Raw sequencing files for the experiment
-
-
pattern: raw\/fastq\/RNA\/.*
required: True
description: Directory containing fastq files pertaining to RNAseq sequencing.
Expand Down Expand Up @@ -74,5 +74,5 @@ files:
-
pattern: lab_processed\/transformations\/[^\/]+\.txt
required: False
description: Transformation matrices used to overlay images from the exact same tissue section (e.g., MALDI imaging mass spec, autofluorescence microscopy, MxIF, histological stains).
description: Transformation matrices used to overlay images from the exact same tissue section (e.g., MALDI imaging mass spec, autofluorescence microscopy, MxIF, histological stains).
is_qa_qc: False
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ files:
pattern: raw\/fastq\/.*
required: True
description: Raw sequencing files for the experiment
-
-
pattern: raw\/fastq\/RNA\/.*
required: True
description: Directory containing fastq files pertaining to RNAseq sequencing.
Expand Down Expand Up @@ -78,5 +78,5 @@ files:
-
pattern: lab_processed\/transformations\/[^\/]+\.txt
required: False
description: Transformation matrices used to overlay images from the exact same tissue section (e.g., MALDI imaging mass spec, autofluorescence microscopy, MxIF, histological stains).
description: Transformation matrices used to overlay images from the exact same tissue section (e.g., MALDI imaging mass spec, autofluorescence microscopy, MxIF, histological stains).
is_qa_qc: False
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ files:
pattern: raw\/fastq\/.*
required: True
description: Raw sequencing files for the experiment
-
-
pattern: raw\/fastq\/RNA\/.*
required: True
description: Directory containing fastq files pertaining to RNAseq sequencing.
Expand Down Expand Up @@ -74,5 +74,5 @@ files:
-
pattern: lab_processed\/transformations\/[^\/]+\.txt
required: False
description: Transformation matrices used to overlay images from the exact same tissue section (e.g., MALDI imaging mass spec, autofluorescence microscopy, MxIF, histological stains).
description: Transformation matrices used to overlay images from the exact same tissue section (e.g., MALDI imaging mass spec, autofluorescence microscopy, MxIF, histological stains).
is_qa_qc: False
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ files:
required: True
description: This is a 10X Genomics layout file that's generated by 10X and individualized for each Visium slide. This is a text file and can be generated using this 10X web form <https://support.10xgenomics.com/spatial-gene-expression/software/pipelines/latest/using/slidefile-download> along with the unique 10X Visium slide ID.
is_qa_qc: False
-
-
pattern: raw\/additional_panels_used\.csv
required: False
description: If multiple commercial probe panels were used, then the primary probe panel should be selected in the "oligo_probe_panel" metadata field. The additional panels must be included in this file. Each panel record should include:manufacturer, model/name, product code.
-
-
pattern: raw\/custom_probe_set\.csv
required: False
description: This file should contain any custom probes used and must be included if the metadata field "is_custom_probes_used" is "Yes". The file should minimally include:target gene id, probe seq, probe id. The contents of this file are modeled after the 10x Genomics probe set file (see <https://support.10xgenomics.com/spatial-gene-expression-ffpe/probe-sets/probe-set-file-descriptions/probe-set-file-descriptions#probe_set_csv_file>).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ files:
required: True
description: This is a 10X Genomics layout file that's generated by 10X and individualized for each Visium slide. This is a text file and can be generated using this 10X web form <https://support.10xgenomics.com/spatial-gene-expression/software/pipelines/latest/using/slidefile-download> along with the unique 10X Visium slide ID.
is_qa_qc: False
-
-
pattern: raw\/additional_panels_used\.csv
required: False
description: If multiple commercial probe panels were used, then the primary probe panel should be selected in the "oligo_probe_panel" metadata field. The additional panels must be included in this file. Each panel record should include:manufacturer, model/name, product code.
-
-
pattern: raw\/custom_probe_set\.csv
required: False
description: This file should contain any custom probes used and must be included if the metadata field "is_custom_probes_used" is "Yes". The file should minimally include:target gene id, probe seq, probe id. The contents of this file are modeled after the 10x Genomics probe set file (see <https://support.10xgenomics.com/spatial-gene-expression-ffpe/probe-sets/probe-set-file-descriptions/probe-set-file-descriptions#probe_set_csv_file>).
Expand Down
2 changes: 1 addition & 1 deletion src/ingest_validation_tools/schema_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def format_constraint_check_data(self) -> Dict:
"""
return {
"entity_type": self.entity_type.value,
"sub_type": [self.entity_sub_type if self.entity_sub_type else ""],
"sub_type": [self.entity_sub_type] if self.entity_sub_type else None,
"sub_type_val": [self.entity_sub_type_val] if self.entity_sub_type_val else None,
}

Expand Down

0 comments on commit 8c716ba

Please sign in to comment.