From 58522154b59d7cd44f47db3a65606cba981d2bc4 Mon Sep 17 00:00:00 2001 From: Godwin Ani Date: Tue, 18 Mar 2025 15:48:51 -0400 Subject: [PATCH] Entrypoint file --- Other/entrypoint.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Other/entrypoint.sh diff --git a/Other/entrypoint.sh b/Other/entrypoint.sh new file mode 100644 index 0000000..c2b828d --- /dev/null +++ b/Other/entrypoint.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Default mode +MODE="transcriptomes" + +# Parse command-line arguments +while [[ "$#" -gt 0 ]]; do + case $1 in + --mode) MODE="$2"; shift ;; # Read the next argument as the mode + *) echo "Unknown parameter: $1"; exit 1 ;; + esac + shift +done + +# Run the appropriate script based on the mode +if [[ "$MODE" == "transcriptomes" ]]; then + exec /EukPhylo/PTL1/Transcriptomes/Scripts/wrapper_submit.sh +elif [[ "$MODE" == "genomes" ]]; then + exec /EukPhylo/PTL1/Genomes/Scripts/wrapper_submit.sh +else + echo "Invalid mode: $MODE. Use --mode transcriptomes or --mode genomes." + exit 1 +fi