def isSameLocusFamily(gene1, gene2, scoresO, genesO, paramD, synThresholdD):
    """Given two genes in the same family, determine if they meet the
synteny requirements to be put in the same LocusFamily. Returns
boolean.
    """
    if not scoresO.isEdgePresentByEndNodes(gene1, gene2):
        return False
    coreSynSc = scoresO.getScoreByEndNodes(gene1, gene2, 'coreSynSc')
    synSc = scoresO.getScoreByEndNodes(gene1, gene2, 'synSc')
    strain1 = genesO.numToStrainName(gene1)
    strain2 = genesO.numToStrainName(gene2)
    strainPair = tuple(sorted([strain1, strain2]))
    minSynThreshold = synThresholdD['minSynThreshold'][strainPair]
    minCoreSynThreshold = synThresholdD['minCoreSynThreshold'][strainPair]
    if coreSynSc < minCoreSynThreshold or synSc < minSynThreshold:
        addIt = False
    else:
        addIt = True
    return addIt
