-
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.
Jpuerto/nihdev 454 ivt adjust dir schema validation for shared uploads (
#1290) * General: Add pseudo-code * General: Update CHANGELOG * General: Initial approach for shared directory support * General: non-global != non_global * General: Comments for changes * General: Add example for shared uploads * General: Resolve changelog conflict with main * General: Ignore multi_ref if it is a shared upload * General: Change how plugin_validation functions for shared uploads * General: Fix typing issue * General: Remove TODO - handled deeper than where it was placed. * General: Update upload.py to check for non_global_file existence * General: Fix upload.py * General: Update docs/tests * General: Change error messaging to be more clear about where the error is. * General: Change error messaging to be more clear about where the error is. * General: Update syntax to pass formatting checks * Plugins: Update paths passed to be global and non_global * Upload: Change shared_directories to just be a bool, we don't use the actual stored values anywhere. * Directory Validation: Fix error message for paths * General: Line length change * Directory Validation: Fix import * General: Formatting changes * General: Remove unused functions * General: Reformatting * General: Formatting changes * Tests: Update tests --------- Co-authored-by: Juan Puerto <=>
- Loading branch information
1 parent
dc04852
commit 0ed60d6
Showing
28 changed files
with
149 additions
and
38 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
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
1 change: 1 addition & 0 deletions
1
examples/dataset-iec-examples/good-cedar-phenocycler-shared/MOCK_RESPONSE.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"PhenoCycler": {"args": ["HBM894.RZFJ.749", "", "https://dx.doi.org/10.17504/protocols.io.eq2lyno9qvx9/v1", "PhenoCycler", "DNA", "Yes", "Andor", "Axio Observer 7", "1", "day", "", "", "./contributors.tsv", "./one", "./antibodies.tsv", "11", "hour", "1", "1", "1", "1", "", "NAKATPASE", "DAPI", "./lab_processed/images/1-tissue-boundary.geojson; ./lab_processed/images/2-tissue-boundary.geojson", "62af6829-743d-423e-a701-204710e56beb"], "response": {"assaytype": "phenocycler", "contains-pii": false, "dataset-type": "PhenoCycler", "description": "PhenoCycler", "dir-schema": "phenocycler-v2", "primary": true, "vitessce-hints": []}}} |
12 changes: 12 additions & 0 deletions
12
examples/dataset-iec-examples/good-cedar-phenocycler-shared/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
``` | ||
No errors! | ||
Time: 2024-03-25 09:45:27.701080 | ||
Git version: 97b824f | ||
Directory: examples/dataset-iec-examples/good-cedar-phenocycler-shared/upload | ||
TSVs: | ||
metadata.tsv: | ||
Schema: phenocycler-v2 | ||
Metadata schema version: '2' | ||
Directory schema versions: phenocycler-v2 | ||
``` |
3 changes: 3 additions & 0 deletions
3
examples/dataset-iec-examples/good-cedar-phenocycler-shared/README_ONLINE.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Reference Errors: Shared Directory References: examples/dataset-iec-examples/good-cedar-phenocycler-shared/upload/non_global/lab_processed/images/1-tissue-boundary.geojson; ./lab_processed/images/2-tissue-boundary.geojson: Does not exist in upload. | ||
Hint: If validation fails because of extra whitespace in the TSV, try: | ||
src/cleanup_whitespace.py --tsv_in original.tsv --tsv_out clean.tsv. |
1 change: 1 addition & 0 deletions
1
examples/dataset-iec-examples/good-cedar-phenocycler-shared/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"assaytype": {"PhenoCycler": {"assaytype": "phenocycler", "contains-pii": false, "dataset-type": "PhenoCycler", "description": "PhenoCycler", "dir-schema": "phenocycler-v2", "primary": true, "vitessce-hints": []}}, "validation": {"phenocycler": null, "antibodies": null, "contributors": null}} |
2 changes: 2 additions & 0 deletions
2
examples/dataset-iec-examples/good-cedar-phenocycler-shared/upload/antibodies.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
channel_id hgnc_symbol antibody_rrid uniprot_accession_number lot_number dilution_factor antibody_concentration_value antibody_concentration_unit conjugated_cat_number conjugated_tag metadata_schema_id | ||
1 ID2B AB_10002075 Q9NNX6 GR3238979-1 312f7be0-9aec-4cae-b942-a8864c0aa1ce |
2 changes: 2 additions & 0 deletions
2
examples/dataset-iec-examples/good-cedar-phenocycler-shared/upload/contributors.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
first_name last_name middle_name_or_initial display_name affiliation orcid email is_contact is_principal_investigator is_operator metadata_schema_id | ||
Juan Puerto Juan Puerto PSC 0000-0002-8928-741X Yes No No 94dae6f8-0756-4ab0-a47b-138e446a9501 |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions
2
examples/dataset-iec-examples/good-cedar-phenocycler-shared/upload/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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
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 antibodies_path total_run_time_value total_run_time_unit number_of_antibodies number_of_channels number_of_biomarker_imaging_rounds number_of_total_imaging_rounds slide_id cell_boundary_marker_or_stain nuclear_marker_or_stain non_global_files metadata_schema_id | ||
HBM894.RZFJ.749 https://dx.doi.org/10.17504/protocols.io.eq2lyno9qvx9/v1 PhenoCycler DNA Yes Andor Axio Observer 7 1 day ./contributors.tsv ./one ./antibodies.tsv 11 hour 1 1 1 1 NAKATPASE DAPI ./lab_processed/images/1-tissue-boundary.geojson; ./lab_processed/images/2-tissue-boundary.geojson 62af6829-743d-423e-a701-204710e56beb |
Empty file.
Empty file.
Empty file.
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