def truncate(self, size):
if size > len(self):<EOL><INDENT>raise NGSReadError("<STR_LIT>" + str(size) +<EOL>"<STR_LIT>" + str(len(self)) +<EOL>"<STR_LIT>")<EOL><DEDENT>if size < <NUM_LIT:0>:<EOL><INDENT>raise NGSReadError("<STR_LIT>")<EOL><DEDENT>self.trimRight(len(self) - size)<EOL>
truncate this fastqSequence in-place so it is only <size> nucleotides
long

:param size: the number of nucleotides to truncate to.