-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathInstallationNotesForAnalysingTrees.sh
31 lines (28 loc) · 1.55 KB
/
InstallationNotesForAnalysingTrees.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
30
31
# Phyloscanner's analysis of phylogenies with within- and between-host diversity is achived with the
# phyloscanner_analyse_trees.R command. Having an up-to-date installation of the R language can
# avoid some runtime errors; however BEWARE: updating the R language itself can cause problems with
# packages you have in your current R installation - they may need to be reinstalled.
############################################################
# INSTALLING UP-TO-DATE R ON UBUNTU
# Following the steps at https://www.r-bloggers.com/updating-r-on-ubuntu/
# worked for me.
# However, the command
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
# may fail, for example due to firewall issues. In that case, consult the section
# 'Secure APT' at https://cran.r-project.org/bin/linux/ubuntu/README.html.
############################################################
############################################################
# INSTALLING UP-TO-DATE R ON MAC OS
# Visit https://cran.r-project.org/bin/macosx/
############################################################
# Next, install the packages needed for phyloscanner_analyse_trees.R
# Change directory to the 'phyloscannerR' subdirectory of the main phyloscanner code directory,
# e.g. cd ~/phyloscanner/phyloscannerR/, then start an an interactive R session by running
R
# Then inside the interactive R session, run
install.packages("devtools")
install.packages("BiocManager")
library(devtools)
BiocManager::install("ggtree")
BiocManager::install("RBGL")
install("../phyloscannerR", dependencies = T)