biotite.structure.info.bond_order

biotite.structure.info.bond_order(res_name, atom_name1, atom_name2)[source]

Get the bond order for two atoms of the same residue, based on the PDB chemical components dictionary.

DEPRECATED: Please use bond_type() instead.

Parameters
res_namestr

The up to 3-letter name of the residue atom_name1 and atom_name2 belong to.

atom_name1, atom_name2str

The names of the two atoms to get the bond order from.

Returns
orderint or None

The order of the bond between atom_name1 and atom_name2. If the atoms form no bond, if any of the two atoms does not exist in the context of the residue or if the residue is unknown to the chemical components dictionary, None is returned.