Esempio n. 1
0
 def __init__(self, dir):
     self.dir = dir
     self.files = dict()
     for best in glam2.best_files(dir):
         fragment, cross_fold_index, seed = glam2.interpret_output_filename(
             best)
         self.files[(fragment, cross_fold_index)] = best
Esempio n. 2
0
 def __init__(self, dir):
     self.dir = dir
     self.files = dict()
     for best in glam2.best_files(dir):
         fragment, cross_fold_index, seed = glam2.interpret_output_filename(best)
         self.files[(fragment, cross_fold_index)] = best
Esempio n. 3
0
            sys.exc_clear()
        q.task_done()


#
# Create queue and worker threads
#
q = Queue.Queue()
for i in range(options.num_threads):
    t = threading.Thread(target=worker)
    t.setDaemon(True)
    t.start()


#
# Populate queue
#
if options.glam2_format:
    for best in glam2.best_files(options.pssm_dir):
        q.put(best)
else:
    for fragment in harness.options.fragments:
        for fold in harness.folds():
            q.put((fragment, fold))


#
# Wait until tasks are done
#
q.join()
Esempio n. 4
0
            sys.exc_clear()
        q.task_done()


#
# Create queue and worker threads
#
q = Queue.Queue()
for i in range(options.num_threads):
    t = threading.Thread(target=worker)
    t.setDaemon(True)
    t.start()


#
# Populate queue
#
if options.glam2_format:
    for best in glam2.best_files(options.pssm_dir):
        q.put(best)
else:
    for fragment in harness.options.fragments:
        for fold in harness.folds():
            q.put((fragment, fold))


#
# Wait until tasks are done
#
q.join()