Mercurial > repos > bgruening > split_file_to_collection
comparison split_file_to_collection.py @ 10:2dae863c8f42 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/split_file_to_collection commit 5d21f3d6a3a84b4737a2091ae0d772471eb389dd
author | bgruening |
---|---|
date | Thu, 23 May 2024 15:03:47 +0000 |
parents | baabc30154cd |
children |
comparison
equal
deleted
inserted
replaced
9:baabc30154cd | 10:2dae863c8f42 |
---|---|
327 # if beginning of line is not record sep, we must be inside a record | 327 # if beginning of line is not record sep, we must be inside a record |
328 # so just append | 328 # so just append |
329 else: | 329 else: |
330 record += line | 330 record += line |
331 # after loop, write final record to file | 331 # after loop, write final record to file |
332 if new_file_counter in fresh_files: | |
333 new_file.write(header) | |
332 new_file.write(record) | 334 new_file.write(record) |
333 new_file.close() | 335 new_file.close() |
334 | 336 |
335 | 337 |
336 def split_by_column(args, in_file, out_dir, top): | 338 def split_by_column(args, in_file, out_dir, top): |