def fq2fa(fq):
c = cycle([<NUM_LIT:1>, <NUM_LIT:2>, <NUM_LIT:3>, <NUM_LIT:4>])<EOL>for line in fq:<EOL><INDENT>n = next(c)<EOL>if n == <NUM_LIT:1>:<EOL><INDENT>seq = ['<STR_LIT>' % (line.strip().split('<STR_LIT:@>', <NUM_LIT:1>)[<NUM_LIT:1>])]<EOL><DEDENT>if n == <NUM_LIT:2>:<EOL><INDENT>seq.append(line.strip())<EOL>yield seq<EOL><DEDENT><DEDENT>
convert fq to fa