Closed graciellehigino closed 4 years ago
Thanks! Github changed its notification center, which I find is more annoying. Thus I did not see your issue till now.
The problem here is that one of your site, after removing species that are not in the phylogeny, has no species anymore.
hp_mat2 = hp_mat[, colnames(hp_mat) %in% tree_hosts$tip.label]
which(rowSums(hp_mat2) == 0) # 22
If you remove this site, it should work. I have updated the function in case this happens later. Thanks!
Yaass thank you! It worked perfectly! [=
Hello!
Thank you for maintaining this package, it's really useful. I am having a problem when I try to run the function
pcd
with an ultrametric tree. I need to calculate PCD for two trees using the same community matrix, and it works for one of them, but not for the other. I already checked if all species of the tree tips are in the community matrix and vice-versa. When I tried to run line by line and setting thecpp
argument asFALSE
, it runs, but the result is full of NA's (and it was not supposed to be like that). Am I missing something?Thank you again!