def _read_precursor(precursor, sps):
hairpin = defaultdict(str)<EOL>name = None<EOL>with open(precursor) as in_handle:<EOL><INDENT>for line in in_handle:<EOL><INDENT>if line.startswith("<STR_LIT:>>"):<EOL><INDENT>if hairpin[name]:<EOL><INDENT>hairpin[name] = hairpin[name] + "<STR_LIT>"<EOL><DEDENT>name = line.strip().replace("<STR_LIT:>>", "<STR_LIT:U+0020>").split()[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>hairpin[name] += line.strip()<EOL><DEDENT><DEDENT>hairpin[name] = hairpin[name] + "<STR_LIT>"<EOL><DEDENT>return hairpin<EOL>
Load precursor file for that species