Skip to content

Commit 055124f

Browse files
committed
Support custom gates when running scGate
1 parent a7f4167 commit 055124f

File tree

2 files changed

+12
-2
lines changed

2 files changed

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

4-
seuratObj <- RIRA::RunScGateForModels(seuratObj, modelNames = c('Bcell', 'Tcell', 'NK', 'Myeloid'), labelRename = list(Tcell = 'T_NK', NK = 'T_NK'))
4+
seuratObj <- RIRA::RunScGateForModels(seuratObj, modelNames = modelNames, labelRename = list(Tcell = 'T_NK', NK = 'T_NK'))
55

66
saveData(seuratObj, datasetId)
77
}

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package org.labkey.singlecell.pipeline.singlecell;
22

3+
import org.json.JSONObject;
34
import org.labkey.api.sequenceanalysis.pipeline.AbstractPipelineStepProvider;
45
import org.labkey.api.sequenceanalysis.pipeline.PipelineContext;
6+
import org.labkey.api.singlecell.pipeline.SeuratToolParameter;
57
import org.labkey.api.singlecell.pipeline.SingleCellStep;
68

79
import java.util.Arrays;
@@ -18,7 +20,15 @@ public static class Provider extends AbstractPipelineStepProvider<SingleCellStep
1820
public Provider()
1921
{
2022
super("RunScGate", "Run scGate", "scGate", "This will run scGate with the default built-in models and create a consensus call.", Arrays.asList(
21-
23+
SeuratToolParameter.create("modelNames", "Model(s)", "The set of scGate modules to test.", "ldk-simplecombo", new JSONObject()
24+
{{
25+
put("multiSelect", true);
26+
put("allowBlank", false);
27+
put("storeValues", "Bcell;Tcell;NK;Myeloid;Stromal;pDC;Erythrocyte;Epithelial");
28+
put("initialValues", "Bcell;Tcell;NK;Myeloid;Stromal;pDC;Erythrocyte;Epithelial");
29+
put("delimiter", ";");
30+
put("joinReturnValue", true);
31+
}}, null, null, true, true)
2232
), null, null);
2333
}
2434

0 commit comments

Comments
 (0)