def getResidInfo(resid, nodes, resExcludes=[]):
    """
    Get the node information for specified protein residue index.

    Parameters
    ----------
    resid : int
        protein residue number
    nodes : pandas dataframe
        Dataframe in which to translate protein index to node index (indices).
    resExcludes: list
        List containing strings for residues to ignore. E.g., ['WAT']

    Returns
    -------
    pandas dataframe

    """
    nodes_id = nodes.loc[nodes['resid'] == resid]
    nodes_id = nodes_id[~nodes_id.resname.isin(resExcludes)]

    return nodes_id