oschwery / MonoPhy

R package to explore monophyly
6 stars 3 forks source link

Count number of splitted groups within a phylogeny #65

Open StromTroopers opened 5 years ago

StromTroopers commented 5 years ago

Hello, I wondered if it whas possible within a newick tree to count the number of monophyletic groups even if intruders are splitting this group.

Here is an exemple

Let say you have the following three :

((A,A),((B,B),((A,A),A))));here in that caseA are species belonging to the Genus A for instance and B species from the Genus B.

And here if I use your package I should have a result that shows a monophyletic group for species B but not for species A because there is thetwo B species between them. But what I wanted to know if there were a way to count the number of groups where species A are grouped together, here a such result should be:

Number of groupes shared by A species = 2 Number of groupes shared by B species= 1 Is there any option in order to do that?

Thank you for your help :)

oschwery commented 5 years ago

Hi there, thanks for your interest in the package!

Hm, it should technically be possible, absolutely. I actually thought of something similar with someone else at some point but dropped it for the time being due to time constraints.

I'd be happy to think about it a bit, though am a bit busy at the moment - were you needing a solution to this within a certain time-frame?