# HG changeset patch # User iuc # Date 1521134200 14400 # Node ID 3eee5fd08daca65de3e7dfb036d981c885cc1cc0 # Parent 8d3877046d78de93ba14315dd138b86d3f91302b Uploaded diff -r 8d3877046d78 -r 3eee5fd08dac get_meme_motif_databases.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get_meme_motif_databases.py Thu Mar 15 13:16:40 2018 -0400 @@ -0,0 +1,12 @@ +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 +