Skip to content

Commit 1818264

Browse files
committed
More reporting for RunDecoupler
1 parent 1a1bd94 commit 1818264

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

singlecell/resources/chunks/RunDecoupler.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ for (datasetId in names(seuratObjects)) {
33
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])
44

55
seuratObj <- CellMembrane::RunDecoupleR(seuratObj)
6+
if (!all(is.na(heatmapGroupingVars))) {
7+
for (heatmapGroupingVar in heatmapGroupingVars) {
8+
PlotTfData(seuratObj, groupField = heatmapGroupingVar)
9+
}
10+
}
611

712
saveData(seuratObj, datasetId)
813

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

Lines changed: 9 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,13 @@ public static class Provider extends AbstractPipelineStepProvider<SingleCellStep
1820
public Provider()
1921
{
2022
super("RunDecoupler", "Run decoupleR", "decoupleR", "This will run decoupleR to score transcription factor enrichment.", Arrays.asList(
21-
23+
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()
24+
{{
25+
put("allowBlank", true);
26+
put("height", 150);
27+
put("delimiter", ",");
28+
put("stripCharsRe", "/['\"]/g");
29+
}}, "ClusterNames_0.2", null, true, true).delimiter(",")
2230
), null, null);
2331
}
2432

0 commit comments

Comments
 (0)