def _add_residues_freesasa_config_file(self, new_residues, new_filename, atom_params, orig_filename):
    '\n        Create a new freesasa config file that adds specified residue to the\n        content of an existing copy.\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        new_filename: str\n            Filename to be used for the updated freesasa config file.\n        atom_params: dict\n            Radius and polarity information for each atom type.\n        orig_filename: str\n            Filename for the original freesasa config file.\n\n        '
    (new_atom_types, new_residues) = self._create_freesasa_section_text(new_residues, atom_params)
    with open(new_filename, 'w') as out_file, open(orig_filename) as input_config:
        [out_file.write(((l + new_atom_types) if l.startswith('# extra') else l)) for l in input_config]
        out_file.write(new_residues)
Create a new freesasa config file that adds specified residue to the
content of an existing copy.

Parameters
----------
new_residues : dict
    Non-standard residues to add to the freesasa config file.
    keys = residue names, values = atom name to type mapping (dict).
new_filename: str
    Filename to be used for the updated freesasa config file.
atom_params: dict
    Radius and polarity information for each atom type.
orig_filename: str
    Filename for the original freesasa config file.
def _add_residues_freesasa_config_file(self, new_residues, new_filename, atom_params, orig_filename):
    '\n        Create a new freesasa config file that adds specified residue to the\n        content of an existing copy.\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        new_filename: str\n            Filename to be used for the updated freesasa config file.\n        atom_params: dict\n            Radius and polarity information for each atom type.\n        orig_filename: str\n            Filename for the original freesasa config file.\n\n        '
    (new_atom_types, new_residues) = self._create_freesasa_section_text(new_residues, atom_params)
    with open(new_filename, 'w') as out_file, open(orig_filename) as input_config:
        [out_file.write(((l + new_atom_types) if l.startswith('# extra') else l)) for l in input_config]
        out_file.write(new_residues)