Re: [R-sig-phylo] Extract and summarise internal branch lengths for different samples

2023-01-18 Thread Liam J. Revell
I'm not sure how it scales to a large tree, though! For an example phylogeny of 1,000 tips and a clade of 116 species it ran in the blink of an idea, so I suppose it's probably OK. Obviously, I meant to write "blink of an eye." It's been a long day. Liam J. Revell Professor of Biology,

Re: [R-sig-phylo] Extract and summarise internal branch lengths for different samples

2023-01-18 Thread Liam J. Revell
Dear Jhonny. If I understand your problem correctly, this will work in /theory/ -- shown for clade/t5/ through /t9/ in your example. This works when your tips in a sample form a /clade/ -- but will otherwise sum the internal edges leading to the internal nodes of all taxa in a set, while

[R-sig-phylo] Extract and summarise internal branch lengths for different samples

2023-01-18 Thread Jhonny Capichoni Massante
Dear colleagues, I would like to ask for a little help from you.I have a phylogenetic tree with nine taxa and three samples (see figure below). Each sample has three taxa from the phylogeny. I am interested in extracting the internal branch lengths (corresponding to the ancestors of all tips) that