![](/img/trans.png)
[英]Create phylogenetic visualisation using ape package in R shiny
[英]How to include bootstrap values in phylogenetic trees in ape package
我正在使用R包ape
分析DNAbin對象中存儲的一些序列:
library(ape)
my.seq <- read.dna("sequences.txt", format = "clustal")
my.dist <- dist.dna(my.seq)
my.tree <- nj(my.dist)
我想找到引導程序值,所以我使用boot.phylo:
boot <- boot.phylo(my.tree, my.seq, FUN = function(xx) nj(dist.dna(xx)), B = 100)
但是我收到一條錯誤消息:
Error in if (drop[j]) next : missing value where TRUE/FALSE needed
知道這意味着什么,以及如何解決? 我嘗試使用Google搜索錯誤消息,但找不到任何東西。
您的if
條件導致NA
。
它必須具有TRUE
或FALSE
結果。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.