scripts/validation/genome_download_validator.py
def check_genome_download_status(lsf_out_file, keyword):
    """
    Opens LSF output file and checks whether the job's status is success

    lsf_out_file: LSF platform's output file generated by -o option
    keyword: A string to look for in the file (e.g. Success)

    returns: status 1 if the keyword was found, otherwise 0
    """

    infile_fp = open(lsf_out_file, 'r')

    status = False

    for line in infile_fp:
        if line.find(keyword) != -1:
            status = True

    infile_fp.close()

    return status

    Opens LSF output file and checks whether the job's status is success

    lsf_out_file: LSF platform's output file generated by -o option
    keyword: A string to look for in the file (e.g. Success)

    returns: status 1 if the keyword was found, otherwise 0
    
Opens LSF output file and checks whether the job's status is success
lsf_out_file: LSF platform's output file generated by -o option
keyword: A string to look for in the file

status 1 if the keyword was found, otherwise 0
Opens LSF output file and checks whether the job ' s status is success lsf_out_file : LSF platform ' s output file generated by - o option keyword : A string to look for in the file status 1 if the keyword was found otherwise 0
def check_genome_download_status(lsf_out_file, keyword):
    infile_fp = open(lsf_out_file, 'r')
    status = False
    for line in infile_fp:
        if line.find(keyword) != -1:
            status = True
    infile_fp.close()
    return status
def check_genome_download_status ( lsf_out_file , keyword ) : infile_fp = open ( lsf_out_file , 'r' ) status = False for line in infile_fp : if line . find ( keyword ) != - 1 : status = True infile_fp . close ( ) return status
Opens LSF output file and checks whether the job's status is success
lsf_out_file: LSF platform's output file generated by -o option
keyword: A string to look for in the file (e.g.
Opens LSF output file and checks whether the job ' s status is success lsf_out_file : LSF platform ' s output file generated by - o option keyword : A string to look for in the file ( e . g .
"""
    Opens LSF output file and checks whether the job's status is success

    lsf_out_file: LSF platform's output file generated by -o option
    keyword: A string to look for in the file (e.g. Success)

    returns: status 1 if the keyword was found, otherwise 0
    """
lsf_out_file
keyword