def get_feature_aliases(self, ctx, ref, feature_id_list): """ Retrieve Feature aliases. @param feature_id_list List of Feature IDS for which to retrieve aliases. If empty, returns data for all features. @return Mapping of Feature IDs to a list of aliases. :param ref: instance of type "ObjectReference" :param feature_id_list: instance of list of String :returns: instance of mapping from String to list of String """ # ctx is the context object # return variables are: returnVal #BEGIN get_feature_aliases ga = GenomeAnnotationAPI_local(self.services, ctx['token'], ref) returnVal = ga.get_feature_aliases(feature_id_list) #END get_feature_aliases # At some point might do deeper type checking... if not isinstance(returnVal, dict): raise ValueError('Method get_feature_aliases return value ' + 'returnVal is not type dict as required.') # return the results return [returnVal]