Hello,
I'm trying to reconstruct the major biogeographic region from which
different families have originated. I have data on the proportion of each
family's range that falls within each biogeographic region, as well as (of
course) a phylogeny.
My approach so far has been to assign, if
Hi Wade,
If I understood your problem correctly, maybe the example below will help
you.
library(ape)
foo - vector(list, 2)
foo[[1]] - ATACTACTATATT
foo[[2]] - ATTTCCATTATGT
names(foo) - c(seq1, seq2)
foo - as.DNAbin(foo)
names(foo)
[1] seq1 seq2
names(foo) - c(SeqA, SeqB)
names(foo)
[1]
Dear All
I am trying to find a way to get a vector of only the terminal branch length
for species in a phylogeny, but cant seem to find a way
any suggestions?
Best,
Maria Mercedes
--
Maria Mercedes Gavilanez
Department of Biological Sciences
107 Life Sciences Building
Louisiana State
Try this:
# given an object of class phylo called tree
# 1. create vector for terminal edge lengths
terminal.edges-matrix(NA,length(tree$tip.label));
# 2. copy terminal branches into vector
terminal.edges-tree$edge.length[tree$edge[1:(2*length(tree$tip.label)-2),2]=length(tree$tip.label)];