def find_merges(self):
ids = defaultdict(list)<EOL>for ali in self.values():<EOL><INDENT>ids[ali.id].append(ali.seq)<EOL><DEDENT>merges = [list(sorted(lst)) for lst in ids.values() if len(lst) > <NUM_LIT:1>]<EOL>merges = tuple((lst[<NUM_LIT:0>], tuple(lst[<NUM_LIT:1>:])) for lst in merges)<EOL>if merges:<EOL><INDENT>_logger.error("<STR_LIT>")<EOL>for target, drops in merges:<EOL><INDENT>_logger.error('<STR_LIT>'.format('<STR_LIT:U+002CU+0020>'.join(str(d) for d in drops), target)) <EOL><DEDENT><DEDENT>return merges<EOL>
Returns a tuple of (mergee, (*mergers)) tuples (does not drop)