def __init__(self, chrom, start, end, name=None, score=None,<EOL>strand=None, scoreType=int):
<EOL>if chrom is None or start is None or end is None:<EOL><INDENT>raise GenomicIntervalError("<STR_LIT>" +<EOL>"<STR_LIT>")<EOL><DEDENT>self.chrom = chrom.strip()<EOL>try:<EOL><INDENT>self.start = int(start)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise InvalidStartIndexError("<STR_LIT>" + str(start) + "<STR_LIT:'>")<EOL><DEDENT>self.end = int(end)<EOL>self.name = None<EOL>if name is not None:<EOL><INDENT>self.name = name.strip()<EOL><DEDENT>self.score = None<EOL>if score is not None:<EOL><INDENT>self.score = scoreType(score)<EOL><DEDENT>self.strand = None<EOL>if strand is not None:<EOL><INDENT>self.strand = strand.strip()<EOL><DEDENT>if self.strand is not None and self.strand != self.POSITIVE_STRAND andself.strand != self.NEGATIVE_STRAND:<EOL><INDENT>raise GenomicIntervalError("<STR_LIT>" + self.strand +<EOL>"<STR_LIT>" + self.POSITIVE_STRAND +<EOL>"<STR_LIT>" + self.NEGATIVE_STRAND)<EOL><DEDENT>
Constructor for the GenomicInterval. See class docstring for details.