Skip to content

Commit 922e8e1

Browse files
committed
Add pipeline logging
1 parent e8801ec commit 922e8e1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

singlecell/src/org/labkey/singlecell/CellHashingServiceImpl.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public void prepareHashingAndCiteSeqFilesIfNeeded(File sourceDir, PipelineJob jo
140140
Set<String> distinctHTOs = new HashSet<>();
141141
Set<Boolean> hashingStatus = new HashSet<>();
142142
AtomicInteger totalWritten = new AtomicInteger(0);
143+
job.getLogger().debug("total cached readsets: " + cachedReadsets.size());
143144
for (Readset rs : cachedReadsets)
144145
{
145146
AtomicBoolean hasError = new AtomicBoolean(false);
@@ -220,6 +221,9 @@ public void prepareHashingAndCiteSeqFilesIfNeeded(File sourceDir, PipelineJob jo
220221
}
221222
});
222223

224+
job.getLogger().debug("total readset to hashing pairs: " + readsetToHashingMap.size());
225+
job.getLogger().debug("total readset to cite-seq pairs: " + readsetToCiteSeqMap.size());
226+
223227
if (hasError.get())
224228
{
225229
throw new PipelineJobException("There is a problem with either cell hashing or CITE-seq. See the file: " + output.getName());
@@ -314,7 +318,11 @@ public void prepareHashingAndCiteSeqFilesIfNeeded(File sourceDir, PipelineJob jo
314318

315319
});
316320

317-
hashingToRemove.forEach(readsetToHashingMap::remove);
321+
if (!hashingToRemove.isEmpty())
322+
{
323+
job.getLogger().debug("removing " + hashingToRemove.size() + " hashing readsets");
324+
hashingToRemove.forEach(readsetToHashingMap::remove);
325+
}
318326
}
319327
else if (distinctHTOs.size() == 1)
320328
{

0 commit comments

Comments
 (0)