view get_clustering_methods.py @ 10:4d73965d99a2 draft

"planemo upload for repository https://github.com/gregvonkuster/galaxy_tools/tree/master/tools/phylogenetics/plant_tribes/assembly_post_processor commit 71ba0e157346927bf42b788f552b95a71556b28a"
author greg
date Wed, 09 Jun 2021 20:26:55 +0000
parents ade62ce0029b
children
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, dir_name in enumerate(os.listdir(methods_dir)):
        options.append((dir_name, dir_name, i == 0))
    return options