def revComp(seq1):
	"""
	Takes a string with valid DNA bases (including degenerate bases) 
	and returns the reverse complement.
	
	Input
	seq1 = string of valid DNA bases
	
	Output
	seqString = string of valid DNA bases
	"""
	seq1 = seq1.lower()
	seqNew = []
	baseDict = {'g':'c',
			 'c':'g',
			 'a':'t',
			 't':'a',
			 'n':'n',
			 'y':'r',
			 'r':'y',
			 'w':'w',
			 's':'s',
			 'k':'m',
			 'm':'k',
			 'd':'h',
			 'v':'b',
			 'h':'d',
			 'b':'v',
			 'x':'x'}
	for each in seq1:
		seqNew.append(baseDict[each])
	seqNew.reverse()
	seqString = "".join(seqNew)
	seqString = seqString.upper()
	return(seqString)