rnaglib.utils.cif_remove_residues

rnaglib.utils.cif_remove_residues(cif_path, keep_residues, out_path, file_type='cif')[source]

Remove all residues from a cif file except for those in keep_residues list.

Save the new cif to out_path. :type cif_path: str | PathLike :param cif_path: path to input cif :type keep_residues: list | None :param keep_residues: list of residue IDs in format (chain_id, position) to keep. :type out_path: str | PathLike :param out_path: path to write new cif file