def countMotHitCmp(motDistr1, motDistr2):
    """Helper function for comparing two motif distributions. Compares based
    on number of central hits."""

    return motDistr2.getNcentralHits() - motDistr1.getNcentralHits()