@staticmethod
def _create_freesasa_section_text(new_residues, sasa_atom_params):
    '\n        Create text to add to freesasa configuration file to incorporate new residue.\n\n        Parameters\n        ----------\n        new_residues : dict\n            Non-standard residues to add to the freesasa config file.\n            keys = residue names, values = atom name to type mapping (dict).\n        sasa_atom_params: dict\n            Maps atom type to properties needed by freesasa (radius and polarity).\n\n        Returns\n        -------\n        atom_type_section : str\n            Text to be added to freesasa config file atom type section.\n        residue_section : str\n            Text to be added to freesasa config file residue section.\n\n        '
    atom_types = []
    residue_section = ''
    for (res_name, atom_to_type) in new_residues.items():
        residue_section += '\n'
        for (atom_name, atom_type) in atom_to_type.items():
            residue_line = '{:s} {:s} {:s}\n'.format(res_name, atom_name, atom_type)
            atom_types.append(atom_type)
            residue_section += residue_line
    atom_type_section = ''
    for atom_type in set(atom_types):
        if (atom_type in sasa_atom_params):
            atom_line = '{:s} {:.2f} {:s}\n'.format(atom_type, sasa_atom_params[atom_type]['radius'], sasa_atom_params[atom_type]['polarity'])
        else:
            raise Exception('This atom type was not found to have preset radius and polarity')
        atom_type_section += atom_line
    return (atom_type_section, residue_section)
Create text to add to freesasa configuration file to incorporate new residue.

Parameters
----------
new_residues : dict
    Non-standard residues to add to the freesasa config file.
    keys = residue names, values = atom name to type mapping (dict).
sasa_atom_params: dict
    Maps atom type to properties needed by freesasa (radius and polarity).

Returns
-------
atom_type_section : str
    Text to be added to freesasa config file atom type section.
residue_section : str
    Text to be added to freesasa config file residue section.
@staticmethod
def _create_freesasa_section_text(new_residues, sasa_atom_params):
    '\n        Create text to add to freesasa configuration file to incorporate new residue.\n\n        Parameters\n        ----------\n        new_residues : dict\n            Non-standard residues to add to the freesasa config file.\n            keys = residue names, values = atom name to type mapping (dict).\n        sasa_atom_params: dict\n            Maps atom type to properties needed by freesasa (radius and polarity).\n\n        Returns\n        -------\n        atom_type_section : str\n            Text to be added to freesasa config file atom type section.\n        residue_section : str\n            Text to be added to freesasa config file residue section.\n\n        '
    atom_types = []
    residue_section = 
    for (res_name, atom_to_type) in new_residues.items():
        residue_section += '\n'
        for (atom_name, atom_type) in atom_to_type.items():
            residue_line = '{:s} {:s} {:s}\n'.format(res_name, atom_name, atom_type)
            atom_types.append(atom_type)
            residue_section += residue_line
    atom_type_section = 
    for atom_type in set(atom_types):
        if (atom_type in sasa_atom_params):
            atom_line = '{:s} {:.2f} {:s}\n'.format(atom_type, sasa_atom_params[atom_type]['radius'], sasa_atom_params[atom_type]['polarity'])
        else:
            raise Exception('This atom type was not found to have preset radius and polarity')
        atom_type_section += atom_line
    return (atom_type_section, residue_section)