Mercurial > repos > iuc > meme_chip
diff get_meme_motif_databases.py @ 0:6095db402811 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme_chip commit 9068afc3812495aaf88c9a2f5a224c634d634742
author | iuc |
---|---|
date | Fri, 20 Apr 2018 09:03:44 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get_meme_motif_databases.py Fri Apr 20 09:03:44 2018 -0400 @@ -0,0 +1,11 @@ +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