comparison join_files_on_column_fuzzy.py @ 2:f2068690addc draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/join_files_on_column_fuzzy commit 73ccf407098f84351a1bd18438b80023d362b91f
author bgruening
date Fri, 13 Apr 2018 03:30:12 -0400
parents 64469e7ecf9f
children
comparison
equal deleted inserted replaced
1:8750c3125ec5 2:f2068690addc
83 write_buffer.append([ppm_dist, line_template % '\t'.join( columns + _c )]) 83 write_buffer.append([ppm_dist, line_template % '\t'.join( columns + _c )])
84 _cache.append([_c, value2]) 84 _cache.append([_c, value2])
85 fill_cache() 85 fill_cache()
86 elif ppm_dist > args.distance: 86 elif ppm_dist > args.distance:
87 _cache.append([_c, value2]) 87 _cache.append([_c, value2])
88 elif ppm_dist < args.distance:
89 fill_cache() 88 fill_cache()
90 if args.closest and write_buffer: 89 if args.closest and write_buffer:
91 write_buffer.sort(key=lambda x: x[0]) 90 write_buffer.sort(key=lambda x: x[0])
92 out.write(write_buffer[0][1]) 91 out.write(write_buffer[0][1])
93 else: 92 else: