

def run(self, clustering, postprocessing_parameters, trajectoryHandler, workspaceHandler, matrixHandler, generatedFiles):
    comparison = conformational_space_comparison(clustering, trajectoryHandler, matrixHandler, None, None)
    file_name = (postprocessing_parameters.get_value('file', default_value='conf_space_comp') + '.json')
    result_file_path = os.path.join(workspaceHandler['results'], file_name)
    open(result_file_path, 'w').write(json.dumps(comparison, sort_keys=False, indent=4, separators=(',', ': ')))
    generatedFiles.append({
        'description': 'Conformational Space Comparison',
        'path': os.path.abspath(result_file_path),
        'type': 'text',
    })

dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/postprocess/actions/confSpaceComparison/confSpaceComparison.py ConfSpaceComparisonPostAction.run/original