Skip to content

Commit 7d43ec3

Browse files
committed
Default to skipping heatmaps for singleR
1 parent bd7a366 commit 7d43ec3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

singlecell/resources/chunks/RunSingleR.R

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

5-
seuratObj <- CellMembrane::RunSingleR(seuratObj)
5+
seuratObj <- bindArgs(CellMembrane::RunSingleR, seuratObj)()
66

77
newSeuratObjects[[datasetId]] <- seuratObj
88

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

Lines changed: 4 additions & 0 deletions
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,9 @@ public static class Provider extends AbstractPipelineStepProvider<SingleCellStep
1820
public Provider()
1921
{
2022
super("RunSingleR", "Run SingleR", "CellMembrane/SingleR", "This will run singleR on the input object(s), and save the results in metadata.", Arrays.asList(
23+
SeuratToolParameter.create("showHeatmap", "Generate Heatmaps", "If checked, the SingleR heatmaps will be generated. These can be expensive for large datasets and are often less useful than the DimPlots, so skipping them sometimes makes sense.", "checkbox", new JSONObject(){{
2124

25+
}}, false, "showHeatmap", true)
2226
), null, null);
2327
}
2428

0 commit comments

Comments
 (0)