comparison name_changer.py @ 2:abc729336fd0 draft default tip

Uploaded bug fix
author brenninc
date Fri, 06 May 2016 09:46:28 -0400
parents c28a790f2566
children
comparison
equal deleted inserted replaced
1:c15850c85232 2:abc729336fd0
84 with open(options.fixed_count_file, "w") as output_file: 84 with open(options.fixed_count_file, "w") as output_file:
85 input_file.readline() # job line 85 input_file.readline() # job line
86 start_header = ["Geneid", "Chr", "Start", "End", "Strand", "Length"] 86 start_header = ["Geneid", "Chr", "Start", "End", "Strand", "Length"]
87 header_line = fix_header_line(start_header, input_file.readline(), new_names) 87 header_line = fix_header_line(start_header, input_file.readline(), new_names)
88 output_file.write(header_line) 88 output_file.write(header_line)
89 count = 0
90 for line in input_file: 89 for line in input_file:
91 count += 1 90 output_file.write(line)
92 if count < 5:
93 output_file.write(line)
94 91
95 with open(options.raw_summary_file, "r") as input_file: 92 with open(options.raw_summary_file, "r") as input_file:
96 with open(options.fixed_summary_file, "w") as output_file: 93 with open(options.fixed_summary_file, "w") as output_file:
97 start_header = ["Status"] 94 start_header = ["Status"]
98 header_line = fix_header_line(start_header, input_file.readline(), new_names) 95 header_line = fix_header_line(start_header, input_file.readline(), new_names)