Skip to content

Commit

Permalink
Include all algorithms in hashing, even if some are not in consensusM…
Browse files Browse the repository at this point in the history
…ethods
  • Loading branch information
bbimber committed Jan 21, 2025
1 parent 846a5a2 commit 5a5740f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions singlecell/src/org/labkey/singlecell/CellHashingServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1238,15 +1238,8 @@ public File generateCellHashingCalls(File citeSeqCountOutDir, File outputDir, St
Set<String> allowableBarcodes = parameters.getAllowableBarcodeNames();
String allowableBarcodeParam = allowableBarcodes != null ? "c('" + StringUtils.join(allowableBarcodes, "','") + "')" : "NULL";

List<String> methodNames = parameters.methods.stream().filter(m -> {
if (totalCellBarcodes < m.getMinCells())
{
ctx.getLogger().debug("Dropping method due to insufficient cells: " + m.name());
return false;
}

return true;
}).map(CALLING_METHOD::getLabel).distinct().toList();
// NOTE: we do not need to filter total methods on min cells:
List<String> methodNames = parameters.methods.stream().map(CALLING_METHOD::getLabel).distinct().toList();

List<String> consensusMethodNames = parameters.consensusMethods == null ? Collections.emptyList() : parameters.consensusMethods.stream().filter(m -> {
if (totalCellBarcodes < m.getMinCells())
Expand Down

0 comments on commit 5a5740f

Please sign in to comment.