src/proteingnn/data.py
def sort_atom_ids(atom_ids: Iterable[AtomIDType]) -> List[AtomIDType]:
    """Sort AtomIDs by (residue id, atom number)"""

    def atom_id2int(atom_id):
        return atom_id.rsd(), atom_id.atomno()

    return sorted(atom_ids, key=atom_id2int)
Sort AtomIDs by (residue id, atom number)
Sort AtomIDs by (residue id, atom number)
Sort AtomIDs by ( residue id atom number )
def sort_atom_ids(atom_ids: Iterable[AtomIDType]) -> List[AtomIDType]:
    def atom_id2int(atom_id):
        return atom_id.rsd(), atom_id.atomno()
    return sorted(atom_ids, key=atom_id2int)
def sort_atom_ids ( atom_ids : Iterable [ AtomIDType ] ) -> List [ AtomIDType ] : def atom_id2int ( atom_id ) : return atom_id . rsd ( ) , atom_id . atomno ( ) return sorted ( atom_ids , key = atom_id2int )
Sort AtomIDs by (residue id, atom number)
Sort AtomIDs by ( residue id atom number )
"""Sort AtomIDs by (residue id, atom number)"""
atom_ids
Iterable[AtomIDType]