Entering edit mode
15 months ago
Fedor
▴
10
I have a tree and I want to cut it on a given depth (red line on the pic) to produce separate subtrees. Basically what I need is smth like the dict with group ids (1-6 on the pic) as keys and the lists of sequences as values.
Thank you for your kind assistance.
Maybe you could add a code chunk so someone might have a better idea how to advise? I know that you can use find_clades to return a list of clades containing your target element and then the depths property might be what you need to 'cut' your tree.
I'm no expert just figured it should be possible so had a look at the docs for the object. Maybe there is an easier way
Ok, I've figured out how to do what I need. Thanks for the advise, I used both find_clades and depths