Adjusted all working routes, full docker pipeline verified, added extra validations for docker, reduced julia environment, tested run succesful
This commit is contained in:
+12
-1
@@ -39,12 +39,23 @@ else
|
||||
[ -n "$name" ] && DATASETS+=("$name")
|
||||
done < <(for d in "$DATA_ROOT"/*/; do
|
||||
[ -d "$d" ] || continue
|
||||
if ls "$d"*.imzML "$d"*.imzml >/dev/null 2>&1; then basename "$d"; fi
|
||||
# Case-insensitive match (.imzML / .imzml / .IMZML); `find -iname` avoids the
|
||||
# glob-pair pitfall where a non-matching pattern makes `ls` return non-zero.
|
||||
if [ -n "$(find "$d" -maxdepth 1 -type f -iname '*.imzml' -print -quit 2>/dev/null)" ]; then
|
||||
basename "$d"
|
||||
fi
|
||||
done | sort)
|
||||
fi
|
||||
|
||||
if [ "${#DATASETS[@]}" -eq 0 ]; then
|
||||
echo "ERROR: no datasets with an .imzML found under '$DATA_ROOT'." >&2
|
||||
echo " Each dataset must be in its own subfolder:" >&2
|
||||
echo " $DATA_ROOT/<name>/<file>.imzML (+ <file>.ibd)" >&2
|
||||
if [ -n "$(find "$DATA_ROOT" -maxdepth 1 -type f -iname '*.imzml' -print -quit 2>/dev/null)" ]; then
|
||||
echo " Note: .imzML file(s) were found directly in '$DATA_ROOT' (loose files are ignored)." >&2
|
||||
echo " Move each into its own subfolder, e.g.:" >&2
|
||||
echo " mkdir -p $DATA_ROOT/<name> && mv $DATA_ROOT/*.imzML $DATA_ROOT/*.ibd $DATA_ROOT/<name>/" >&2
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user