-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Entity type constraints (#1330) * work in progress on entity constraints querying * basic logic sketched in * fixing linting error * very unfinished, need to review entity constraint endpoint documentation further * architected, testing, definitely broken * at least one existing test passing, need to run all + design new tests * added testing * still testing, lots of edge cases * messy code, will tidy up * removed unnecessary code * fixing formatting errors * putting enums where they belong * forgot a file * need to fix my linter * made sample constraints work I hope * working on tests * fixed broken test * removed testing from dataset file, hopefully fixed requirements-dev install * testing fixing action * second testing fixing actions * changes to fixtures from assaytype endpoint; fixing globus_token mistake * fixing malformed constraints endpoint query * removing breakpoint * fixing sample checking logic error * removing breakpoint again * fixing adding dataset sub_type to SchemaVersion.entity_type_info * fixing the same query URL mistake in test file * updating test output with line number changes * General: Update changelog to reflect releases/versioning updates. (#1334) Co-authored-by: Juan Puerto <=> * Update to entity constraints error reporting (#1335) * scaffolding for update to error reporting to use get_errors * updated constraint checking to use _get_message * fixing bugs * missed some files * row numbering changes from online testing * fixing some enum referencing * linting update * updated validate_tsv.py for testing get_tsv_errors; fixed some issues with type enums * sources do not need constraint checks * Docs: Update CHANGELOG * Revert "Update to entity constraints error reporting (#1335)" This reverts commit f92146d. * Phillips/entity constraints errors (#1338) * scaffolding for update to error reporting to use get_errors * updated constraint checking to use _get_message * fixing bugs * missed some files * row numbering changes from online testing * fixing some enum referencing * linting update * updated validate_tsv.py for testing get_tsv_errors; fixed some issues with type enums * sources do not need constraint checks --------- Co-authored-by: Gesina Phillips <[email protected]> * Plugin run reporting (#1336) * Mods to handle signaling of whether work was done by plugins * changed the way info is reported via get_info to allow plugin names to be returned * fixing weird TODO * changelog * added test * moved plugin test to manual testing --------- Co-authored-by: Joel Welling <[email protected]> --------- Co-authored-by: gesinaphillips <[email protected]> Co-authored-by: Juan Puerto <=> Co-authored-by: Gesina Phillips <[email protected]> Co-authored-by: Joel Welling <[email protected]>
- Loading branch information
1 parent
de58a30
commit 3e4bb1e
Showing
21 changed files
with
513 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/dataset-examples/bad-cedar-assay-histology/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/dataset-examples/bad-cedar-assay-histology/fixtures.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"assaytype": {"Histology": {"assaytype": "h-and-e", "contains-pii": false, "dataset-type": "Histology", "description": "H&E Stained Microscopy", "dir-schema": "histology-v2", "primary": true, "vitessce-hints": []}}, "validation": {"h-and-e": {"URL Check Errors": ["On row 2, column \"parent_sample_id\", value \"wrong\" fails because of error \"HTTPError\": 400 Client Error: Bad Request for url: https://entity.api.hubmapconsortium.org/entities/wrong"], "Spreadsheet Validator Errors": ["On row 0, column \"parent_sample_id\", value \"wrong\" fails because of error \"invalidValueFormat\"", "On row 1, column \"contributors_path\", value \"\" fails because of error \"missingRequired\""]}, "contributors": {"URL Check Errors": ["On row 2, column \"orcid\", value \"0000-0002-8928-abcd\" fails because of error \"Exception\": ORCID 0000-0002-8928-abcd does not exist."], "Spreadsheet Validator Errors": ["On row 0, column \"orcid\", value \"0000-0002-8928-abcd\" fails because of error \"invalidValueFormat\""]}}} | ||
{"assaytype": {"Histology": {"assaytype": "h-and-e", "contains-pii": false, "dataset-type": "Histology", "description": "H&E Stained Microscopy", "dir-schema": "histology-v2", "primary": true, "vitessce-hints": []}}, "validation": {"h-and-e": {"URL Check Errors": ["On row 2, column \"parent_sample_id\", value \"wrong\" fails because of error \"HTTPError\": 400 Client Error: Bad Request for url: https://entity.api.hubmapconsortium.org/entities/wrong"], "Spreadsheet Validator Errors": ["On row 2, column \"parent_sample_id\", value \"wrong\" fails because of error \"invalidValueFormat\"", "On row 3, column \"contributors_path\", value \"\" fails because of error \"missingRequired\""]}, "contributors": {"URL Check Errors": ["On row 2, column \"orcid\", value \"0000-0002-8928-abcd\" fails because of error \"Exception\": ORCID 0000-0002-8928-abcd does not exist."], "Spreadsheet Validator Errors": ["On row 2, column \"orcid\", value \"0000-0002-8928-abcd\" fails because of error \"invalidValueFormat\""]}}} |
2 changes: 1 addition & 1 deletion
2
examples/dataset-examples/bad-cedar-assay-histology/upload/bad-histology-metadata.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
parent_sample_id lab_id preparation_protocol_doi dataset_type analyte_class is_targeted acquisition_instrument_vendor acquisition_instrument_model source_storage_duration_value source_storage_duration_unit time_since_acquisition_instrument_calibration_value time_since_acquisition_instrument_calibration_unit contributors_path data_path is_image_preprocessing_required stain_name stain_technique is_batch_staining_done is_staining_automated preparation_instrument_vendor preparation_instrument_model slide_id tile_configuration scan_direction tiled_image_columns tiled_image_count intended_tile_overlap_percentage metadata_schema_id | ||
wrong Visium_9OLC_A4_S1 https://dx.doi.org/10.17504/protocols.io.eq2lyno9qvx9/v1 Histology DNA No Zeiss Microscopy Axio Observer 7 24 day ./contributors.tsv ./dataset-1 Yes H&E Progressive staining Yes No HTX Technologies SunCollect Sprayer V11A19-078 Snake-by-rows Right-and-down 10 120 30 e7475329-9a60-4088-8e34-19a3828e0b3b | ||
HBM854.FXDQ.783 Visium_9OLC_A4_S2 https://dx.doi.org/10.17504/protocols.io.eq2lyno9qvx9/v1 Histology DNA No Zeiss Microscopy Axio Observer 7 24 day ./dataset-2 Yes H&E Progressive staining Yes No HTX Technologies SunCollect Sprayer V11A19-078 Snake-by-rows Right-and-down 10 120 30 e7475329-9a60-4088-8e34-19a3828e0b3b | ||
HBM733.HSZF.798 Visium_9OLC_A4_S2 https://dx.doi.org/10.17504/protocols.io.eq2lyno9qvx9/v1 Histology DNA No Zeiss Microscopy Axio Observer 7 24 day ./dataset-2 Yes H&E Progressive staining Yes No HTX Technologies SunCollect Sprayer V11A19-078 Snake-by-rows Right-and-down 10 120 30 e7475329-9a60-4088-8e34-19a3828e0b3b |
4 changes: 2 additions & 2 deletions
4
...ples/dataset-examples/bad-cedar-multi-assay-visium-bad-child-metadata/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/dataset-examples/bad-cedar-multi-assay-visium-bad-child-metadata/fixtures.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"assaytype": {"RNAseq": {"assaytype": "rnaseq-visium-no-probes", "contains-pii": true, "dataset-type": "RNAseq", "description": "Capture bead RNAseq (10x Genomics v3)", "dir-schema": "rnaseq-v2", "primary": true, "vitessce-hints": []}, "Visium (no probes)": {"assaytype": "visium-no-probes", "contains-pii": true, "dataset-type": "Visium (no probes)", "description": "Visium (no probes)", "dir-schema": "visium-no-probes-v2", "is-multi-assay": true, "must-contain": ["Histology", "RNAseq"], "primary": true, "vitessce-hints": []}, "Histology": {"assaytype": "h-and-e", "contains-pii": false, "dataset-type": "Histology", "description": "H&E Stained Microscopy", "dir-schema": "histology-v2", "primary": true, "vitessce-hints": []}}, "validation": {"rnaseq-visium-no-probes": {"URL Check Errors": ["On row 3, column \"parent_sample_id\", value \"\" fails because of error \"HTTPError\": 404 Client Error: Not Found for url: https://entity.api.hubmapconsortium.org/entities/"], "Spreadsheet Validator Errors": ["On row 1, column \"parent_sample_id\", value \"\" fails because of error \"missingRequired\"", "On row 2, column \"preparation_protocol_doi\", value \"wrong\" fails because of error \"invalidUrl\""]}, "contributors": {}, "visium-no-probes": {}, "h-and-e": {}}} | ||
{"assaytype": {"RNAseq": {"assaytype": "rnaseq-visium-no-probes", "contains-pii": true, "dataset-type": "RNAseq", "description": "Capture bead RNAseq (10x Genomics v3)", "dir-schema": "rnaseq-v2", "primary": true, "vitessce-hints": []}, "Visium (no probes)": {"assaytype": "visium-no-probes", "contains-pii": true, "dataset-type": "Visium (no probes)", "description": "Visium (no probes)", "dir-schema": "visium-no-probes-v2", "is-multi-assay": true, "must-contain": ["Histology", "RNAseq"], "primary": true, "vitessce-hints": []}, "Histology": {"assaytype": "h-and-e", "contains-pii": false, "dataset-type": "Histology", "description": "H&E Stained Microscopy", "dir-schema": "histology-v2", "primary": true, "vitessce-hints": []}}, "validation": {"rnaseq-visium-no-probes": {"URL Check Errors": ["On row 3, column \"parent_sample_id\", value \"\" fails because of error \"HTTPError\": 404 Client Error: Not Found for url: https://entity.api.hubmapconsortium.org/entities/"], "Spreadsheet Validator Errors": ["On row 3, column \"parent_sample_id\", value \"\" fails because of error \"missingRequired\"", "On row 4, column \"preparation_protocol_doi\", value \"wrong\" fails because of error \"invalidUrl\""]}, "contributors": {}, "visium-no-probes": {}, "h-and-e": {}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.