def extend_aaindex(filename): """Extend the user-defined AAIndex from user's file. :return: a list of AAIndex obj. """ from scrip.extract_aaindex import extra_aaindex, norm_index_vals aaindex = extra_aaindex(filename) for ind, e in enumerate(aaindex): aaindex[ind] = AAIndex(e.head, norm_index_vals(e.index_dict)) return aaindex