Skip to content

Commit fccb116

Browse files
committed
Also support heatmapGroupingVars for escape
1 parent 2893060 commit fccb116

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

singlecell/resources/chunks/RunEscape.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ for (datasetId in names(seuratObjects)) {
88
printName(datasetId)
99
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])
1010

11-
seuratObj <- CellMembrane::RunEscape(seuratObj, outputAssayBaseName = outputAssayBaseName, doPlot = TRUE, performDimRedux = performDimRedux, escapeMethod = escapeMethod, nCores = nCores)
11+
seuratObj <- CellMembrane::RunEscape(seuratObj, outputAssayBaseName = outputAssayBaseName, doPlot = TRUE, heatmapGroupingVars = heatmapGroupingVars, performDimRedux = performDimRedux, escapeMethod = escapeMethod, nCores = nCores)
1212

1313
saveData(seuratObj, datasetId)
1414

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.labkey.api.singlecell.pipeline.SingleCellStep;
88

99
import java.util.Arrays;
10+
import java.util.List;
1011

1112
public class RunEscape extends AbstractCellMembraneStep
1213
{
@@ -34,8 +35,15 @@ public Provider()
3435
}}, null),
3536
SeuratToolParameter.create("performDimRedux", "Perform DimRedux", "If true, the standard seurat PCA/FindClusters/UMAP process will be run on the escape data. This may be most useful when using a customGeneSet or a smaller set of features/pathways", "checkbox", new JSONObject(){{
3637

37-
}}, false, null, true)
38-
), null, null);
38+
}}, false, null, true),
39+
SeuratToolParameter.create("heatmapGroupingVars", "Heatmap Grouping Vars", "Enter one field name per line, which will be used to generate a heatmap of results", "sequenceanalysis-trimmingtextarea", new JSONObject()
40+
{{
41+
put("allowBlank", true);
42+
put("height", 150);
43+
put("delimiter", ",");
44+
put("stripCharsRe", "/['\"]/g");
45+
}}, "ClusterNames_0.2", null, true, true).delimiter(",")
46+
), List.of("/sequenceanalysis/field/TrimmingTextArea.js"), null);
3947
}
4048

4149
@Override

0 commit comments

Comments
 (0)