def _clade_to_bitstr(clade, tree_term_names):
 clade_term_names = set((term.name for term in clade.find_clades(terminal=True)))
 return _BitString.from_bool(((name in clade_term_names) for name in tree_term_names))

def _clade_to_bitstr ( clade , tree_term_names ) : clade_term_names = set ( ( term . name for term in clade . find_clades ( terminal = True ) ) ) return _BitString . from_bool ( ( ( name in clade_term_names ) for name in tree_term_names ) )
create a bitstring representing a clade .