def get_presence(freqs):
    """
    Given an array of frequences, return gene presence code

    Parameters
    ----------
    freqs : numpy array of ints
        1D Array of gene frequences.

    Returns
    -------
    str :
        Gene presence code, in the form of a string of 1 (present) and 0 (absent)

    Examples
    --------
    >>> get_presence(np.array([32, 1, 0, 0, 2]))
    '11001'
    """
    freqs[freqs > 1] = 1
    freqs = freqs.astype(str)
    return "".join(freqs)