def readInfo(dfile): """Read information on *one* entry in a data file. Returns a tuple of * The ID * Eukaryote/Prokaryote * The list of ranges * The sequence-assembly """ return "Not yet implemented" def processEntry(entry): """Process one entry of the form given by readInfo. Returns: A list of subsequences given by the ranges and the sequence. """ result = [] seq = entry[3] for r in entry[2]: result.append(seq[r[0]:r[1]]) return result