def run_checks():
    if not gui.check_email():
        return False
    input_file_exists = gui.check_file()
    direct_input = check_sequence_input()
    if not input_file_exists and not direct_input:
        print('Either paste sequence into direct input or select a file.')
        return False
    if input_file_exists and direct_input:
        print(
            'File upload and direct cannot be used at the same time. Please use only one of the input methods.'
        )
        return False
    return True
Beispiel #2
0
def run_checks():
    if not gui.check_email():
        return False
    if not gui.check_file():
        return False
    return True