Skip to content

Commit 5554581

Browse files
committed
Fix handler class used for seurat processing jobs
1 parent 3d10a5c commit 5554581

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

singlecell/resources/views/singleCellProcessing.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
var webpart = <%=webpartContext%>;
44

55
Ext4.create('SingleCell.panel.SingleCellProcessingPanel', {
6-
outputFileIds: LABKEY.ActionURL.getParameter("outputFileIds") ? LABKEY.ActionURL.getParameter("outputFileIds").split(';') : []
6+
outputFileIds: LABKEY.ActionURL.getParameter("outputFileIds") ? LABKEY.ActionURL.getParameter("outputFileIds").split(';') : [],
7+
inputType: LABKEY.ActionURL.getParameter("handlerClass") || 'ProcessSeuratObjectHandler'
78
}).render(webpart.wrapperDivId);
89
});
910

singlecell/resources/web/singlecell/panel/SingleCellProcessingPanel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Ext4.define('SingleCell.panel.SingleCellProcessingPanel', {
22
extend: 'SequenceAnalysis.panel.BaseSequencePanel',
33
alias: 'widget.singlecell-singlecellprocessingpanel',
4+
handlerClass: 'ProcessSingleCellHandler',
45

56
jobType: 'singleCell',
67

@@ -250,7 +251,7 @@ Ext4.define('SingleCell.panel.SingleCellProcessingPanel', {
250251

251252
Ext4.Msg.wait('Submitting...');
252253
var json = {
253-
handlerClass: 'org.labkey.singlecell.analysis.ProcessSingleCellHandler',
254+
handlerClass: 'org.labkey.singlecell.analysis.' + this.handlerClass,
254255
outputFileIds: this.outputFileIds,
255256
params: Ext4.encode(values)
256257
};

singlecell/src/org/labkey/singlecell/analysis/AbstractSingleCellHandler.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ public String getDescription()
6868
return "Run one or more tools to process 10x scRNA-seq Data";
6969
}
7070

71-
@Override
72-
public ActionURL getButtonSuccessUrl(Container c, User u, List<Integer> outputFileIds)
73-
{
74-
return DetailsURL.fromString("/singlecell/singleCellProcessing.view?outputFileIds=" + StringUtils.join(outputFileIds, ";"), c).getActionURL();
75-
}
76-
7771
@Override
7872
public String getButtonJSHandler()
7973
{

singlecell/src/org/labkey/singlecell/analysis/ProcessSeuratObjectHandler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ public boolean canProcess(SequenceOutputFile f)
2727
return f.getFile() != null && SEURAT_TYPE.isType(f.getFile());
2828
}
2929

30+
@Override
31+
public ActionURL getButtonSuccessUrl(Container c, User u, List<Integer> outputFileIds)
32+
{
33+
return DetailsURL.fromString("/singlecell/singleCellProcessing.view?handlerClass=ProcessSeuratObjectHandler&outputFileIds=" + StringUtils.join(outputFileIds, ";"), c).getActionURL();
34+
}
35+
3036
@Override
3137
public SequenceOutputProcessor getProcessor()
3238
{

singlecell/src/org/labkey/singlecell/analysis/ProcessSingleCellHandler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ public boolean canProcess(SequenceOutputFile f)
2626
return f.getFile() != null && LOUPE_TYPE.isType(f.getFile());
2727
}
2828

29+
@Override
30+
public ActionURL getButtonSuccessUrl(Container c, User u, List<Integer> outputFileIds)
31+
{
32+
return DetailsURL.fromString("/singlecell/singleCellProcessing.view?handlerClass=ProcessSingleCellHandler&outputFileIds=" + StringUtils.join(outputFileIds, ";"), c).getActionURL();
33+
}
34+
2935
@Override
3036
public SequenceOutputProcessor getProcessor()
3137
{

0 commit comments

Comments
 (0)