Rossella Rispoli
unread,Oct 29, 2012, 3:40:16 PM10/29/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cytoscap...@googlegroups.com
Hi to everyone,
I'm bit new to CytoscapeRPC, and I'm trying to create netowrk graph from perl script.
I got some problems to modify the layout to put distane betwen the nodes, to avoid the labels overlaps.
I tried to do this in two different way:
1) I tried to change the label font size, as follows:
my $done = $client->call(
"Cytoscape.discreteMapper", # function name
$coder->string($networkID), # identifier of the network
"default", # name of the vizmap to use
"ID", # name of the attribute to use
"Node Font Size", # name of the vis. param. to change
'5', # default value
{'p'=> '15'} # hash of nodeid - shape
);
But I got the follows ERROR:
Fault returned from XML RPC Server, fault code 0: No method matching arguments: java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.util.HashMap
2) I noticed that when I changed, from the grafical interface the scale from the layout menu (from 1.0 to 2.0), I obteined a good distances betwen the nodes without overlaps.
When I tried to use the function Cytoscape.exportView to save my graph with a different scale parameter, as follows:
my $done=$client->call(
"Cytoscape.exportView",
$imaje_path, # filename
"jpg", # file type
$coder->double('2.5') # scaling factor
);
I didn't recive any changes.
Do you have any suggestions or corrections?
Thanks in advances,
Rossella