Skip to content

Commit 324cf7e

Browse files
committed
Bugfix to AppendCiteSeq
1 parent 0b52dce commit 324cf7e

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

singlecell/resources/chunks/AppendCiteSeq.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ for (datasetId in names(seuratObjects)) {
2020
if (dropAggregateBarcodes) {
2121
aggregateBarcodeFile <- paste0(matrixDir, ".aggregateCounts.csv")
2222
if (!file.exists(aggregateBarcodeFile)) {
23-
stop(paste0('Unable to find file: ', aggregateBarcodeFile))
23+
print(paste0('Unable to find file, skipping: ', aggregateBarcodeFile))
24+
aggregateBarcodeFile <- NULL
2425
}
2526
}
2627

singlecell/src/org/labkey/singlecell/pipeline/singlecell/AppendCiteSeq.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,23 +142,26 @@ protected Map<Integer, File> prepareCountData(SingleCellOutput output, SequenceO
142142

143143
if (!aggregateCountFile.exists())
144144
{
145-
throw new PipelineJobException("Unable to find aggregate count file: " + aggregateCountFile.getPath());
145+
ctx.getLogger().info("Unable to find aggregate count file, assuming there are none: " + aggregateCountFile.getPath());
146146
}
147-
localAggregateCountFile = new File(ctx.getOutputDir(), localCopyUmiCountDir.getName() + ".aggregateCounts.csv");
148-
try
147+
else
149148
{
150-
if (localAggregateCountFile.exists())
149+
localAggregateCountFile = new File(ctx.getOutputDir(), localCopyUmiCountDir.getName() + ".aggregateCounts.csv");
150+
try
151151
{
152-
localAggregateCountFile.delete();
153-
}
152+
if (localAggregateCountFile.exists())
153+
{
154+
localAggregateCountFile.delete();
155+
}
154156

155-
FileUtils.copyFile(aggregateCountFile, localAggregateCountFile);
156-
}
157-
catch (IOException e)
158-
{
159-
throw new PipelineJobException(e);
157+
FileUtils.copyFile(aggregateCountFile, localAggregateCountFile);
158+
}
159+
catch (IOException e)
160+
{
161+
throw new PipelineJobException(e);
162+
}
163+
ctx.getFileManager().addIntermediateFile(localAggregateCountFile);
160164
}
161-
ctx.getFileManager().addIntermediateFile(localAggregateCountFile);
162165
}
163166

164167
File validAdt = CellHashingServiceImpl.get().getValidCiteSeqBarcodeMetadataFile(ctx.getSourceDirectory(), parentReadset.getReadsetId());

0 commit comments

Comments
 (0)