def parse_rRNA(insertion, seq, gff):
offset = insertion['<STR_LIT>']<EOL>strand = insertion['<STR_LIT>']<EOL>for rRNA in parse_masked(seq, <NUM_LIT:0>)[<NUM_LIT:0>]:<EOL><INDENT>rRNA = '<STR_LIT>'.join(rRNA)<EOL>Start = seq[<NUM_LIT:1>].find(rRNA) + <NUM_LIT:1><EOL>End = Start + len(rRNA) - <NUM_LIT:1><EOL>if strand == '<STR_LIT:->':<EOL><INDENT>Start, End = End - <NUM_LIT:2>, Start - <NUM_LIT:2><EOL><DEDENT>pos = (abs(Start + offset) - <NUM_LIT:1>, abs(End + offset) - <NUM_LIT:1>)<EOL>Start, End = min(pos), max(pos)<EOL>source = insertion['<STR_LIT:source>']<EOL>annot = '<STR_LIT>' % (source.split('<STR_LIT>', <NUM_LIT:1>)[<NUM_LIT:0>])<EOL>gff['<STR_LIT>'].append(insertion['<STR_LIT>'])<EOL>gff['<STR_LIT:source>'].append(source)<EOL>gff['<STR_LIT>'].append('<STR_LIT>')<EOL>gff['<STR_LIT:start>'].append(Start)<EOL>gff['<STR_LIT:end>'].append(End)<EOL>gff['<STR_LIT>'].append('<STR_LIT:.>')<EOL>gff['<STR_LIT>'].append(strand)<EOL>gff['<STR_LIT>'].append('<STR_LIT:.>')<EOL>gff['<STR_LIT>'].append('<STR_LIT>' % (annot))<EOL><DEDENT>return gff<EOL>
parse rRNA to gff format