From: Yaiza R. <su...@bc...> - 2018-03-21 11:47:35
|
Hi Kyle, At the moment we don't have the option to do this straight away, however this is done in Scipion for our tutorials and it shouldn't be very difficult create a new script and adapt it to your needs. You can find the tutorials script in pyworkflow/apps/pw_tutorial.py, I recommend you to launch the intro tutorial and check the script to see how it's done (To launch the tutorial do: ./scipion tutorial intro). I've attached here a simple version that creates a new project from a json and opens it, you can maybe use it as a starting point. To run it from your scipion directory you can do: ./scipion python path/to/create_project_from_json.py [PROJECT_NAME] [PATH_TO_JSON] Hope this helps, let us know if you have further questions. Yaiza Rancel Scipion Team Activo Vie, 9 Marzo at 8:13 AM , Kyle Michael Douglass <kyl...@ep...> Escrito: 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 |