def score_overlap(sig,test):
    """
    Scores the overlap between the gene signature and the test signature

    Parameters:
    -----------
    sig: set
     Gene signature
    test: set
     Test signature
    """

    num = len(sig & test)
    den = float(len(sig))
    return num / den