view redelacSticsSimulator.bash @ 9:52877f7c9d6b draft

"planemo upload for repository https://forgemia.inra.fr/redelac/redelac-toolbox/-/tree/1ce7fafc21b8753e295caa8b7eda709ba1d18544/tools/REDELACSticsSimulator commit 1ce7fafc21b8753e295caa8b7eda709ba1d18544-dirty"
author siwaa
date Tue, 17 Oct 2023 11:21:34 +0000
parents 2586f7dbcde1
children 65c00476f417
line wrap: on
line source

cp -r /home/rstudio/JavaSTICS-1.5.1-STICS-10.0.0 . &&
/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 $6 JavaSTICS-1.5.1-STICS-10.0.0/WS/successionPlan.csv &&
cd JavaSTICS-1.5.1-STICS-10.0.0 &&
/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 &&
/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