def read(handle):
    'Get output from primersearch into a PrimerSearchOutputRecord.'
    record = OutputRecord()
    for line in handle:
        if (not line.strip()):
            continue
        elif line.startswith('Primer name'):
            name = line.split()[(- 1)]
            record.amplifiers[name] = []
        elif line.startswith('Amplimer'):
            amplifier = Amplifier()
            record.amplifiers[name].append(amplifier)
        elif line.startswith('\tSequence: '):
            amplifier.hit_info = line.replace('\tSequence: ', '')
        elif line.startswith('\tAmplimer length: '):
            length = line.split()[(- 2)]
            amplifier.length = int(length)
        else:
            amplifier.hit_info += line
    for name in record.amplifiers:
        for amplifier in record.amplifiers[name]:
            amplifier.hit_info = amplifier.hit_info.rstrip()
    return record
Get output from primersearch into a PrimerSearchOutputRecord.
def read(handle):
    
    record = OutputRecord()
    for line in handle:
        if (not line.strip()):
            continue
        elif line.startswith('Primer name'):
            name = line.split()[(- 1)]
            record.amplifiers[name] = []
        elif line.startswith('Amplimer'):
            amplifier = Amplifier()
            record.amplifiers[name].append(amplifier)
        elif line.startswith('\tSequence: '):
            amplifier.hit_info = line.replace('\tSequence: ', )
        elif line.startswith('\tAmplimer length: '):
            length = line.split()[(- 2)]
            amplifier.length = int(length)
        else:
            amplifier.hit_info += line
    for name in record.amplifiers:
        for amplifier in record.amplifiers[name]:
            amplifier.hit_info = amplifier.hit_info.rstrip()
    return record