def createMotifsDictionary(filename, padding=100):
    """
    Storing Motif Information into a dictionary: {chrN: [(start1, stop1), (start2, stop2)..]}
    :param filename:  # motifs filename
    :param padding:   # left and right start/stop padding (concerned about peaks 100bp from a known motif)
    :return motifDictionary: # used by motifOverLap to find
    """
    fh = open(filename, "r")
    header = next(fh)  # skip over header
    motifDict = {}
    for line in fh:
        linelist = line.strip().split("\t")
        #print(linelist)
        chr, start, stop = linelist[1], int(linelist[2]), int(linelist[3])
        if chr not in motifDict:
            motifDict[chr] = []
        motifDict[chr].append((start-padding, stop+padding))
    #print(motifDict, "\n\n")
    return motifDict