77 const std::string &intensityColumn);
86 const std::string &intensityColumn=
"occupancy");
93 std::vector<double>
x;
94 std::vector<double>
y;
95 std::vector<double>
z;
96 std::vector<double>
b;
139 atomList.push_back(atom);
151 return atomList.size();
164 void shift(
double x,
double y,
double z);
170 void produceSideInfo();
266 atomList.push_back(atom);
272 return atomList.size();
297 void write(
const FileName &fnPDB,
const bool renumber =
false);
359 void setup(
int m,
double hights,
bool computeProjection=
false);
362 void addAtom(
const std::string &atomType,
bool computeProjection=
false);
408 "AtomInterpolator::getAtomIndex: Atom "+atom+
" unknown");
416 return radii[getAtomIndex(atom)];
421 double volumeAtDistance(
char atom,
double r)
const;
425 double projectionAtDistance(
char atom,
double r)
const;
432 int Ydim,
int Xdim,
double rot,
double tilt,
double psi);
443 hy36encode(
unsigned width,
int value,
char* result);
446 hy36decode(
unsigned width,
const char* s,
unsigned s_size,
int* result);
452 hy36decodeSafe(
unsigned width,
const char* s,
unsigned s_size,
int* result);
void atomProjectionRadialProfile(int M, const Matrix1D< double > &profileCoefficients, Matrix1D< double > &projectionProfile)
double electronFormFactorRealSpace(double r, const Matrix1D< double > &descriptors)
void applyGeometryToPDBFile(const std::string &fn_in, const std::string &fn_out, const Matrix2D< double > &A, bool centerPDB=true, const std::string &intensityColumn="occupancy")
std::vector< MultidimArray< double > > projectionProfileCoefficients
void projectPDB(const PDBPhantom &phantomPDB, const AtomInterpolator &interpolator, Projection &proj, int Ydim, int Xdim, double rot, double tilt, double psi)
std::string segment
segment name
void atomRadialProfile(int M, double T, const std::string &atom, Matrix1D< double > &profile)
void write(std::ostream &os, const datablock &db)
#define REPORT_ERROR(nerr, ErrormMsg)
std::string charge
2-char charge with sign 2nd (e.g. 1- or 2+)
std::string record
Record Type ("ATOM " or "HETATM")
std::vector< double > intensities
int serial
atom serial number
std::vector< std::string > chain
void addAtom(const Atom &atom)
Add Atom.
std::string resname
Residue name.
std::string atomType
atom element type
int atomCharge(const std::string &atom)
void centerOfMass(Matrix1D< double > ¢er, void *mask=NULL, size_t n=0)
void threshold(double *phi, unsigned long nvox, double limit)
const char * hy36encode(unsigned width, int value, char *result)
int resseq
Residue sequence.
const Atom & getAtom(int i) const
Get Atom at position i.
size_t getNumberOfAtoms() const
Get number of atoms.
void distanceHistogramPDB(const PDBPhantom &phantomPDB, size_t Nnearest, double maxDistance, int Nbins, Histogram1D &hist)
double occupancy
Occupancy.
void computePDBgeometry(const std::string &fnPDB, Matrix1D< double > ¢erOfMass, Matrix1D< double > &limit0, Matrix1D< double > &limitF, const std::string &intensityColumn)
const char * hy36decode(unsigned width, const char *s, unsigned s_size, int *result)
std::vector< MultidimArray< double > > volumeProfileCoefficients
int getAtomIndex(char atom) const
Get atom index.
double electronFormFactorFourier(double f, const Matrix1D< double > &descriptors)
void atomDescriptors(const std::string &atom, Matrix1D< double > &descriptors)
std::vector< int > residue
std::vector< RichAtom > atomList
List of atoms.
double atomRadius(const std::string &atom)
std::vector< std::string > remarks
List of remarks.
size_t getNumberOfAtoms() const
Get number of atoms.
double psi(const double x)
std::vector< Atom > atomList
List of atoms.
void analyzePDBAtoms(const FileName &fn_pdb, const std::string &typeOfAtom, int &numberOfAtoms, pdbInfo &at_pos)
void hy36encodeSafe(unsigned width, int value, char *result)
double atomRadius(char atom) const
std::vector< double > radii
std::vector< double > atomCovRad
double atomCovalentRadius(const std::string &atom)
void addAtom(const RichAtom &atom)
Add Atom.
file read(std::istream &is)
Incorrect value received.
void hy36decodeSafe(unsigned width, const char *s, unsigned s_size, int *result)
std::string altloc
Alternate location.