annotate get_meme_motif_databases.py @ 9:4fc125833bc2
draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme_chip commit 0ba5f658424430eea10c79f92c9a8d7a1ca9eaf3
| author |
iuc |
| date |
Thu, 15 Nov 2018 09:57:52 -0500 |
| parents |
c321ab02c2a0 |
| children |
|
| rev |
line source |
|
4
|
1 import os
|
|
|
2
|
|
|
3
|
|
|
4 def get_meme_motif_database_options(file_path):
|
|
|
5 options = []
|
|
|
6 if not os.path.isdir(file_path):
|
|
|
7 return options
|
|
|
8 for i, file_name in enumerate(os.listdir(file_path)):
|
|
|
9 full_path = os.path.join(file_path, file_name)
|
|
|
10 options.append((file_name, full_path, i == 0))
|
|
|
11 return options
|