# HG changeset patch # User trinity_ctat # Date 1540477879 14400 # Node ID 9b7dc7d09fdaa2869b5cf45871eb16ecdadf41e5 # Parent 0df7a729910d8aef6fa16b1c52885f59247933b2 Fixing some indentation errors in build_the_library. diff -r 0df7a729910d -r 9b7dc7d09fda data_manager/add_ctat_resource_lib.py --- a/data_manager/add_ctat_resource_lib.py Thu Oct 25 10:15:53 2018 -0400 +++ b/data_manager/add_ctat_resource_lib.py Thu Oct 25 10:31:19 2018 -0400 @@ -717,7 +717,7 @@ return -def build_the_library(genome_source_directory, genome_build_directory, force_new_build, gmap_build): +def build_the_library(genome_source_directory, genome_build_directory, force_new_build=False, gmap_build=False): """ genome_source_directory is the location of the source_data needed to build the library. Normally it is fully specified, but could be relative. genome_build_directory is the location where the library will be built. @@ -808,16 +808,18 @@ gmap_success_full_file_path = os.path.join(cannonical_destination, gmap_success_filename) create_success_file(gmap_success_full_file_path, \ "gmap of:\n\t{:s}\nsucceeded.".format(cannonical_destination)) - elif (build_success_filename in files_in_sourcedir): - print "The build success file exists, so no build is being attempted:" - print "\t{:s}".format(build_success_file_path) - print "Remove the file or set if you want a new build to occur." + elif (build_success_filename in files_in_sourcedir): + print "The build success file exists, so no build is being attempted:" + print "\t{:s}".format(build_success_file_path) + print "Remove the file or set if you want a new build to occur." + # We might still need to do a gmap_build. if gmap_build: print "Checking if we need to gmap the library." gmap_the_library(cannonical_destination, force_new_build) # gmap_the_library creates a gmap success file if it succeeds. - else: - print "build_the_library(): This code should never be printed. Something is wrong." + else: + print "build_the_library(): This code should never be printed. Something is wrong." + return # End of build_the_library()