def total_accessibility(in_rsa, path=True):
    """Parses rsa file for the total surface accessibility data.

    Parameters
    ----------
    in_rsa : str
        Path to naccess rsa file.
    path : bool
        Indicates if in_rsa is a path or a string.

    Returns
    -------
    dssp_residues : 5-tuple(float)
        Total accessibility values for:
        [0] all atoms
        [1] all side-chain atoms
        [2] all main-chain atoms
        [3] all non-polar atoms
        [4] all polar atoms

    """
    if path:
        with open(in_rsa, 'r') as inf:
            rsa = inf.read()
    else:
        rsa = in_rsa[:]
    all_atoms, side_chains, main_chain, non_polar, polar = [
        float(x) for x in rsa.splitlines()[-1].split()[1:]]
    return all_atoms, side_chains, main_chain, non_polar, polar