view get_meme_motif_databases.py @ 5:ff7dc6057652 draft

Uploaded
author iuc
date Mon, 16 Apr 2018 11:27:00 -0400
parents 3eee5fd08dac
children c321ab02c2a0
line wrap: on
line source

import os


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