added a bunch of helper scripts
This commit is contained in:
parent
f72408cd88
commit
a24aeeffe7
6 changed files with 347 additions and 0 deletions
23
run_batch_analysis_analysis.sh
Executable file
23
run_batch_analysis_analysis.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Usage: ./run_batch_analysis_analysis.sh /path/to/target_dir
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [[ $# -ne 1 ]]; then
|
||||
echo "Usage: $0 /path/to/target_dir"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TARGET_DIR="$1"
|
||||
|
||||
if [[ ! -d "$TARGET_DIR" ]]; then
|
||||
echo "Error: '$TARGET_DIR' is not a directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Find all results.csv files directly under subdirectories
|
||||
find "$TARGET_DIR" -mindepth 2 -maxdepth 2 -type f -name results.csv | while IFS= read -r csvfile; do
|
||||
echo "Analyzing $csvfile"
|
||||
./batch_analysis_analysis.py -i "$csvfile"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue