def get_npmi(segregation_data, *location_strings):
    """Calculate the normalized pointwise mutual information (npmi) matrix for a given
    genomic location or locations. Where only one location is given, npmi
    is calculated for that region against itself.  Where two regions
    are given, linkage is calculated for region one against region two.