Xmipp  v3.23.11-Nereus
Functions | Variables
cif::mm Namespace Reference

Functions

std::ostream & operator<< (std::ostream &os, const atom &atom)
 
std::ostream & operator<< (std::ostream &os, const residue &res)
 
void reconstruct_pdbx (datablock &db)
 

Variables

const std::map< std::string, std::vector< std::string > > kChiAtomsMap
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& cif::mm::operator<< ( std::ostream &  os,
const atom &  atom 
)

Definition at line 291 of file model.cpp.

292 {
293  os << atom.get_label_comp_id() << ' ' << atom.get_label_asym_id() << ':' << atom.get_label_seq_id() << ' ' << atom.get_label_atom_id();
294 
295  if (atom.is_alternate())
296  os << '(' << atom.get_label_alt_id() << ')';
297  if (atom.get_auth_asym_id() != atom.get_label_asym_id() or atom.get_auth_seq_id() != std::to_string(atom.get_label_seq_id()) or atom.get_pdb_ins_code().empty() == false)
298  os << " [" << atom.get_auth_asym_id() << ':' << atom.get_auth_seq_id() << atom.get_pdb_ins_code() << ']';
299 
300  return os;
301 }
std::string to_string(bond_type bondType)
Definition: compound.cpp:43

◆ operator<<() [2/2]

std::ostream& cif::mm::operator<< ( std::ostream &  os,
const residue &  res 
)

Definition at line 559 of file model.cpp.

560 {
561  os << res.get_compound_id() << ' ' << res.get_asym_id() << ':' << res.get_seq_id();
562 
563  if (res.get_auth_asym_id() != res.get_asym_id() or res.get_auth_seq_id() != std::to_string(res.get_seq_id()))
564  os << " [" << res.get_auth_asym_id() << ':' << res.get_auth_seq_id() << ']';
565 
566  return os;
567 }
std::string to_string(bond_type bondType)
Definition: compound.cpp:43

◆ reconstruct_pdbx()

void cif::mm::reconstruct_pdbx ( datablock &  db)

Definition at line 2782 of file model.cpp.

2783 {
2784  if (db.get("atom_site") == nullptr)
2785  throw std::runtime_error("Cannot reconstruct PDBx file, atom data missing");
2786 
2787 
2788 }

Variable Documentation

◆ kChiAtomsMap

const std::map<std::string, std::vector<std::string> > cif::mm::kChiAtomsMap
Initial value:
= {
{"ASP", {"CG", "OD1"}},
{"ASN", {"CG", "OD1"}},
{"ARG", {"CG", "CD", "NE", "CZ"}},
{"HIS", {"CG", "ND1"}},
{"GLN", {"CG", "CD", "OE1"}},
{"GLU", {"CG", "CD", "OE1"}},
{"SER", {"OG"}},
{"THR", {"OG1"}},
{"LYS", {"CG", "CD", "CE", "NZ"}},
{"TYR", {"CG", "CD1"}},
{"PHE", {"CG", "CD1"}},
{"LEU", {"CG", "CD1"}},
{"TRP", {"CG", "CD1"}},
{"CYS", {"SG"}},
{"ILE", {"CG1", "CD1"}},
{"MET", {"CG", "SD", "CE"}},
{"MSE", {"CG", "SE", "CE"}},
{"PRO", {"CG", "CD"}},
{"VAL", {"CG1"}}}

Definition at line 756 of file model.cpp.