From: Jose M. de la R. T. <del...@gm...> - 2018-03-09 08:24:07
|
Hi Kyle, You can easily do what you want in a Python script via our API. Basically you will need to create a new project and then load the given .json file. Take a look at the following example here: https://github.com/delarosatrevin/scipion-session/blob/f2ac1934f24ebcf0c3da205e9878eca86e4d80a4/aarhus/new-session-aarhus.py#L60 I also wrote a simple script to edit .json files in the GUI (basically faking a project in a temporary folder and then saving the .json back when closing the windows.) that maybe could also be useful for you. It is in the branch *release-1.1.facilities-devel *that will be the next stable release 1.2. Following the link: https://github.com/I2PC/scipion/blob/release-1.1.facilities-devel/scripts/edit_workflow.py Hope this helps Best Jose Miguel On Fri, Mar 9, 2018 at 8:12 AM, Kyle Michael Douglass <kyl...@ep... > wrote: > Hi all, > > > First-time Scipion user here (version 1.1). How would I create a new > project and import a workflow from a .json file from the command line? > > > I ask because my collaborators are using Scipion as part of a larger data > analysis pipeline that extends beyond EM. At one point in this pipeline we > want to automatically launch the Scipion GUI with a new project and import > a workflow that has already been specified in a .json file. I know how to > do this manually with the GUI, but it would be nice to have the new project > and workflow setup via a script so we can easily vary some of the analysis > parameters. > > > Thanks a lot for the help. I would be happy to provide any additional > information if necessary. > > > Cheers, > > Kyle > > > Dr. Kyle M. Douglass > Post-doctoral Researcher > EPFL - The Laboratory of Experimental Biophysics > http://leb.epfl.ch/ > http://kmdouglass.github.io > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > scipion-users mailing list > sci...@li... > https://lists.sourceforge.net/lists/listinfo/scipion-users > > |