def parseWigString(line, scoreType=int):
parts = line.split("<STR_LIT:\t>")<EOL>if (len(parts) < <NUM_LIT:4>):<EOL><INDENT>raise GenomicIntervalError("<STR_LIT>" + line +<EOL>"<STR_LIT>")<EOL><DEDENT>return GenomicInterval(parts[<NUM_LIT:0>].strip(), int(parts[<NUM_LIT:1>]), int(parts[<NUM_LIT:2>]), None,<EOL>scoreType(parts[<NUM_LIT:3>]))<EOL>
Parse a string in simple Wig format and return a GenomicInterval.

:param line: the string to be parsed
:param scoreType: treat the score field as having this type.
:return: GenomicInterval object representing this wig line; the name of the
         interval will be set to 'X', and it's strand to the default.