comparison cwpair2.py @ 6:c4b926c9831c draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cwpair2 commit ca66053a0d915edba3d7f1d4ce014718e7f4f0f2
author iuc
date Thu, 02 May 2019 08:30:22 -0400
parents d843468aeb8f
children
comparison
equal deleted inserted replaced
5:71188f3f4b76 6:c4b926c9831c
60 if path not in by_file: 60 if path not in by_file:
61 by_file[path] = [] 61 by_file[path] = []
62 by_file[path].append(stats) 62 by_file[path].append(stats)
63 # Write tabular statistics file. 63 # Write tabular statistics file.
64 keys = ['fname', 'final_mode', 'preview_mode', 'perc95', 'paired', 'orphans'] 64 keys = ['fname', 'final_mode', 'preview_mode', 'perc95', 'paired', 'orphans']
65 statistics_out = csv.writer(open(args.statistics_output, 'wt'), delimiter='\t') 65 statistics_out = csv.writer(open(args.statistics_output, 'wt'), delimiter='\t', lineterminator="\n")
66 statistics_out.writerow(keys) 66 statistics_out.writerow(keys)
67 for file_path, statistics in by_file.items(): 67 for file_path, statistics in by_file.items():
68 for stats in statistics: 68 for stats in statistics:
69 statistics_out.writerow([stats[key] for key in keys]) 69 statistics_out.writerow([stats[key] for key in keys])