def fq_merge(R1, R2):
c = itertools.cycle([<NUM_LIT:1>, <NUM_LIT:2>, <NUM_LIT:3>, <NUM_LIT:4>])<EOL>for r1, r2 in zip(R1, R2):<EOL><INDENT>n = next(c)<EOL>if n == <NUM_LIT:1>:<EOL><INDENT>pair = [[], []]<EOL><DEDENT>pair[<NUM_LIT:0>].append(r1.strip())<EOL>pair[<NUM_LIT:1>].append(r2.strip())<EOL>if n == <NUM_LIT:4>:<EOL><INDENT>yield pair<EOL><DEDENT><DEDENT>
merge separate fastq files