changeset 4:3eee5fd08dac draft

Uploaded
author iuc
date Thu, 15 Mar 2018 13:16:40 -0400
parents 8d3877046d78
children ff7dc6057652
files get_meme_motif_databases.py
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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
+