utils/genome_search_utils.py
def extract_project_stats(lsf_output_dir):
    """
    Loops over the out_dir which contains all .out LSF job files, parses the files and returns job
    details such as, start and end dates, max required memory etc.

    lsf_output_dir: A directory where job .out files have been stored
    """

    all_stats = {}

    # move all files in a single dir and get from there
    output_files = os.listdir(lsf_output_dir)

    total_exec_time = 0.0

    for output_file in output_files:
        job_stats = extract_job_stats(output_file)
        upid = job_stats.keys()
        total_exec_time = total_exec_time + float(job_stats[upid]["cpu_time"])
        all_stats[upid] = copy.deepcopy(job_stats[upid])

    avg_exec_time = total_exec_time / len(all_stats.keys())

    return all_stats, total_exec_time, avg_exec_time

    Loops over the out_dir which contains all .out LSF job files, parses the files and returns job
    details such as, start and end dates, max required memory etc.

    lsf_output_dir: A directory where job .out files have been stored
    
Loops over the out_dir which contains all .out LSF job files, parses the files and returns job
details such as, start and end dates, max required memory etc.

A directory where job .out files have been stored
Loops over the out_dir which contains all . out LSF job files parses the files and returns job details such as start and end dates max required memory etc . A directory where job . out files have been stored
def extract_project_stats(lsf_output_dir):
    all_stats = {}
    output_files = os.listdir(lsf_output_dir)
    total_exec_time = 0.0
    for output_file in output_files:
        job_stats = extract_job_stats(output_file)
        upid = job_stats.keys()
        total_exec_time = total_exec_time + float(job_stats[upid]["cpu_time"])
        all_stats[upid] = copy.deepcopy(job_stats[upid])
    avg_exec_time = total_exec_time / len(all_stats.keys())
    return all_stats, total_exec_time, avg_exec_time
def extract_project_stats ( lsf_output_dir ) : all_stats = { } output_files = os . listdir ( lsf_output_dir ) total_exec_time = 0.0 for output_file in output_files : job_stats = extract_job_stats ( output_file ) upid = job_stats . keys ( ) total_exec_time = total_exec_time + float ( job_stats [ upid ] [ "cpu_time" ] ) all_stats [ upid ] = copy . deepcopy ( job_stats [ upid ] ) avg_exec_time = total_exec_time / len ( all_stats . keys ( ) ) return all_stats , total_exec_time , avg_exec_time
Loops over the out_dir which contains all .out LSF job files, parses the files and returns job
details such as, start and end dates, max required memory etc.
Loops over the out_dir which contains all . out LSF job files parses the files and returns job details such as start and end dates max required memory etc .
"""
    Loops over the out_dir which contains all .out LSF job files, parses the files and returns job
    details such as, start and end dates, max required memory etc.

    lsf_output_dir: A directory where job .out files have been stored
    """ # move all files in a single dir and get from there
lsf_output_dir