def TrimSequence(sequence, front_cutoff, end_cutoff):
	"""
	This function takes a sequence and trims the ends off by the specified
	cutoffs.

	Parameters:
	- front_cutoff: the number of positions to trim off at the front
	- end_cutoff: the number of positions to trim off at the end
	- sequence: the sequence to be trimmed
	"""

	return sequence[front_cutoff:-end_cutoff]