Skip to content

Commit ad8f951

Browse files
committed
Fix error in cell hashing
1 parent e75375f commit ad8f951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ public File generateCellHashingCalls(File citeSeqCountOutDir, File outputDir, St
12341234
String allowableBarcodeParam = allowableBarcodes != null ? "c('" + StringUtils.join(allowableBarcodes, "','") + "')" : "NULL";
12351235

12361236
List<String> methodNames = parameters.methods.stream().filter(m -> {
1237-
if (totalCellBarcodes > m.getMinCells())
1237+
if (totalCellBarcodes < m.getMinCells())
12381238
{
12391239
ctx.getLogger().debug("Dropping method due to insufficient cells: " + m.name());
12401240
return false;
@@ -1244,7 +1244,7 @@ public File generateCellHashingCalls(File citeSeqCountOutDir, File outputDir, St
12441244
}).map(CALLING_METHOD::getLabel).distinct().toList();
12451245

12461246
List<String> consensusMethodNames = parameters.consensusMethods == null ? Collections.emptyList() : parameters.consensusMethods.stream().filter(m -> {
1247-
if (totalCellBarcodes > m.getMinCells())
1247+
if (totalCellBarcodes < m.getMinCells())
12481248
{
12491249
ctx.getLogger().debug("Dropping consensus method due to insufficient cells: " + m.name());
12501250
return false;

0 commit comments

Comments
 (0)