def get_all_assembly_name_tuples(cls): assembly_list = [] for assembly in ReleaseUtils.get_all_assembly_names(): assembly_list.append((assembly, assembly)) return assembly_list
def get_all_assembly_release_name_tuples(cls, assembly_name=None, source_name=None): assembly_release_list = [] for assembly_name in ReleaseUtils.get_all_assembly_names(): for release in ReleaseUtils.get_all_release_short_names( assembly_name, source_name): assembly_release_list.append( (str(assembly_name) + ":" + str(release), str(assembly_name) + ":" + str(release))) return assembly_release_list
def test_get_all_assembly_names(self): all_assemblies = ReleaseUtils.get_all_assembly_names() expected_list = ['GRCh37', 'GRCh38'] self.assertListEqual(all_assemblies, expected_list, "Got the right assembly list")