Hi Mike & Dan,
Thanks for your answers. I was only able to test things today,
so sorry for the late response. I can indeed call the CyMain main
method and I do get the Cytoscape window which I can then interact
manually load a network and so on. Which is great, but that's not
what I'm looking for.
What I would like to do is to interact with the network
computationally.
Do some analysis in Matlab, and based on the results, update the width
of arcs and so on.
If I understand the API correctly, to create / change properties of
network,
I need a CyNetwork object that is created by a Cytoscape object. But
all I can
create is a CyMain object, with methods that only control the
initiation of the GUI.
But probably, the gaggle idea is the best way to go forward. If it
works in R,
no reason not to work with matlab as well. I'll look into it in more
details,
but It should be more stable and robust solution anyway. Holding Java
object
within matlab is nice, but tends to crash to often for my taste...
Thanks for your help,
Best,
Roy
On Apr 4, 3:30 pm, dandante <
danda...@gmail.com> wrote:
> I don't know much aboutMatlab, I know it has some sort of java
> connection.
>
> Please consider writing a "goose", or "gaggle-enabled" extension toMatlab. This would allow networks and other data types to be
> seamlessly broadcast to a number of systems biology data analysis
> tools. It's very simple, all you have to do is implement a single java
> interface.
>
> More information at:
http://gaggle.systemsbiology.net
>
> If you end up doing this, let me know and I can distribute your
> "goose" on the gaggle site; I can also help answer questions you may
> have during development.
> Thanks
>
> On Apr 3, 6:58 pm, "Mike Smoot" <
msm...@ucsd.edu> wrote:
>
> > Hi Roy,
> > I don't know much about running java programs from withinmatlab, but the
> > method that will start everything is CyMain.main(String[] args), so try
> > calling that. If you can populate the array of args from withinmatlab, then
> > you'll have all of the command line options that are normally available to
> > you.
>
> > If for some strange reason you can't call CyMain.main(), then you could
> > write a simple java class that calls the method, and then instantiate that
> > object. I can think of other approaches too. Let us know how it goes!
>
> > thanks,
> > Mike
>
> > On Thu, Apr 3, 2008 at 3:33 PM, Roy <
rwoll...@gmail.com> wrote:
>
> > > Hi,
>
> > > I'm trying to instantiate Cytoscape withinmatlab. I was able to do