Last active
December 7, 2017 11:13
-
-
Save padpadpadpad/d32501197e5b229b8cfc443d825a317d to your computer and use it in GitHub Desktop.
A rough and ready test of ips::raxml()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# testing ips | |
library(ips) | |
library(phyloseq) | |
# load in example data | |
data(ips.cox1) | |
data(ips.16S) | |
data(ips.28S) | |
ips <- cbind(ips.cox1, ips.16S, ips.28S, | |
fill.with.gaps = TRUE) | |
# set path for RAXML is | |
# CHANGE THIS | |
exec <- '~/Desktop/standard-RAxML-master/raxmlHPC-SSE3' | |
# setwd - CHANGE THIS | |
setwd('~/Desktop') | |
# run raxml | |
tr <- raxml(ips, | |
m = "GTRGAMMAIX", # model | |
f = "a", # best tree and bootstrap | |
p = 1234, # random number seed | |
x = 2345, # random seed for rapid bootstrapping | |
N = 5, # number of bootstrap replicates | |
exec = exec, # name of executable | |
file = 'raxml_example', | |
threads = 20 | |
) | |
tree <- read_tree("RAxML_bipartitionsBranchLabels.raxml_example") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment