mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-27 19:00:24 +08:00
exiting after errors in guidance.py
This commit is contained in:
parent
b981641f62
commit
0f2ae76d13
@ -12,9 +12,11 @@ def run(params):
|
||||
|
||||
if not os.path.isdir(preguidance_path):
|
||||
print('\nERROR: The path ' + preguidance_path + ' could not be found when trying to locate pre-Guidance (unaligned) files. Make sure that the --start and --data parameters are correct and/or that the pre-Guidance step ran successfully.\n')
|
||||
exit()
|
||||
|
||||
if len([f for f in os.listdir(preguidance_path) if f.endswith('.fa') or f.endswith('.faa') or f.endswith('.fasta')]) == 0:
|
||||
print('\nERROR: No pre-Guidance (unaligned) files could be found at the path ' + preguidance_path + '. Make sure that the --start and --data parameters are correct, that the pre-Guidance step ran successfully, and that the unaligned files are formatted correctly (they must have the file extension .faa, .fa, or .fasta).\n')
|
||||
exit()
|
||||
|
||||
os.mkdir(params.output + '/Output/Intermediate/Guidance')
|
||||
os.mkdir(params.output + '/Output/Intermediate/Guidance/Input')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user