Skip to content

Commit a0ef885

Browse files
committed
Add UCell argument
1 parent cd83bdf commit a0ef885

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
@@ -9,7 +9,7 @@ for (datasetId in names(seuratObjects)) {
99
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])
1010

1111
message(paste0('Loading dataset ', datasetId, ', with total cells: ', ncol(seuratObj)))
12-
seuratObj <- RIRA::CalculateUCellScores(seuratObj, storeRanks = storeRanks, assayName = assayName, forceRecalculate = forceRecalculate, ncores = nCores)
12+
seuratObj <- RIRA::CalculateUCellScores(seuratObj, storeRanks = storeRanks, assayName = assayName, forceRecalculate = forceRecalculate, ncores = nCores, dropAllExistingUcells = dropAllExistingUcells)
1313

1414
saveData(seuratObj, datasetId)
1515

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@ public Provider()
2323
{
2424
super("CalculateUCellScores", "Calculate UCell Scores", "Seurat", "This will generate UCell scores for a set of pre-defined gene modules", Arrays.asList(
2525
SeuratToolParameter.create("storeRanks", "Store Ranks", "Passed directly to UCell::AddModuleScore_UCell.", "checkbox", new JSONObject(){{
26-
put("checked", true);
26+
put("checked", false);
2727
}}, true),
2828
SeuratToolParameter.create("assayName", "Assay Name", "Passed directly to UCell::AddModuleScore_UCell.", "textfield", new JSONObject(){{
2929

3030
}}, "RNA"),
3131
SeuratToolParameter.create("forceRecalculate", "Force Recalculate", "If checked, the UCell score will always be re-calculated.", "checkbox", new JSONObject(){{
3232

33+
}}, false),
34+
SeuratToolParameter.create("dropAllExistingUcells", "Drop Existing UCells?", "If checked, this will drop all columns ending in _UCell. This implies forceRecalculate.", "checkbox", new JSONObject(){{
35+
3336
}}, false)
3437
), null, null);
3538
}

0 commit comments

Comments
 (0)