miniworld.utils.data_refactoring.mmcif_line_parser

miniworld.utils.data_refactoring.mmcif_line_parser(line, loop_=None)[source]

Parses a single line from an mmCIF file.:

Input : mmcif line Output : dictionary or list loop_ : Optional, Example) [_atom_site.group_PDB, _atom_site.id, …] Example : ATOM line -> ATOM 1 N N . MET A 1 1 ? 11.242 1.210 20.525 1.00 4.07 ? 1 MET A N 1 Chem line -> ALA ‘L-peptide linking’ y ALANINE ? ‘C3 H7 N O2’ 89.093 These lines are separated by space but there is ‘something something’ (‘L-peptide linking’) with space in some lines. So I use alternative split function.