def _classify(srna_type, attr, samples):
    """
    Parse the line and return one
    line for each category and sample.
    """
    lines = []
    counts = dict(zip(samples, attr['Expression'].split(',')))
    for s in counts:
        if int(counts[s]) > 0:
            lines.append([srna_type, s, counts[s]])
        if attr['Variant'].find('iso') == -1:
            continue
        for v in attr['Variant'].split(','):
            if int(counts[s]) > 0:
                lines.append([v.split(':')[0], s, counts[s]])
    return lines
