<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Attached is an example of a Jython script which will load a MorphML
file into an existing project, and potentially save the project and
then open neuroConstruct to view it (though you could generate NEURON
code etc. from the unsaved project).<br>
<br>
Here is a URL for the API to see what other methods are allowed:
<a class="moz-txt-link-freetext" href="http://www.physiol.ucl.ac.uk/research/silver_a/nC_API/v1.2.0/api/">http://www.physiol.ucl.ac.uk/research/silver_a/nC_API/v1.2.0/api/</a><br>
<br>
Regards,<br>
Padraig<br>
<br>
<br>
<br>
astakhov wrote:
<blockquote cite="mid:49401EAF.4060700@ncmir.ucsd.edu" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
Dear Padraig.<br>
Thank your for comments. (I was using version 1.1.2)<br>
  <br>
I just updated it with 1.2.0 and looking this pythonnC/ <br>
  <br>
&nbsp;<br>
It is great. I see that I can load project, change it and save as
NeuroML. But what if my neurons was already saved in NeuroML. I do not
need to add them manually in the script.<br>
  <br>
Can I add them to the project from NeuroML file. May be just load it
some how to the existing project and then save the modified project ?<br>
  <br>
Does it make sense ? Do you have such Python script ?<br>
  <br>
Then it would be easy to use&nbsp; Ex5_MultiSimGenerate.py to generate
NEURON simmulation script for the new project.<br>
  <br>
Thanks again for your comments.<br>
  <br>
Best Regards,<br>
  <br>
  <big><font color="#3333ff"><b>Vadim Astakhov
  <br>
Data Integration Team Leader for
  <br>
Biomedical Informatics Research Network
  <br>
University of California San Diego
  </b></font><br>
  </big><br>
&nbsp;<br>
  <br>
  <br>
  <blockquote cite="mid493F9FF0.6050609@ucl.ac.uk" type="cite">Hi, <br>
    <br>
The best solution is to use the scripting interface (based on Jython, a
Java based implementation of Python). The latest release (see previous
mail) has some updated examples of this. The most appropriate file is
pythonnC/Ex5_MultiSimGenerate.py, which can be run with nC.bat -python.
This runs multiple simulations changing a single parameter each time
(though any changes can be made to the project between runs). I can
send on a more detailed API for the commands which can be called in
scripts (basically the same structure as the corresponding Java
methods). The source code will be put online in the next few weeks when
I get a new SVN server set up and figure out about licences. <br>
    <br>
Regards, <br>
Padraig <br>
    <br>
    <br>
    <br>
astakhov wrote: <br>
    <blockquote type="cite">Hello. <br>
      <br>
I am using neuroConstruct GUI to generate Neuron script for the
simmulation. It is a very nice tool. <br>
      <br>
But&nbsp; I should go through GUI dosen times when I do incremental
modification of some paramiters. <br>
      <br>
Is it possible to do "Export Network", NEURON -&gt;"Generate code" and
"Create hoc simmulation" from command line ? <br>
      <br>
That would provide let us to automate the process of Neuron script
generation and save a lot of time <br>
      <br>
May be there is an API for neuroConstruct .jar (or source code)
available ? <br>
      <br>
I would very appreciate any advice. <br>
      <br>
Best regards, <br>
      <br>
Vadim Astakhov <br>
      <br>
Data Integration Team Leader for <br>
      <br>
Biomedical Informatics Research Network <br>
      <br>
      <br>
University of California San Diego <br>
      <br>
      <br>
    </blockquote>
    <br>
  </blockquote>
  <br>
</blockquote>
<br>
</body>
</html>