Re: [R-sig-phylo] Error when using rerootingMethod() - the specified outgroup is not monophyletic

2013-05-21 Thread Graeme Lloyd
Hi Liam, Oops. That's embarrassing. Apologies for that, and thanks for taking the time to help me out. I have now thrown 158,904 test cases at your function and that was the only outstanding issue. Cheers, Graeme On 21 May 2013, at 16:42, Liam J. Revell liam.rev...@umb.edu wrote: Hi

Re: [R-sig-phylo] Extracting Independent Subclades

2013-05-21 Thread Glenn Seeholzer
Hi Emmanuel, Thanks for the suggestion to use prop.part(tree), its definitely faster the what I had come up with. I might have missed something, but I don't think using %in% alone will solve my problem. Essentially, I'm interested in finding an objective way to determine sets of independent

Re: [R-sig-phylo] Extracting Independent Subclades

2013-05-21 Thread Liam J. Revell
Glenn - if this function does what you were hoping for, then I have also posted a version that works for non-binary trees. For more information, check out my blog: http://blog.phytools.org/2013/05/version-of-getcladesofsize-that-also.html. All the best, Liam Liam J. Revell, Assistant

Re: [R-sig-phylo] Extracting Independent Subclades

2013-05-21 Thread Emmanuel Paradis
Hi Glenn, Of course %in% is pairwise. I thought you'd figure out the rest of it ;) I can see two ways to solve your problem, though I don't know if they work. The 1st one: 1) Select the clades of appropriate size(s). 2) Build a square symmetric matrix where the rows and columns are the clades