gneiss icon indicating copy to clipboard operation
gneiss copied to clipboard

Add in utility method for subsetting

Open mortonjt opened this issue 7 years ago • 0 comments

Probably should add in utility method to handle tips in the TreeNode.subset method.

https://github.com/biocore/scikit-bio/issues/1525

So it would be something like

def fetch_tips(t):
    if len(t.children) == 0:
        return {t.name}
    else:
        return t.subset()

mortonjt avatar Jul 31 '17 01:07 mortonjt