Mercurial > repos > siwaa > redelac_stics_s
diff redelacSticsSimulator.bash @ 7:2586f7dbcde1 draft
"planemo upload for repository https://forgemia.inra.fr/redelac/redelac-toolbox/-/tree/af2d1fcb63a2ae897e02f11e82cc76c4f6e8ca5e/tools/REDELACSticsSimulator commit af2d1fcb63a2ae897e02f11e82cc76c4f6e8ca5e-dirty"
author | siwaa |
---|---|
date | Mon, 02 Oct 2023 13:51:01 +0000 |
parents | 41f652e6616f |
children | 65c00476f417 |
line wrap: on
line diff
--- a/redelacSticsSimulator.bash Tue Sep 26 15:21:42 2023 +0000 +++ b/redelacSticsSimulator.bash Mon Oct 02 13:51:01 2023 +0000 @@ -1,12 +1,31 @@ cp -r /home/rstudio/JavaSTICS-1.5.1-STICS-10.0.0 . && -unzip -qq $4 -d TMP && +/usr/bin/time -p -o ./bashlog unzip -qq $5 -d TMP && +echo "Step 0, time to unzip the Workspace:" && +echo "====================================" && +cat ./bashlog && +echo "====================================" && export WSname=$(ls TMP) && mv TMP/* JavaSTICS-1.5.1-STICS-10.0.0/WS && -cp $5 JavaSTICS-1.5.1-STICS-10.0.0/WS/successionPlan.csv && +cp $6 JavaSTICS-1.5.1-STICS-10.0.0/WS/successionPlan.csv && cd JavaSTICS-1.5.1-STICS-10.0.0 && -Rscript --verbose $3/redelacSticsSimulator.R $1 $2 && +/usr/bin/time -p -o ./bashlog Rscript --verbose $4/redelacSticsSimulator.R $1 $2 $3 && +echo "Step 1, time to run the R script:" && +echo "=================================" && +cat ./bashlog && +echo "=================================" && +cd WS && +/usr/bin/time -p -o ./bashlog zip -qq -r analyse_simulations_STICS analyse_simulations_STICS && +echo "Step 2, time to zip the results:" && +echo "================================" && +cat ./bashlog && +echo "================================" && +cp analyse_simulations_STICS.zip $8 && +rm -rf analyse_simulations_STICS && +cd .. && mv WS $WSname && -zip -qq -r $WSname $WSname && -cp $WSname.zip $6 && -cp results.RData $7 - +/usr/bin/time -p -o ./bashlog zip -qq -r $WSname $WSname && +echo "Step 3, time to zip the Workspace:" && +echo "==================================" && +cat ./bashlog && +echo "==================================" && +cp $WSname.zip $7