Bootstrap values on the phylogenetic tree in Ape r package
1
1
Entering edit mode
22 months ago
Denis ▴ 200

Hi there, I've constructed the tree with bootstrap supports in Ape package. But i'd prefer to get bootstrap values in percentage not in absolute number of replications. How can i do that in Ape?

R phylogenetics • 2.6k views
ADD COMMENT
1
Entering edit mode

Access the values in the returned object and divide by the number of bootstrap samples.

ADD REPLY
0
Entering edit mode

There is no slot named node.label in my object of class 'phylo' (i use ape 5.3). So i can not execute something like:

tree$node.label <- as.numeric(tree$node.label)/1000
ADD REPLY
2
Entering edit mode

Maybe show then what you do have. Some code might also be useful.

ADD REPLY
3
Entering edit mode
22 months ago
Denis ▴ 200

I solved the issue by the R code:

plot(stree)
nodelabels(round(myBoots/1000*100),adj = 0.7)

where myBoots is numeric vector containing my bootstrap values

ADD COMMENT

Login before adding your answer.

Traffic: 2526 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6