Mercurial > repos > charles-bernard > data_manager_build_alfa_indexes
changeset 24:424d6204a298 draft
Uploaded
author | charles-bernard |
---|---|
date | Tue, 01 Nov 2016 06:40:26 -0400 |
parents | c7dbef0e9ed7 |
children | 5dafa8e43d3e |
files | data_manager_build_alfa_indexes/data_manager/data_manager_build_alfa_indexes.py |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/data_manager_build_alfa_indexes/data_manager/data_manager_build_alfa_indexes.py Tue Nov 01 06:32:34 2016 -0400 +++ b/data_manager_build_alfa_indexes/data_manager/data_manager_build_alfa_indexes.py Tue Nov 01 06:40:26 2016 -0400 @@ -8,7 +8,6 @@ import gzip import os import tempfile -import logging from optparse import OptionParser from galaxy.util.json import from_json_string, to_json_string @@ -80,7 +79,6 @@ species_lines_matched, grep_error = grep_result.communicate() if grep_error != None or species_lines_matched == "": msg = 'The species \'%s\' is not referenced on Ensembl (%s)' % (species_name, kingdom) - logging.critical(msg) sys.exit(msg) species_lines = species_lines_matched.split('\n') @@ -115,7 +113,6 @@ print("-> Referenced !\n") return species_name, species_lines[i] msg = 'The string \'%s\' has been matched against the list of Ensembl Species but is not a complete species name.\nPlease retry with one of the following species names:\n%s' % (species_name, list_species[0:]) - logging.critical(msg) sys.exit(msg) def get_ensembl_collection(kingdom, species_line): @@ -162,7 +159,6 @@ alfa_out, alfa_err = alfa_result.communicate() if alfa_err != None and not re.search('### End of program', alfa_err): msg = 'Generation Failed due an alfa error: %s' % (alfa_err) - logging.critical(msg) sys.exit(msg) print("Alfa prompt:\n%s" % alfa_out) print("-> Generated !\n") @@ -187,7 +183,6 @@ if options.output_filename == None: msg = 'No json output file specified' - logging.critical(msg) sys.exit(msg) output_filename = options.output_filename params = from_json_string(open(output_filename).read())