Closed hcc14 closed 2 years ago
Hi, I was trying to run BactDating and checking the effective size, but it looks like an issue in the conversion to an mcmc object
library(coda) library(BactDating) res = bactdate(unroot(nwk_tree), collectionTime, nbIts=1e5, showProgress = T) mcmc = as.mcmc(res) effectiveSize(mcmc) Error in character(ncol(y)) : invalid 'length' argument
library(coda)
library(BactDating)
res = bactdate(unroot(nwk_tree), collectionTime, nbIts=1e5, showProgress = T)
mcmc = as.mcmc(res)
effectiveSize(mcmc)
packageVersion("BactDating") [1] ‘1.1.0’ packageVersion("coda") [1] ‘0.19.4’
It should work if you replace the line 4 with: mcmc=as.mcmc.resBactDating(res)
mcmc=as.mcmc.resBactDating(res)
Hi, I was trying to run BactDating and checking the effective size, but it looks like an issue in the conversion to an mcmc object
library(coda)
library(BactDating)
res = bactdate(unroot(nwk_tree), collectionTime, nbIts=1e5, showProgress = T)
mcmc = as.mcmc(res)
effectiveSize(mcmc)
Error in character(ncol(y)) : invalid 'length' argument