Skip to content

Commit 2a284bb

Browse files
committed
Add support for forceRecalculate in UCell
1 parent a35a262 commit 2a284bb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

singlecell/resources/chunks/CalculateUCellScores.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ for (datasetId in names(seuratObjects)) {
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
44

55
message(paste0('Loading dataset ', datasetId, ', with total cells: ', ncol(seuratObj)))
6-
seuratObj <- RIRA::CalculateUCellScores(seuratObj, storeRanks = storeRanks, assayName = assayName)
6+
seuratObj <- RIRA::CalculateUCellScores(seuratObj, storeRanks = storeRanks, assayName = assayName, forceRecalculate = forceRecalculate)
77

88
saveData(seuratObj, datasetId)
99

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public Provider()
2727
}}, false),
2828
SeuratToolParameter.create("assayName", "Assay Name", "Passed directly to UCell::AddModuleScore_UCell.", "textfield", new JSONObject(){{
2929

30-
}}, "RNA")
30+
}}, "RNA"),
31+
SeuratToolParameter.create("forceRecalculate", "Force Recalculate", "If checked, the UCell score will always be re-calculated.", "checkbox", new JSONObject(){{
32+
33+
}}, false)
3134
), null, null);
3235
}
3336

0 commit comments

Comments
 (0)