# NOT RUN {
# this example shows how to find maximum value
# in a big phylogenetic distance matrix.
data("example.data")
tree=example.data$tree
# since pdist.big need to save output to a certain folder,
# the following code is set as 'not test'.
# but you may test the code on your computer
# after change the folder path for 'save.wd'.
# }
# NOT RUN {
wd0=getwd()
save.wd=paste0(tempdir(),"/pdbig.maxbigm")
# please change to the folder you want to save the pd.big output.
nworker=2 # parallel computing thread number
pd.big=pdist.big(tree = tree, wd=save.wd, nworker = nworker)
maxb=maxbigm(m.desc = pd.big$pd.file, m.wd = pd.big$pd.wd,
nworker = nworker, rm.na = TRUE)
setwd(wd0)
# }
Run the code above in your browser using DataLab