Skip to content

Commit

Permalink
Import results directory too
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-jeckels committed Dec 17, 2024
1 parent 8d4f1a4 commit 8cc89f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ private static Path createConfig(Path configTemplate, Path parentDir, Path jobDi

String webdavUrl = FileContentService.get().getWebDavUrl(parentDir, container, FileContentService.PathType.full);
webdavUrl = StringUtils.stripEnd(webdavUrl, "/");

String substitutedContent = template.replace("${quant_spectra_dir}", "quant_spectra_dir = '" + webdavUrl + "'");

String uploadUrl = FileContentService.get().getWebDavUrl(jobDir, container, FileContentService.PathType.full);
uploadUrl = StringUtils.stripEnd(uploadUrl, "/");
substitutedContent = substitutedContent.replace("${panorama.upload_url}", "panorama.upload_url = '" + uploadUrl + "'");

Path substitutedFile = jobDir.resolve(configTemplate.getFileName());
try (BufferedWriter writer = Files.newBufferedWriter(substitutedFile))
{
Expand Down Expand Up @@ -116,5 +119,4 @@ public File findOutputFile(String name)
{
return null;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class NextFlowProtocol extends AbstractFileAnalysisProtocol<NextFlowPipelineJob>
{
public static final List<FileType> INPUT_TYPES = List.of(
new FileType(".RAW"),
new FileType(".raw"),
new FileType(".mzML"));

public NextFlowProtocol()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public NextFlowRunTask(Factory factory, PipelineJob job)
action.addInput(inputFile.toFile(), SPECTRA_INPUT_ROLE);
}
addOutputs(action, getJob().getLogFilePath().getParent().resolve("reports"));
addOutputs(action, getJob().getLogFilePath().getParent().resolve("results"));
return new RecordedActionSet(action);
}
catch (IOException e)
Expand Down

0 comments on commit 8cc89f4

Please sign in to comment.