-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·29 lines (21 loc) · 956 Bytes
/
setup.sh
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
#!/bin/bash
# Download the GitHub repository
git clone https://github.com/rpianezza/GenomeDelta.git
# Move to the downloaded folder
cd GenomeDelta/macOS
# Create the conda environment
conda env create -f set-env.yml
# Activate the conda environment
conda activate GenomeDelta
# Get the path to the conda environment's bin directory
conda_bin_path=$(conda info --envs | grep "^GenomeDelta " | awk '{print $NF}')/bin
# Create the executable file
python -m pip install pyinstaller
pyinstaller launcher.py --onefile --name GenomeDelta
# Copy the executable file to the conda environment's bin directory
cp dist/GenomeDelta "$conda_bin_path"
cp main.sh "$conda_bin_path"
cp -r scripts "$conda_bin_path"
# Print information about the setup
echo "Setup complete. Type "conda activate GenomeDelta" to activate the environment."
echo "To launch the software, type GenomeDelta in the environment and add the requested arguments (--fq/--bam, --fa, --of, --t)"