annotate get_clustering_methods.py @ 8:a4009bf30e70 draft default tip

Uploaded
author greg
date Thu, 06 Sep 2018 09:38:43 -0400
parents 51c2f0c74349
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
1 import os
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
2
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
3
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
4 def get_clustering_method_options(file_path):
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
5 options = []
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
6 if not os.path.isdir(file_path):
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
7 return options
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
8 methods_dir = os.path.join(file_path, "alns")
7
51c2f0c74349 Uploaded
greg
parents: 6
diff changeset
9 for i, dir_name in enumerate(os.listdir(methods_dir)):
51c2f0c74349 Uploaded
greg
parents: 6
diff changeset
10 options.append((dir_name, dir_name, i == 0))
6
00f14e3bbe9f Uploaded
greg
parents:
diff changeset
11 return options