def _renamer(self, tre):
<EOL>names = tre.get_leaves()<EOL>for name in names:<EOL><INDENT>name.name = self.samples[int(name.name)]<EOL><DEDENT>return tre.write(format=<NUM_LIT:9>)<EOL>
renames newick from numbers to sample names