Skip to content

Commit 6f178ec

Browse files
committed
added lastz and astral executable
1 parent bd1242e commit 6f178ec

2 files changed

Lines changed: 2 additions & 43 deletions

File tree

roadies_env.sh

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,10 @@ source "${CONDA_PATH}/etc/profile.d/conda.sh" # Temporarily source conda for th
1919
source "${CONDA_PATH}/etc/profile.d/mamba.sh" # Temporarily source mamba for this script
2020

2121
if ! conda env list | grep -q "roadies_env"; then
22-
mamba create -y -c conda-forge -c bioconda --name roadies_env snakemake alive-progress biopython iqtree=2.2.0.3 numpy lastz mashtree matplotlib seaborn treeswift=1.1.28 fasttree=2.1.11 python=3.11 raxml-ng ete3
22+
mamba create -y -c conda-forge -c bioconda --name roadies_env snakemake alive-progress biopython iqtree=2.2.0.3 numpy lastz mashtree matplotlib seaborn treeswift=1.1.28 fasttree=2.1.11 python=3.11 raxml-ng ete3 lastz=1.04.52 aster=1.19 pyyaml seaborn
2323
fi
2424
conda activate roadies_env
2525

26-
# Download and setup ASTER repository if not already done
27-
if [ ! -d "ASTER-Linux" ]; then
28-
wget -q https://github.com/chaoszhang/ASTER/archive/refs/tags/v1.19.zip -O Linux.zip
29-
unzip -q Linux.zip
30-
mv ASTER-1.19 ASTER-Linux
31-
make
32-
g++ -D CASTLES -std=gnu++11 -march=native -Ofast -pthread src/astral-pro.cpp -o bin/astral-pro3
33-
cd ..
34-
mv ASTER-Linux/bin/astral-pro3 /usr/local/bin/
35-
fi
36-
3726
# Clone PASTA if not already done
3827
if [ ! -d "pasta" ]; then
3928
git clone https://github.com/smirarab/pasta.git
@@ -64,18 +53,6 @@ if [ ! -d "workflow/scripts/sampling/build" ]; then
6453
cd ../../../..
6554
fi
6655

67-
# Download and setup LASTZ if not already done
68-
if [ ! -d "workflow/scripts/lastz_40" ]; then
69-
cd workflow/scripts
70-
wget https://github.com/lastz/lastz/archive/refs/tags/1.04.45.zip
71-
unzip 1.04.45.zip
72-
cd lastz-1.04.45/src/
73-
make lastz_40
74-
make install_40
75-
cp lastz_40 ../../../../
76-
cd ../../../../
77-
fi
78-
7956
# Install ete3 for the user, only if it is not already installed
8057
python3 -m pip show ete3 &>/dev/null || python3 -m pip install --user ete3
8158

test/roadies_env_test.sh

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,9 @@ bash Miniforge3.sh -b -p "${HOME}/conda"
88

99
source "${HOME}/conda/etc/profile.d/conda.sh"
1010
source "${HOME}/conda/etc/profile.d/mamba.sh"
11+
mamba create -y -c conda-forge -c bioconda --name roadies_env_test snakemake alive-progress biopython iqtree=2.2.0.3 numpy lastz mashtree matplotlib seaborn treeswift=1.1.28 fasttree=2.1.11 python=3.11 raxml-ng ete3 lastz=1.04.52 aster=1.19 pyyaml seaborn
1112
conda activate roadies_env_test
1213

13-
wget -q https://github.com/chaoszhang/ASTER/archive/refs/tags/v1.19.zip -O Linux.zip
14-
unzip -q Linux.zip
15-
mv ASTER-1.19 ASTER-Linux
16-
cd ASTER-Linux
17-
make
18-
g++ -D CASTLES -std=gnu++11 -march=native -Ofast -pthread src/astral-pro.cpp -o bin/astral-pro3
19-
cd ..
20-
mv ASTER-Linux/bin/astral-pro3 /usr/local/bin/
21-
2214
git clone https://github.com/smirarab/pasta.git
2315

2416
git clone https://github.com/smirarab/sate-tools-linux.git
@@ -35,15 +27,5 @@ cmake ..
3527
make
3628
cd ../../../..
3729

38-
# Build LASTZ
39-
cd workflow/scripts
40-
wget https://github.com/lastz/lastz/archive/refs/tags/1.04.45.zip
41-
unzip 1.04.45.zip
42-
cd lastz-1.04.45/src/
43-
make lastz_40
44-
make install_40
45-
cp lastz_40 ../../../../
46-
cd ../../../../
47-
4830
echo "Setup complete. Remember to source before running your projects."
4931

0 commit comments

Comments
 (0)