Skip to content

Commit 8f9c9d6

Browse files
committed
Bugfix arguments to pass cellbarcode whitelist to cellhashR
1 parent 32f6282 commit 8f9c9d6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,6 @@ public File getValidHashingBarcodeFile(File sourceDir)
397397
return new File(sourceDir, "validHashingBarcodes.csv");
398398
}
399399

400-
public File getValidCellIndexFile(File sourceDir)
401-
{
402-
return new File(sourceDir, "validCellIndexes.csv");
403-
}
404-
405400
@Override
406401
public File generateHashingCallsForRawMatrix(Readset parentReadset, PipelineOutputTracker output, SequenceOutputHandler.JobContext ctx, CellHashingParameters parameters, File rawCountMatrixDir) throws PipelineJobException
407402
{
@@ -893,12 +888,7 @@ public File generateCellHashingCalls(File citeSeqCountOutDir, File outputDir, St
893888
try (PrintWriter writer = PrintWriters.getPrintWriter(localRScript))
894889
{
895890
List<String> methodNames = parameters.methods.stream().map(Enum::name).collect(Collectors.toList());
896-
897-
String cellbarcodeWhitelist = "";
898-
if (cellBarcodeWhitelistFile != null)
899-
{
900-
cellbarcodeWhitelist = "'/work/" + cellBarcodeWhitelistFile.getName() + "'";
901-
}
891+
String cellbarcodeWhitelist = cellBarcodeWhitelistFile != null ? "'/work/" + cellBarcodeWhitelistFile.getName() + "'" : "NULL";
902892

903893
Set<String> allowableBarcodes = parameters.getAllowableBarcodeNames();
904894
String allowableBarcodeParam = allowableBarcodes != null ? "c('" + StringUtils.join(allowableBarcodes, "','") + "')" : "NULL";

0 commit comments

Comments
 (0)