# HG changeset patch # User greg # Date 1674748837 0 # Node ID 7d47800ee5ac4d28c6774864b5dc270cdf48eb9d # Parent 636eeb4fb9ac488feb2a225b490f545e4728f1dc Uploaded diff -r 636eeb4fb9ac -r 7d47800ee5ac draw_features.py --- 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