view get_clustering_methods.py @ 59:f3e6fb5acc15 draft

Uploaded
author greg
date Wed, 29 Aug 2018 14:23:52 -0400
parents
children 83860903ac21
line wrap: on
line source

import os


def get_clustering_method_options(file_path):
    options = []
    if not os.path.isdir(file_path):
        return options
    methods_dir = os.path.join(file_path, "alns")
    for i, file_name in enumerate(os.listdir(methods_dir)):
        full_path = os.path.join(file_path, file_name)
        options.append((file_name, full_path, i == 0))
    return options