Skip to content

Commit 8921d0a

Browse files
committed
Bugfix to NimbleAlignmentStep
1 parent 6039efb commit 8921d0a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/query/SequenceTriggerHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public void createReaddataForSra(int readsetId, String sraAccessions)
301301
throw new IllegalStateException("Unable to find pipeline root for: " + c.getPath());
302302
}
303303

304-
String folderName = "SequenceImport_" + FileUtil.getTimestamp();
304+
String folderName = "SequenceImport_RS" + rs.getRowId() + "_" + FileUtil.getTimestamp();
305305
FileLike outDir = AssayFileWriter.findUniqueFileName(folderName, pr.getRootFileLike());
306306

307307
FileLike expectedFile1 = FileUtil.appendPath(outDir, Path.parse(token + "_1.fastq.gz"));

singlecell/src/org/labkey/singlecell/run/NimbleAlignmentStep.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private File getUmiMapping(File cellbarcodeFile) throws PipelineJobException
149149
return ret;
150150
}
151151

152-
private File findCellBarcodeFiles(Readset rs) throws PipelineJobException
152+
private ExpData findCellBarcodeFiles(Readset rs) throws PipelineJobException
153153
{
154154
Container targetContainer = getPipelineCtx().getJob().getContainer().isWorkbookOrTab() ? getPipelineCtx().getJob().getContainer().getParent() : getPipelineCtx().getJob().getContainer();
155155
UserSchema us = QueryService.get().getUserSchema(getPipelineCtx().getJob().getUser(), targetContainer, SingleCellSchema.SEQUENCE_SCHEMA_NAME);
@@ -167,7 +167,7 @@ private File findCellBarcodeFiles(Readset rs) throws PipelineJobException
167167
throw new PipelineJobException("Output lacks a file: " + dataId);
168168
}
169169

170-
return d.getFile();
170+
return d;
171171
}
172172

173173
return null;
@@ -213,13 +213,14 @@ public void init(SequenceAnalysisJobSupport support) throws PipelineJobException
213213
}
214214

215215
// Try to find 10x barcodes:
216-
HashMap<Integer, File> readsetToBarcodes = new HashMap<>();
216+
HashMap<Integer, Integer> readsetToBarcodes = new HashMap<>();
217217
for (Readset rs : support.getCachedReadsets())
218218
{
219-
File f = findCellBarcodeFiles(rs);
219+
ExpData f = findCellBarcodeFiles(rs);
220220
if (f != null)
221221
{
222-
readsetToBarcodes.put(rs.getReadsetId(), f);
222+
support.cacheExpData(f);
223+
readsetToBarcodes.put(rs.getReadsetId(), f.getRowId());
223224
}
224225
}
225226

0 commit comments

Comments
 (0)