def mapIdentifiers(self, map_old2new=None, pattern_identifier="ID%06i"):
        new_identifiers = []
        if map_old2new is not None:
            for id in self.mIdentifiers:
                new_id = map_old2new[id]
                new_identifiers.append(new_id)

                entry = self.mMali[id]
                del self.mMali[id]
                # entry.mId = new_id
                self.mMali[new_id] = entry
        else:
            map_old2new = {}
            n = 1
            for id in self.mIdentifiers:
                new_id = pattern_identifier % n
                new_identifiers.append(new_id)

                entry = self.mMali[id]
                del self.mMali[id]
                # entry.mId = new_id
                self.mMali[new_id] = entry

                map_old2new[new_id] = id
                n += 1

        self.mIdentifiers = new_identifiers

        return map_old2new
map identifiers in multiple aligment.
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Mali.py/Mali.mapIdentifiers