Gemmi C++ API
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
gemmi::Structure Struct Reference

#include <model.hpp>

Public Types

using child_type = Model
 

Public Member Functions

const SpaceGroupfind_spacegroup () const
 
const std::string & get_info (const std::string &tag) const
 
Modelfirst_model ()
 
const Modelfirst_model () const
 
Modelfind_model (const std::string &model_name)
 
const Modelfind_model (const std::string &model_name) const
 
Modelfind_or_add_model (const std::string &model_name)
 
void remove_model (const std::string &model_name)
 
void renumber_models ()
 
Entityget_entity (const std::string &ent_id)
 
const Entityget_entity (const std::string &ent_id) const
 
Entityget_entity_of (const ConstResidueSpan &sub)
 
const Entityget_entity_of (const ConstResidueSpan &sub) const
 
Assemblyfind_assembly (const std::string &assembly_id)
 
Connectionfind_connection_by_name (const std::string &conn_name)
 
const Connectionfind_connection_by_name (const std::string &conn_name) const
 
Connectionfind_connection_by_cra (const const_CRA &cra1, const const_CRA &cra2, bool ignore_segment=false)
 
Connectionfind_connection (const AtomAddress &a1, const AtomAddress &a2)
 
size_t ncs_given_count () const
 
double get_ncs_multiplier () const
 
bool ncs_not_expanded () const
 
void add_conect_one_way (int serial_a, int serial_b, int order)
 
void add_conect (int serial1, int serial2, int order)
 
void merge_chain_parts (int min_sep=0)
 
void remove_empty_chains ()
 
Structure empty_copy () const
 
std::vector< Model > & children ()
 
const std::vector< Model > & children () const
 
void setup_cell_images ()
 

Static Public Member Functions

static const charwhat ()
 

Public Attributes

std::string name
 
UnitCell cell
 
std::string spacegroup_hm
 
std::vector< Modelmodels
 
std::vector< NcsOpncs
 
std::vector< Entityentities
 
std::vector< Connectionconnections
 
std::vector< CisPepcispeps
 
std::vector< ModResmod_residues
 
std::vector< Helixhelices
 
std::vector< Sheetsheets
 
std::vector< Assemblyassemblies
 
std::map< int, std::vector< int > > conect_map
 
Metadata meta
 
CoorFormat input_format = CoorFormat::Unknown
 
bool has_d_fraction = false
 
char ter_status = '\0'
 in input PDB file: y = TER records were read, e = errors were detected
 
bool has_origx = false
 Store ORIGXn / _database_PDB_matrix.origx*.
 
Transform origx
 
std::map< std::string, std::string > info
 Minimal metadata with keys being mmcif tags: _entry.id, _cell.Z_PDB, ...
 
std::vector< std::pair< std::string, std::string > > shortened_ccd_codes
 Mapping of long (4+) CCD codes (residue names) to PDB-compatible ones.
 
std::vector< std::string > raw_remarks
 original REMARK records stored if the file was read from the PDB format
 
double resolution = 0
 simplistic resolution value from/for REMARK 2
 

Detailed Description

Definition at line 928 of file model.hpp.

Member Typedef Documentation

◆ child_type

Definition at line 1100 of file model.hpp.

Member Function Documentation

◆ what()

static const char * gemmi::Structure::what ( )
inlinestatic

Definition at line 929 of file model.hpp.

◆ find_spacegroup()

const SpaceGroup * gemmi::Structure::find_spacegroup ( ) const
inline

Definition at line 963 of file model.hpp.

◆ get_info()

const std::string & gemmi::Structure::get_info ( const std::string &  tag) const
inline

Definition at line 967 of file model.hpp.

◆ first_model() [1/2]

Model & gemmi::Structure::first_model ( )
inline

Definition at line 973 of file model.hpp.

◆ first_model() [2/2]

const Model & gemmi::Structure::first_model ( ) const
inline

Definition at line 978 of file model.hpp.

◆ find_model() [1/2]

Model * gemmi::Structure::find_model ( const std::string &  model_name)
inline

Definition at line 982 of file model.hpp.

◆ find_model() [2/2]

const Model * gemmi::Structure::find_model ( const std::string &  model_name) const
inline

Definition at line 985 of file model.hpp.

◆ find_or_add_model()

Model & gemmi::Structure::find_or_add_model ( const std::string &  model_name)
inline

Definition at line 988 of file model.hpp.

◆ remove_model()

void gemmi::Structure::remove_model ( const std::string &  model_name)
inline

Definition at line 992 of file model.hpp.

◆ renumber_models()

void gemmi::Structure::renumber_models ( )
inline

Definition at line 996 of file model.hpp.

◆ get_entity() [1/2]

Entity * gemmi::Structure::get_entity ( const std::string &  ent_id)
inline

Definition at line 1001 of file model.hpp.

◆ get_entity() [2/2]

const Entity * gemmi::Structure::get_entity ( const std::string &  ent_id) const
inline

Definition at line 1004 of file model.hpp.

◆ get_entity_of() [1/2]

Entity * gemmi::Structure::get_entity_of ( const ConstResidueSpan sub)
inline

Definition at line 1008 of file model.hpp.

◆ get_entity_of() [2/2]

const Entity * gemmi::Structure::get_entity_of ( const ConstResidueSpan sub) const
inline

Definition at line 1011 of file model.hpp.

◆ find_assembly()

Assembly * gemmi::Structure::find_assembly ( const std::string &  assembly_id)
inline

Definition at line 1015 of file model.hpp.

◆ find_connection_by_name() [1/2]

Connection * gemmi::Structure::find_connection_by_name ( const std::string &  conn_name)
inline

Definition at line 1019 of file model.hpp.

◆ find_connection_by_name() [2/2]

const Connection * gemmi::Structure::find_connection_by_name ( const std::string &  conn_name) const
inline

Definition at line 1022 of file model.hpp.

◆ find_connection_by_cra()

Connection * gemmi::Structure::find_connection_by_cra ( const const_CRA cra1,
const const_CRA cra2,
bool  ignore_segment = false 
)
inline

Definition at line 1026 of file model.hpp.

◆ find_connection()

Connection * gemmi::Structure::find_connection ( const AtomAddress a1,
const AtomAddress a2 
)
inline

Definition at line 1038 of file model.hpp.

◆ ncs_given_count()

size_t gemmi::Structure::ncs_given_count ( ) const
inline

Definition at line 1046 of file model.hpp.

◆ get_ncs_multiplier()

double gemmi::Structure::get_ncs_multiplier ( ) const
inline

Definition at line 1049 of file model.hpp.

◆ ncs_not_expanded()

bool gemmi::Structure::ncs_not_expanded ( ) const
inline

Definition at line 1052 of file model.hpp.

◆ add_conect_one_way()

void gemmi::Structure::add_conect_one_way ( int  serial_a,
int  serial_b,
int  order 
)
inline

Definition at line 1056 of file model.hpp.

◆ add_conect()

void gemmi::Structure::add_conect ( int  serial1,
int  serial2,
int  order 
)
inline

Definition at line 1061 of file model.hpp.

◆ merge_chain_parts()

void gemmi::Structure::merge_chain_parts ( int  min_sep = 0)
inline

Definition at line 1066 of file model.hpp.

◆ remove_empty_chains()

void gemmi::Structure::remove_empty_chains ( )
inline

Definition at line 1071 of file model.hpp.

◆ empty_copy()

Structure gemmi::Structure::empty_copy ( ) const
inline

Definition at line 1077 of file model.hpp.

◆ children() [1/2]

std::vector< Model > & gemmi::Structure::children ( )
inline

Definition at line 1101 of file model.hpp.

◆ children() [2/2]

const std::vector< Model > & gemmi::Structure::children ( ) const
inline

Definition at line 1102 of file model.hpp.

◆ setup_cell_images()

void gemmi::Structure::setup_cell_images ( )
inline

Definition at line 1140 of file model.hpp.

Member Data Documentation

◆ name

std::string gemmi::Structure::name

Definition at line 930 of file model.hpp.

◆ cell

UnitCell gemmi::Structure::cell

Definition at line 931 of file model.hpp.

◆ spacegroup_hm

std::string gemmi::Structure::spacegroup_hm

Definition at line 932 of file model.hpp.

◆ models

std::vector<Model> gemmi::Structure::models

Definition at line 933 of file model.hpp.

◆ ncs

std::vector<NcsOp> gemmi::Structure::ncs

Definition at line 934 of file model.hpp.

◆ entities

std::vector<Entity> gemmi::Structure::entities

Definition at line 935 of file model.hpp.

◆ connections

std::vector<Connection> gemmi::Structure::connections

Definition at line 936 of file model.hpp.

◆ cispeps

std::vector<CisPep> gemmi::Structure::cispeps

Definition at line 937 of file model.hpp.

◆ mod_residues

std::vector<ModRes> gemmi::Structure::mod_residues

Definition at line 938 of file model.hpp.

◆ helices

std::vector<Helix> gemmi::Structure::helices

Definition at line 939 of file model.hpp.

◆ sheets

std::vector<Sheet> gemmi::Structure::sheets

Definition at line 940 of file model.hpp.

◆ assemblies

std::vector<Assembly> gemmi::Structure::assemblies

Definition at line 941 of file model.hpp.

◆ conect_map

std::map<int, std::vector<int> > gemmi::Structure::conect_map

Definition at line 942 of file model.hpp.

◆ meta

Metadata gemmi::Structure::meta

Definition at line 943 of file model.hpp.

◆ input_format

CoorFormat gemmi::Structure::input_format = CoorFormat::Unknown

Definition at line 945 of file model.hpp.

◆ has_d_fraction

bool gemmi::Structure::has_d_fraction = false

Definition at line 946 of file model.hpp.

◆ ter_status

char gemmi::Structure::ter_status = '\0'

in input PDB file: y = TER records were read, e = errors were detected

Definition at line 948 of file model.hpp.

◆ has_origx

bool gemmi::Structure::has_origx = false

Store ORIGXn / _database_PDB_matrix.origx*.

Definition at line 951 of file model.hpp.

◆ origx

Transform gemmi::Structure::origx

Definition at line 952 of file model.hpp.

◆ info

std::map<std::string, std::string> gemmi::Structure::info

Minimal metadata with keys being mmcif tags: _entry.id, _cell.Z_PDB, ...

Definition at line 955 of file model.hpp.

◆ shortened_ccd_codes

std::vector<std::pair<std::string,std::string> > gemmi::Structure::shortened_ccd_codes

Mapping of long (4+) CCD codes (residue names) to PDB-compatible ones.

Definition at line 957 of file model.hpp.

◆ raw_remarks

std::vector<std::string> gemmi::Structure::raw_remarks

original REMARK records stored if the file was read from the PDB format

Definition at line 959 of file model.hpp.

◆ resolution

double gemmi::Structure::resolution = 0

simplistic resolution value from/for REMARK 2

Definition at line 961 of file model.hpp.


The documentation for this struct was generated from the following file: