Skip to content

Commit 0e31412

Browse files
committed
Support additional celltypist params
1 parent cfa766d commit 0e31412

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

singlecell/resources/chunks/RunCelltypist.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
for (mn in modelNames) {
6-
seuratObj <- RIRA::RunCellTypist(seuratObj, modelName = paste0(mn, '.pkl'), convertAmbiguousToNA = convertAmbiguousToNA, columnPrefix = paste0('celltypist.', mn, '.'), pThreshold = pThreshold, minProp = minProp, maxAllowableClasses = maxAllowableClasses, minFractionToInclude = minFractionToInclude)
6+
seuratObj <- RIRA::RunCellTypist(seuratObj, modelName = paste0(mn, '.pkl'), convertAmbiguousToNA = convertAmbiguousToNA, columnPrefix = paste0('celltypist.', mn, '.'), pThreshold = pThreshold, minProp = minProp, maxAllowableClasses = maxAllowableClasses, minFractionToInclude = minFractionToInclude, useMajorityVoting = useMajorityVoting, mode = mode)
77
}
88

99
saveData(seuratObj, datasetId)

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ public Provider()
4141
put("maxValue", 1);
4242
put("decimalPrecision", 3);
4343
}}, 0.01),
44+
SeuratToolParameter.create( "mode", "Mode", "The build-in model(s) to use.", "ldk-simplecombo", new JSONObject(){{
45+
put("storeValues", "best_match;prob_match");
46+
put("allowBlank", false);
47+
put("delimiter", ";");
48+
put("joinReturnValue", true);
49+
}}, "prob_match", null, true, true).delimiter(";"),
50+
SeuratToolParameter.create("useMajorityVoting", "Majority Voting", "If true, celltypist will be run using --majority-voting", "checkbox", new JSONObject()
51+
{{
52+
put("checked", true);
53+
}}, true),
4454
SeuratToolParameter.create("pThreshold", "pThreshold", "This is passed to the --p-thres argument.", "ldk-numberfield", new JSONObject()
4555
{{
4656
put("minValue", 0);

0 commit comments

Comments
 (0)