Skip to content

Commit 14a13db

Browse files
committed
Bugfix merge of existing readsets
1 parent eda3a73 commit 14a13db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/ReadsetCreationTask.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,13 @@ private void importReadsets() throws PipelineJobException
174174
getJob().getLogger().info("Starting readset " + r.getName());
175175

176176
boolean readsetExists = r.getReadsetId() != null && r.getReadsetId() > 0;
177-
List<ReadDataImpl> preexistingReadData = readsetExists ? ((SequenceReadsetImpl)SequenceAnalysisService.get().getReadset(r.getReadsetId(), getJob().getUser())).getReadDataImpl() : Collections.emptyList();
177+
SequenceReadsetImpl existingReadset = ((SequenceReadsetImpl)SequenceAnalysisService.get().getReadset(r.getReadsetId(), getJob().getUser()));
178+
List<ReadDataImpl> preexistingReadData = readsetExists ? existingReadset.getReadDataImpl() : Collections.emptyList();
178179
boolean readsetExistsWithData = !preexistingReadData.isEmpty();
179180
if (readsetExistsWithData)
180181
{
181-
getJob().getLogger().info("Readset has existing data: " + r.getName() + " from: " + r.getContainer());
182-
readsetsToDeactivate.put(r.getReadsetId(), r.getContainer());
182+
getJob().getLogger().info("Readset has existing data: " + r.getName() + ", " + r.getRowId() + " from: " + existingReadset.getContainer());
183+
readsetsToDeactivate.put(r.getReadsetId(), existingReadset.getContainer());
183184
}
184185

185186
SequenceReadsetImpl row;

0 commit comments

Comments
 (0)