Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jluebeck committed Nov 17, 2023
1 parent d8487e8 commit 355dfb8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/AmpliconSuiteAggregatorFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def read_name_remap(name_remap_file):
fields = l.rstrip().rsplit()
name_remap[fields[0]] = fields[1]

print("Name remap has " + str(len(name_remap)) + " keys")
print("Name remap has " + str(len(name_remap)) + " keys")

print("No name remap file provided. Sample names will detected from filenames.")
return name_remap


Expand Down Expand Up @@ -419,7 +421,9 @@ def json_modifications(self):
feat_file = feat_file.replace('./results/', "")
sample_dct['Feature BED file'] = feat_file
else:
print(f'Feature: "Feature BED file" {feat_file} doesnt exist for sample {sample_dct["Sample name"]}')
if not feat_file.endswith("/NA"):
print(f'Feature: "Feature BED file" {feat_file} doesnt exist for sample {sample_dct["Sample name"]}')

sample_dct['Feature BED file'] = "Not Provided"

else:
Expand Down

0 comments on commit 355dfb8

Please sign in to comment.