Skip to content

Commit

Permalink
improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jluebeck committed Apr 19, 2024
1 parent d34c954 commit dbaf0d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AmpliconSuiteAggregatorFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def unzip_file(fp, dest_root):

except Exception as e:
print(e)
sys.exit(1)


def clean_dirs(dlist):
Expand Down Expand Up @@ -259,7 +260,10 @@ def run_amp_classifier(self):
sys.exit(1)

print(f"AC_SRC is set to {AC_SRC}")
os.system(f"{AC_SRC}/make_input.sh {OUTPUT_PATH} {OUTPUT_PATH}/{self.output_name}" )
input_ec = os.system(f"{AC_SRC}/make_input.sh {OUTPUT_PATH} {OUTPUT_PATH}/{self.output_name}")
if input_ec != 0:
print("Failed to make input for AC!")
sys.exit(1)

## if reference isn't downloaded already, then download appropriate reference genome
try:
Expand Down

0 comments on commit dbaf0d1

Please sign in to comment.