Skip to content

Commit

Permalink
Allow certain SequenceJob types to use archived readsets
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Feb 16, 2024
1 parent 19d6779 commit 86aa509
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ public static List<AlignmentAnalysisJob> createForAnalyses(Container c, User u,
return ret;
}

@Override
protected boolean shouldAllowArchivedReadsets()
{
return false;
}

public static String NAME = "AlignmentAnalysisPipeline";

public static void register() throws CloneNotSupportedException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private SequenceAlignmentJob(Container c, User u, String jobName, PipeRoot root,
super(SequencePipelineProvider.NAME, c, u, jobName, root, params, new TaskId(FileAnalysisTaskPipeline.class, NAME), FOLDER_NAME);

_readsetId = readset.getRowId();
getSequenceSupport().cacheReadset(readset);
getSequenceSupport().cacheReadset(readset, shouldAllowArchivedReadsets());
writeSupportToDisk();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ protected SequenceJob(SequenceJob parentJob, String jobName, String subdirectory
writeSupportToDisk();
}

protected boolean shouldAllowArchivedReadsets()
{
return false;
}

public SequenceJob(String providerName, Container c, User u, @Nullable String jobName, PipeRoot pipeRoot, JSONObject params, TaskId taskPipelineId, String folderPrefix) throws IOException
{
super(providerName, new ViewBackgroundInfo(c, u, null), pipeRoot);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ protected void saveFiles(List<SequenceOutputFile> files) throws IOException
}
}

@Override
protected boolean shouldAllowArchivedReadsets()
{
return true;
}

protected List<SequenceOutputFile> readOutputFilesFromFile() throws PipelineJobException, IOException
{
File xml = getSerializedOutputFilesFile();
Expand Down

0 comments on commit 86aa509

Please sign in to comment.