view src/cmd_gama_headless_legacy_run.sh @ 0:986f43279bca draft

planemo upload for repository https://forgemia.inra.fr/nathalie.rousse/use/-/tree/gama/GAMA_HEADLESS_LEGACY/galaxy-tools/gama_legacy_run commit 14769577c04bcb2781b2d240f1f57a2342169cce-dirty
author siwaa
date Fri, 02 Aug 2024 18:03:16 +0000
parents
children
line wrap: on
line source

#!/bin/bash

# Headless Legacy mode.
#
# Command to run an experiment plan XML file associated with a GAML file :
# ./gama-headless.sh /path/to/file.xml /path/to/generated/outputFolder
# with:
# - /path/to/file.xml: path (relative or absolute) to the XML file
#   containing the full exploration plan to run by the headless.
# - /path/to/generated/outputFolder: path (relative or absolute)
#   which will be generated by GAMA and hold every output files
#   (variables, snapshots, and console messages).

# With :
# - GAMA application in folder ./software
# - [input] XML file path : ./exp/file.xml
# - [input] GAML file (associated with XML file) path : ./exp/model.gaml
# - [output] the outputs folder ./exp/outputs

HOME=$(echo $PWD)
cd software/gama-platform/headless;
/bin/bash MY_gama-headless.sh ${HOME}/exp/file.xml ${HOME}/exp/outputs