MacOS software installation: Difference between revisions

From 22115
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 33: Line 33:
  chmod 755 paup4a168_osx
  chmod 755 paup4a168_osx
  sudo mv paup4a168_osx /usr/local/bin/paup
  sudo mv paup4a168_osx /usr/local/bin/paup
# IQ-TREE 3
brew install brewsci/bio/iqtree3


  # PAML
  # PAML
Line 52: Line 55:
  hdiutil unmount /Volumes/Tracer
  hdiutil unmount /Volumes/Tracer
  echo "alias tracer='open /Applications/Tracer\ v1.7.2.app'" >> .zshrc
  echo "alias tracer='open /Applications/Tracer\ v1.7.2.app'" >> .zshrc
# TempEst
wget --content-disposition 'https://tree.bio.ed.ac.uk/download.php?id=102&num=3'
sudo tar -zxf TempEst_v1.5.3.tgz --directory /Applications
sudo chmod 755 /Applications/TempEst_v1.5.3/bin/tempest
echo "alias tempest='/Applications/TempEst_v1.5.3/bin/tempest'" >> .zshrc
rm TempEst_v1.5.3.tgz


  # MAFFT
  # MAFFT
Line 64: Line 74:
  echo 'aliview() { java -jar /Applications/AliView.app/Contents/Resources/Java/repo/AliView/AliView/1.28/AliView-1.28.jar "$1" &> /dev/null & }' >> .zshrc
  echo 'aliview() { java -jar /Applications/AliView.app/Contents/Resources/Java/repo/AliView/AliView/1.28/AliView-1.28.jar "$1" &> /dev/null & }' >> .zshrc


  # seqconverter, sequencelib, phylotreelib
  # Anders Gorm software: seqconverter, phylotreelib, sumt
  # These are scripts and libraries written by me:  
  # These are scripts and libraries written by me:  
  # [https://github.com/agormp/phylotreelib GitHub phylotreelib] [https://github.com/agormp/sequencelib GitHub sequencelib] [https://github.com/agormp/seqconverter GitHub seqconverter]
  # [https://github.com/agormp/phylotreelib GitHub phylotreelib] [https://github.com/agormp/seqconverter GitHub seqconverter] [https://github.com/agormp/sumt GitHub sumt]
  # These instructions assume you already have a working installation of python3
  # These instructions assume you already have a working installation of python3
  python3 -m pip install seqconverter
  python3 -m pip install seqconverter
  python3 -m pip install phylotreelib
  python3 -m pip install phylotreelib
python3 -m pip install sumt


  # maxalign tool
  # maxalign tool
Line 89: Line 100:
  source .zshrc
  source .zshrc


BEAST2
BEASTX
: Download newest version of BEAST2 from [https://www.beast2.org BEAST2 web site] and follow instructions to install.  
: Download newest version of BEASTX from [https://beast.community BEASTX web site] and follow instructions to install.  
<!--
# BEAST2
brew install beast2
echo 'PATH="/usr/local/opt/beast2/libexec/bin${PATH:+:${PATH}}"' >> .zshrc
-->


; R, RStudio
; R, RStudio
: Download newest version of R from [https://mirrors.dotsrc.org/cran/ CRAN] and follow instructions to install. Note: Different versions for Intel and Apple Silicon macs
: Download newest version of R from [https://cran.rstudio.com CRAN] and follow instructions to install. Note: Different versions for Intel and Apple Silicon macs
: Download newest version of RStudio from [https://posit.co/download/rstudio-desktop/#download posit.co] and follow instructions
: Download newest version of RStudio from [https://posit.co/download/rstudio-desktop/ posit.co] and follow instructions


  # R packages (do this inside Rstudio)
  # R packages (do this inside Rstudio)
  install.packages("tidyverse")
  install.packages("tidyverse")
  install.packages("bayesplot")
  install.packages("bayesplot")

Latest revision as of 13:43, 31 January 2026

These are instructions for how to install software and data used on the course Computational Molecular Evolution (22115) when using the MacOS operating system.

Check which shell you are using

Depending on what version of MacOS you are using, your shell is probably either bash or zsh. This plays a role when you want to set environment variables (including, importantly, PATH which tells your computer where to look for executables), define aliases, etc: If you are using bash then that information should be stored in the file .bashrc, in the case of zsh, the file should be .zshrc

Issue the following command to see which one it is:

echo $SHELL

In the commands below I have assumed that you are using ZSH, and we will store information in .zshrc. If you are instead using BASH, then you should instead use .bashrc.

Install required software

# Homebrew
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Note: for the one-liner installation of home-brew above, you need to use /bin/bash when installing, even if your shell is zsh.

# Text editor
# This replaces nedit in exercise manuals. 
# You need a text editor that can read and save plain-text files. 
# Here we install TextMate, but there are many other options, including built-in TextEdit, and BBEdit
# To run from command line: Go to Textmate --> Preferences --> Terminal --> install shell support
brew install --cask textmate
# MrBayes
brew install mrbayes
# PAUP
wget https://phylosolutions.com/paup-test/paup4a168_osx.gz
gunzip paup4a168_osx.gz
chmod 755 paup4a168_osx
sudo mv paup4a168_osx /usr/local/bin/paup
# IQ-TREE 3
brew install brewsci/bio/iqtree3
# PAML
brew install brewsci/bio/paml
# jmodeltest
wget https://github.com/ddarriba/jmodeltest2/files/157117/jmodeltest-2.1.10.tar.gz
sudo tar -xvf jmodeltest-2.1.10.tar.gz --directory /Applications
rm jmodeltest-2.1.10.tar.gz
echo "alias jmodeltest='java -jar /Applications/jmodeltest-2.1.10/jModelTest.jar &> /dev/null &'" >> .zshrc
# FigTree
brew install brewsci/bio/figtree
# Tracer
wget https://github.com/beast-dev/tracer/releases/download/v1.7.2/Tracer.v1.7.2.dmg
hdiutil mount Tracer.v1.7.2.dmg
sudo cp -R "/Volumes/Tracer/Tracer v1.7.2.app" /Applications
hdiutil unmount /Volumes/Tracer
echo "alias tracer='open /Applications/Tracer\ v1.7.2.app'" >> .zshrc
# TempEst
wget --content-disposition 'https://tree.bio.ed.ac.uk/download.php?id=102&num=3'
sudo tar -zxf TempEst_v1.5.3.tgz --directory /Applications
sudo chmod 755 /Applications/TempEst_v1.5.3/bin/tempest
echo "alias tempest='/Applications/TempEst_v1.5.3/bin/tempest'" >> .zshrc
rm TempEst_v1.5.3.tgz 
# MAFFT
brew install mafft
# Aliview
# Note: This only works if java has access to files and folders on the mac
wget https://ormbunkar.se/aliview/downloads/mac/AliView-1.30-app.zip
unzip AliView-1.28-app.zip
sudo mv AliView-1.28/AliView.app /Applications
rm -r AliView-1.28
echo 'aliview() { java -jar /Applications/AliView.app/Contents/Resources/Java/repo/AliView/AliView/1.28/AliView-1.28.jar "$1" &> /dev/null & }' >> .zshrc
# Anders Gorm software: seqconverter, phylotreelib, sumt
# These are scripts and libraries written by me: 
# GitHub phylotreelib GitHub seqconverter GitHub sumt
# These instructions assume you already have a working installation of python3
python3 -m pip install seqconverter
python3 -m pip install phylotreelib
python3 -m pip install sumt
# maxalign tool
# See MaxAlign: maximizing usable data in an alignment for more information.
wget https://teaching.healthtech.dtu.dk/material/22115/maxalign.pl
chmod 755 maxalign.pl
sudo mv maxalign.pl /usr/local/bin
# Set up directory for course exercises
# You can place this directory anywhere you prefer. 
# Just replace tilde (~) in command below with path to preferred base directory
cd ~
mkdir molevol
wget https://teaching.healthtech.dtu.dk/material/22115/data.tar.gz
tar -xvf data.tar.gz --directory molevol
rm data.tar.gz
# Activate changes to .rc file in current terminal session
source .zshrc
BEASTX
Download newest version of BEASTX from BEASTX web site and follow instructions to install.
R, RStudio
Download newest version of R from CRAN and follow instructions to install. Note: Different versions for Intel and Apple Silicon macs
Download newest version of RStudio from posit.co and follow instructions
# R packages (do this inside Rstudio)
install.packages("tidyverse")
install.packages("bayesplot")