# NOT RUN {
# function 'bNTI.bin.big' is usually used in the main function, 'icamp.big',
# when setting phylo.rand.scale="across",
# means randomization across all bins in phylogenetic null model.
data("example.data")
comm=example.data$comm
tree=example.data$tree
pdid.bin=example.data$pdid.bin
sp.bin=example.data$sp.bin
# 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 path for 'save.wd'.
# }
# NOT RUN {
wd0=getwd()
save.wd=paste0(tempdir(),"/pdbig.bNTI.bin.big")
# you may change save.wd 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)
rand.time=20 # usually use 1000 for real data.
bNTIbins=bNTI.bin.big(comm=comm, pd.desc=pd.big$pd.file, pd.spname=pd.big$tip.label,
pd.wd=pd.big$pd.wd, pdid.bin=pdid.bin, sp.bin=sp.bin,
spname.check = TRUE, nworker = nworker, memo.size.GB = 50,
weighted = TRUE, rand = rand.time, output.bMNTD = FALSE,
sig.index="SES", unit.sum = NULL, correct.special = TRUE,
detail.null = FALSE, special.method = "MNTD",
exclude.conspecifics = FALSE)
setwd(wd0)
# }
Run the code above in your browser using DataLab