9 #ifndef IMPATOM_MMCIF_H
10 #define IMPATOM_MMCIF_H
12 #include <IMP/atom/atom_config.h>
16 IMPATOM_BEGIN_NAMESPACE
20 PDBSelector *selector = get_default_pdb_selector()
22 ,
bool noradii =
false
27 IMPATOMEXPORT Hierarchy
read_mmcif(TextInput input, Model *model,
28 PDBSelector *selector = get_default_pdb_selector(),
29 bool select_first_model =
true
31 ,
bool noradii =
false
38 PDBSelector *selector = get_default_pdb_selector()
40 ,
bool noradii =
false
45 IMPATOMEXPORT Hierarchy
read_bcif(TextInput input, Model *model,
46 PDBSelector *selector = get_default_pdb_selector(),
47 bool select_first_model =
true
49 ,
bool noradii =
false
63 bool select_first_model =
true
65 ,
bool noradii =
false
68 std::string filename = input.get_name();
69 if (filename.find(
".cif") == filename.size() - 4) {
70 return read_mmcif(input, model, selector, select_first_model, noradii);
71 }
else if (filename.find(
".bcif") == filename.size() - 5) {
72 return read_bcif(input, model, selector, select_first_model, noradii);
74 return read_pdb(input, model, selector, select_first_model, noradii);
89 ,
bool noradii =
false
92 std::string filename = input.get_name();
93 if (filename.find(
".cif") == filename.size() - 4) {
95 }
else if (filename.find(
".bcif") == filename.size() - 5) {
103 IMPATOM_DEPRECATED_FUNCTION_DECL(2.23)
105 PDBSelector *selector = get_default_pdb_selector(),
106 bool select_first_model = true
107 ,
bool noradii = false
109 IMPATOM_DEPRECATED_FUNCTION_DEF(2.23,
"Use read_pdb_any() instead");
110 std::string filename = input.get_name();
111 if (filename.find(
".cif") == filename.size() - 4) {
112 return read_mmcif(input, model, selector, select_first_model, noradii);
114 return read_pdb(input, model, selector, select_first_model, noradii);
118 IMPATOM_DEPRECATED_FUNCTION_DECL(2.23)
119 inline Hierarchies read_multimodel_pdb_or_mmcif(TextInput input, Model *model,
120 PDBSelector *selector = get_default_pdb_selector()
121 ,
bool noradii = false
123 IMPATOM_DEPRECATED_FUNCTION_DEF(
124 2.23,
"Use read_multimodel_pdb_any() instead");
125 std::string filename = input.get_name();
126 if (filename.find(
".cif") == filename.size() - 4) {
134 IMPATOM_END_NAMESPACE
Hierarchy read_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the mmCIF file.
Hierarchies read_multimodel_pdb_any(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the PDB-like file.
Hierarchies read_multimodel_bcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the BinaryCIF file.
Hierarchy read_bcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the BinaryCIF file.
Class for storing model, its restraints, constraints, and particles.
Hierarchies read_multimodel_mmcif(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Read all models from the mmCIF file.
Decorator for helping deal with a hierarchy of molecules.
Hierarchy read_pdb_any(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB-like file.
The standard decorator for manipulating molecular structures.
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
Hierarchies read_multimodel_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector())
Select which atoms to read from a PDB file.