def METHOD_NAME(self, line):
    """Build RoiRecord from ROI line."""
    vals = line.split()
    region_length = int(vals[4])
    data = vals[7:-1]
    points = [int(x) for x in vals[-1].split(',')]
    return RoiRecord(vals[0], int(vals[1]) - 1, int(vals[2]), vals[3],
                     region_length, vals[5], int(vals[6]), data, points,
                     self.data_keys)