From: Kyle D. <kyl...@ep...> - 2018-03-21 15:52:17
|
Hi Yaiza, No problem at all. In fact, I am using this script and it works perfectly ;) Thanks! Kyle On 03/21/2018 02:05 PM, Yaiza Rancel wrote: > Hi again Kyle, > > Sorry! We do have already a script to do this, it's in > scripts/create_project.py, and you can use it like this: > scipion python scripts/create_project.py name="session1234" > workflow="path/to/your/workflow.json" > Cheers, > Yaiza > > Activo Mie, 21 Marzo at 12:47 PM , Yaiza Rancel > <su...@bc...> Escrito: > 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 > > 300:553135 -- Kyle M. Douglass, PhD Post-doctoral researcher The Laboratory of Experimental Biophysics EPFL, Lausanne, Switzerland http://kmdouglass.github.io http://leb.epfl.ch |