diff draw_features.py @ 1:7d47800ee5ac draft

Uploaded
author greg
date Thu, 26 Jan 2023 16:00:37 +0000
parents 636eeb4fb9ac
children c5555f1c8f49
line wrap: on
line diff
--- a/draw_features.py	Wed Jan 25 20:38:21 2023 +0000
+++ b/draw_features.py	Thu Jan 26 16:00:37 2023 +0000
@@ -25,9 +25,9 @@
         # Make sure the file is not empty.
         if os.path.isfile(feature_hits_file) and os.path.getsize(feature_hits_file) > 0:
             best_hits = pandas.read_csv(filepath_or_buffer=feature_hits_file, sep='\t', header=None)
-            ofh.write("\nFeature file %s will be processed\n" % str(feature_hits_file))
+            ofh.write("\nFeature file %s will be processed\n" % os.path.basename(feature_hits_file))
         else:
-            ofh.write("\nEmpty feature file %s will NOT be processed\n" % str(feature_hits_file))
+            ofh.write("\nEmpty feature file %s will NOT be processed\n" % os.path.basename(feature_hits_file))
             best_hits = None
         feature_hits[feature_name] = best_hits