Update format for paired-end

parent c7dc120c
...@@ -37,9 +37,7 @@ def upsample(upsampling_read_count, read_id): ...@@ -37,9 +37,7 @@ def upsample(upsampling_read_count, read_id):
if x > max_x: if x > max_x:
max_x = x max_x = x
y = int(title_line.split(':')[5]) y = str(title_line.split(':')[5])
if y > max_y:
max_y = y
if title_line == read_id: if title_line == read_id:
title_line_str = title_line title_line_str = title_line
...@@ -51,7 +49,7 @@ def upsample(upsampling_read_count, read_id): ...@@ -51,7 +49,7 @@ def upsample(upsampling_read_count, read_id):
pass pass
for i in range(1, upsampling_read_count + 1): for i in range(1, upsampling_read_count + 1):
print(':'.join(title_line_str.split(':')[0:2] + [str(max_lane + i), str(max_tile + i), str(max_x + i), str(max_y + i)])) print(':'.join(title_line_str.split(':')[0:2] + [str(max_lane + i), str(max_tile + i), str(max_x + i), str(y)]))
print(sequence_line_str) print(sequence_line_str)
print('+') print('+')
print(quality_line_str) print(quality_line_str)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment