Commit 7ecd0ccd authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fix bug: Analysis is executed even if no valid file is given (fixes #39)

Sem-Ver: bugfix
parent 60e4da60
......@@ -6,6 +6,7 @@ import copy
import shutil
from psot.nextflow import setup_execution_directory, execute_analysis
import tempfile
import sys
def main():
parser = argparse.ArgumentParser(description='Make bioinformatic observations on aminoacid sequences')
......@@ -40,6 +41,9 @@ def info(args, config):
show_analyses(config)
def analyze(args, config):
if not os.path.isfile(args.fasta):
print("Given fasta file does not exist")
sys.exit(1)
execution = generate_execution(config, args)
if args.debug:
print(execution)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment