File watcher for Signal Data Assay#1021
Open
labkey-klum wants to merge 7 commits into
Open
Conversation
cnathe
approved these changes
Jun 11, 2026
| String name = Objects.toString(row.get(INPUT_NAME), ""); | ||
| String dataFilePath = Objects.toString(row.get(INPUT_DATA_FILE), "").trim(); | ||
|
|
||
| // validate the existance of the datafile property and make a copy to the run root |
Contributor
There was a problem hiding this comment.
Suggested change
| // validate the existance of the datafile property and make a copy to the run root | |
| // validate the existence of the datafile property and make a copy to the run root |
| for (Map<String, Object> row : dataRows) | ||
| { | ||
| // parse out the name and datafile properties | ||
| String name = Objects.toString(row.get(INPUT_NAME), ""); |
Contributor
There was a problem hiding this comment.
is name required (should it have an isBlank check)? also, should it use trim()?
Comment on lines
+185
to
+189
| if (uri != null) | ||
| { | ||
| WebdavResource resource = WebdavService.get().lookup(uri.getPath()); | ||
| if (resource != null) | ||
| { |
Contributor
There was a problem hiding this comment.
should either of these if statements have else blocks that log warnings or errors if uri is null or resource is null?
| } | ||
|
|
||
| // create and save the run | ||
| AssayProvider provider = AssayService.get().getProvider(protocol); |
Contributor
There was a problem hiding this comment.
minor: should we resolve the AssayProvider above when we resolve the protocol so that we can also error if the provider is not found (somewhere around line 94)?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rationale
Implementation of a file watcher to automate the importing of chromatogram data into the signal data assay. The file watcher is triggered on the metadata file (.csv or .tsv) extensions are allowed. The file watcher will parse the metadata file and make copies of the source data files into a server managed location.
We will register the data files as input datas to the run and the metadata file will get registered as the run output data. Once validation is completed the run will get created. The resulting run should be exactly the same as one that is created manually through the import UI. The run ID is generated automatically using the same date stamp that is used for the input data folder.