Skip to content

Commit 230995c

Browse files
committed
Code cleanup and built-in template update
1 parent b0c6c4f commit 230995c

2 files changed

Lines changed: 2 additions & 29 deletions

File tree

src/main/java/edu/virginia/uvacluster/internal/ClusterUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public static CyNetwork getDefaultModel(String weightFeatureName, SavePolicy pol
1919
"Variance : Degree (4)",
2020
"Median : Degree (4)",
2121
"Max : Degree (4)",
22+
"Count : Node (5)",
2223
String.format("Mean : weight{%s} (4)",weightFeatureName),
2324
String.format("Variance : weight{%s} (4)",weightFeatureName),
2425
String.format("Density at cutoff %s (6)",weightCutoffs[0]),

src/main/java/edu/virginia/uvacluster/internal/CyActivator.java

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,9 @@ public void start(BundleContext context) throws Exception {
3535
networkViewManager = getService(context, CyNetworkViewManager.class);
3636
serviceRegistrar = getService(context, CyServiceRegistrar.class);
3737

38-
39-
/* ******SupervisedComplexTaskFactory clusterFactory= new SupervisedComplexTaskFactory();
40-
41-
//TODO re-enable
42-
//GenModelTaskFactory modelFactory = new GenModelTaskFactory();
43-
44-
//Set service properties
45-
Properties clusterFactoryProperties = new Properties();
46-
clusterFactoryProperties.setProperty("preferredMenu", "Apps.SCODE");
47-
clusterFactoryProperties.setProperty("title","Analyze Network"); ************/
48-
49-
/* TODO This option is disabled because a network only appears once the session file is reloaded.
50-
Properties genNetworkProperties = new Properties();
51-
genNetworkProperties.setProperty("preferredMenu", "Apps.Supervised Complex");
52-
genNetworkProperties.setProperty("title", "Generate Default Model");
53-
*/
54-
5538
//Set up tabbed panel in Control Panel
5639
CySwingApplication cytoscapeDesktopService = getService(context,CySwingApplication.class);
5740

58-
/*
59-
MyControlPanel myControlPanel = new MyControlPanel();
60-
ControlPanelAction controlPanelAction = new ControlPanelAction(cytoscapeDesktopService,myControlPanel);
61-
62-
registerService(context,myControlPanel,CytoPanelComponent.class, new Properties());
63-
registerService(context,controlPanelAction,CyAction.class, new Properties());
64-
*/
65-
//register services
66-
//registerService(context, clusterFactory, NetworkTaskFactory.class, clusterFactoryProperties);
6741

6842
CyApplicationManager appManager = getService(context, CyApplicationManager.class);
6943

@@ -82,8 +56,6 @@ public void start(BundleContext context) throws Exception {
8256
closeTaskFactoryProps.setProperty("menuGravity","2.0");
8357

8458
registerService(context, closeTaskFactory, TaskFactory.class, closeTaskFactoryProps);
85-
86-
//TODO re-enable when cytoscape bug is fixed
87-
//registerService(context, modelFactory, NetworkTaskFactory.class,genNetworkProperties);
59+
8860
}
8961
}

0 commit comments

Comments
 (0)