Skip to content

Commit

Permalink
print files in curr dir if Aggregate can't find files
Browse files Browse the repository at this point in the history
  • Loading branch information
kclem committed Sep 13, 2022
1 parent ce25bc0 commit 4ed5e24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRISPResso2/CRISPRessoAggregateCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,12 @@ def main():
quilt_plots_to_show)
crispresso2_info['running_info']['report_location'] = report_filename
crispresso2_info['running_info']['report_filename'] = os.path.basename(report_filename)
else: #no files successfully imported
files_in_curr_dir = os.listdir('.')
if len(files_in_curr_dir) > 15:
files_in_curr_dir = files_in_curr_dir[0:15]
files_in_curr_dir.append("(Complete listing truncated)")
info('No CRISPResso runs could be imported.\nFiles in current directory:\n\t' + "\n\t".join(files_in_curr_dir))

end_time = datetime.now()
end_time_string = end_time.strftime('%Y-%m-%d %H:%M:%S')
Expand Down

0 comments on commit 4ed5e24

Please sign in to comment.