-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_evotree.sh
More file actions
40 lines (35 loc) · 1.25 KB
/
run_evotree.sh
File metadata and controls
40 lines (35 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
echo "================================================"
echo " EvoTree Launcher"
echo " Phylogenetic Analysis Tool"
echo "================================================"
echo ""
# Check if conda is available
if ! command -v conda &> /dev/null; then
echo "ERROR: Conda is not installed or not in PATH"
echo "Please install Miniconda or Anaconda first"
echo "Download from: https://docs.conda.io/projects/miniconda/en/latest/"
read -p "Press any key to continue..."
exit 1
fi
# Check if evotree environment exists
if ! conda info --envs | grep -q "evotree"; then
echo "ERROR: evotree conda environment not found"
echo "Please run the installation first:"
echo "conda env create -f environment.yml"
read -p "Press any key to continue..."
exit 1
fi
# Activate environment and run EvoTree
echo "Activating evotree environment..."
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate evotree
echo "Starting EvoTree application..."
echo "The application will open in your web browser automatically"
echo "Press Ctrl+C to stop EvoTree"
echo ""
echo "================================================"
python main.py
echo ""
echo "EvoTree has been stopped."
read -p "Press any key to continue..."