def getSeqMotifDict(fimoDict):
	"""
	Make a dict between the seq names and list of motifs that occur in it
	Args:
		fimoDict: dict between motif names and the seqs it hits
	Returns:
		a dict between seq names and a list of motif IDs that hit it
	"""
	seqMotifDict = {}
	tmpCount = 0
	for motifId, seqList in fimoDict.items():
		for seqName in seqList:
			if seqName not in seqMotifDict:
				seqMotifDict[seqName] = []
			if motifId not in seqMotifDict[seqName]:
				seqMotifDict[seqName].append(motifId)
				
	
	return seqMotifDict