mistral-io-datasets/scripts/analyse-all.sh

32 lines
509 B
Bash
Raw Normal View History

2020-08-17 17:14:58 +00:00
#!/bin/bash
2020-08-18 12:58:47 +00:00
2020-08-20 11:11:35 +00:00
# call me from the parent directory
echo "This script performs the complete analysis steps"
2020-08-21 18:12:33 +00:00
CLEAN=0 # Set to 0 to make some update
function prepare(){
pushd datasets
./decompress.sh
popd
for I in datasets/*.csv ; do
ln -s $I
done
}
# prepare
2020-08-17 17:14:58 +00:00
for I in job_similarities_*.csv ; do
rm *.png *.pdf
2020-08-18 12:58:47 +00:00
./scripts/plot.R $I > description.txt
2020-08-20 11:11:35 +00:00
OUT=${I%%.csv}-out
mkdir $OUT
2020-08-21 18:12:33 +00:00
if [[ $CLEAN != "0" ]] ; then
rm $OUT/*
mv description.txt $OUT
fi
mv *.png *.pdf $OUT
2020-08-17 17:14:58 +00:00
done