Mercurial > repos > iuc > meme_chip
comparison get_meme_motif_databases.py @ 4:3eee5fd08dac draft
Uploaded
| author | iuc |
|---|---|
| date | Thu, 15 Mar 2018 13:16:40 -0400 |
| parents | |
| children | c321ab02c2a0 |
comparison
equal
deleted
inserted
replaced
| 3:8d3877046d78 | 4:3eee5fd08dac |
|---|---|
| 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 | |
| 12 |
