File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/commands Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 12
12
import org .cytoscape .work .AbstractTask ;
13
13
import org .cytoscape .work .ContainsTunables ;
14
14
import org .cytoscape .work .TaskMonitor ;
15
+ import org .cytoscape .work .Tunable ;
15
16
16
17
import com .google .inject .Inject ;
17
18
@@ -25,6 +26,8 @@ public class TableCommandTask extends AbstractTask {
25
26
@ Inject
26
27
public TableTunables tableArgs ;
27
28
29
+ @ Tunable (description ="Name of the data set (optional)." )
30
+ public String dataSetName = null ;
28
31
29
32
@ Inject private CreateEnrichmentMapTaskFactory .Factory taskFactoryFactory ;
30
33
@@ -34,7 +37,10 @@ public void run(TaskMonitor taskMonitor) {
34
37
EMCreationParameters creationParams = filterArgs .getCreationParameters ();
35
38
TableParameters tableParams = tableArgs .getTableParameters ();
36
39
37
- String dataSetName = filterArgs .networkName == null ? "Data Set 1" : filterArgs .networkName ;
40
+ if (filterArgs .networkName != null && !filterArgs .networkName .trim ().isEmpty ())
41
+ creationParams .setNetworkName (filterArgs .networkName );
42
+
43
+ String dataSetName = this .dataSetName == null ? "Data Set 1" : this .dataSetName ;
38
44
DataSetParameters dsParams = new DataSetParameters (dataSetName , tableParams );
39
45
List <DataSetParameters > dataSets = Collections .singletonList (dsParams );
40
46
You can’t perform that action at this time.
0 commit comments