-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DTS Manifest parsing #210
Merged
Merged
DTS Manifest parsing #210
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
24d608c
do the parsing, update schema
briehl aa3e8df
remove commented code
briehl c099ca5
Merge branch 'dts-manifest-schema' into dts-manifest-parse
briehl 1c8ef68
update parser, tests
briehl 33ffb2c
simply and reformat
briehl 84e8b2f
Merge branch 'dts-manifest-schema' into dts-manifest-parse
briehl 6136140
minor tweaks
briehl 499dfe4
ruff formatting
briehl 224153a
fix typo
briehl d0e08b9
ruff formatting
briehl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
81 changes: 81 additions & 0 deletions
81
tests/import_specifications/test_data/manifest_errors.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,81 @@ | ||
{ | ||
"name": "manifest", | ||
"resources": [ | ||
{ | ||
"id": "JDP:555518eb0d8785178e712d88", | ||
"name": "61564.assembled", | ||
"path": "img/submissions/61564/61564.assembled.gff", | ||
"format": "gff", | ||
"media_type": "text/plain", | ||
"bytes": 455161, | ||
"hash": "", | ||
"credit": { | ||
"comment": "", | ||
"content_url": "", | ||
"contributors": null, | ||
"credit_metadata_source": "", | ||
"dates": null, | ||
"descriptions": null, | ||
"funding": null, | ||
"identifier": "JDP:555518eb0d8785178e712d88", | ||
"license": { | ||
"id": "", | ||
"url": "" | ||
}, | ||
"publisher": { | ||
"organization_id": "", | ||
"organization_name": "" | ||
}, | ||
"related_identifiers": null, | ||
"resource_type": "dataset", | ||
"titles": null, | ||
"url": "", | ||
"version": "" | ||
} | ||
}, | ||
{ | ||
"id": "JDP:555518eb0d8785178e712d84", | ||
"name": "61564.assembled", | ||
"path": "img/submissions/61564/61564.assembled.fna", | ||
"format": "fasta", | ||
"media_type": "text/plain", | ||
"bytes": 6354414, | ||
"hash": "", | ||
"credit": { | ||
"comment": "", | ||
"content_url": "", | ||
"contributors": null, | ||
"credit_metadata_source": "", | ||
"dates": null, | ||
"descriptions": null, | ||
"funding": null, | ||
"identifier": "JDP:555518eb0d8785178e712d84", | ||
"license": { | ||
"id": "", | ||
"url": "" | ||
}, | ||
"publisher": { | ||
"organization_id": "", | ||
"organization_name": "" | ||
}, | ||
"related_identifiers": null, | ||
"resource_type": "dataset", | ||
"titles": null, | ||
"url": "", | ||
"version": "" | ||
} | ||
} | ||
], | ||
"instructions": { | ||
"protocol": "KBase narrative import", | ||
"objects": [ | ||
{ | ||
"data_type": "gff_metagenome", | ||
"parameters": { | ||
"param1": "value1", | ||
"param2": "value2" | ||
} | ||
} | ||
] | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
tests/import_specifications/test_data/manifest_multiple.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,62 @@ | ||
{ | ||
"name": "manifest", | ||
"resources": [ | ||
{ | ||
"id": "JDP:555518eb0d8785178e712d88", | ||
"name": "61564.assembled", | ||
"path": "img/submissions/61564/61564.assembled.gff", | ||
"format": "gff" | ||
}, | ||
{ | ||
"id": "JDP:555518eb0d8785178e712d84", | ||
"name": "61564.assembled", | ||
"path": "img/submissions/61564/61564.assembled.fna", | ||
"format": "fasta" | ||
}, | ||
{ | ||
"id": "JDP:555518ec0d8785178e712d9f", | ||
"name": "61567.assembled", | ||
"path": "img/submissions/61567/61567.assembled.gff", | ||
"format": "gff" | ||
}, | ||
{ | ||
"id": "JDP:555518ec0d8785178e712d9b", | ||
"name": "61567.assembled", | ||
"path": "img/submissions/61567/61567.assembled.fna", | ||
"format": "fasta" | ||
} | ||
], | ||
"instructions": { | ||
"protocol": "KBase narrative import", | ||
"objects": [ | ||
{ | ||
"data_type": "gff_metagenome", | ||
"parameters": { | ||
"mg_param1": "value1", | ||
"mg_param2": "value2" | ||
} | ||
}, | ||
{ | ||
"data_type": "gff_metagenome", | ||
"parameters": { | ||
"mg_param1": "value3", | ||
"mg_param2": "value4" | ||
} | ||
}, | ||
{ | ||
"data_type": "gff_genome", | ||
"parameters": { | ||
"gen_param1": "value1", | ||
"gen_param2": "value2" | ||
} | ||
}, | ||
{ | ||
"data_type": "gff_genome", | ||
"parameters": { | ||
"gen_param1": "value3", | ||
"gen_param2": "value4" | ||
} | ||
} | ||
] | ||
} | ||
} |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the DTS has to know the app parameter names for each datatype it processes? IOW the DTS is coupled to the apps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also assume the file names / locations in the staging area are in the parameters? They can't be anywhere else...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes to both. We talked about doing some references from the parameters to file paths, but if we do that'll be in a later version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, that seems less than ideal, but if you've agreed that that's how it'll work so be it