changeset 32:9b7dc7d09fda draft

Fixing some indentation errors in build_the_library.
author trinity_ctat
date Thu, 25 Oct 2018 10:31:19 -0400
parents 0df7a729910d
children 91319ae21a16
files data_manager/add_ctat_resource_lib.py
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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 <force new build> 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 <force new build> 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()