#include <pdb.h>
Phantom description using atoms.
Definition at line 250 of file pdb.h.
◆ addAtom()
void PDBRichPhantom::addAtom |
( |
const RichAtom & |
atom | ) |
|
|
inline |
Add Atom.
Definition at line 264 of file pdb.h.
std::vector< RichAtom > atomList
List of atoms.
◆ getNumberOfAtoms()
size_t PDBRichPhantom::getNumberOfAtoms |
( |
| ) |
const |
|
inline |
Get number of atoms.
Definition at line 270 of file pdb.h.
std::vector< RichAtom > atomList
List of atoms.
◆ read()
void PDBRichPhantom::read |
( |
const FileName & |
fnPDB, |
|
|
const bool |
pseudoatoms = false , |
|
|
const double |
threshold = 0.0 |
|
) |
| |
Read rich phantom from either a PDB of CIF file.
This function reads the given PDB or CIF file and stores the found atoms, remarks, and intensities.
- Parameters
-
fnPDB | PDB/CIF file. |
pseudoatoms | Flag for returning intensities (stored in B-factors) instead of atoms. false (default) is used when there are no pseudoatoms or when using a threshold. |
threshold | B factor threshold for filtering out for pdb_reduce_pseudoatoms. |
Definition at line 704 of file pdb.cpp.
std::vector< double > intensities
void readRichCIF(const std::string &fnCIF, const callable &addAtom, std::vector< double > &intensities, const bool pseudoatoms, const double threshold, cif::datablock &dataBlock)
Read rich phantom from CIF.
void threshold(double *phi, unsigned long nvox, double limit)
std::vector< std::string > remarks
List of remarks.
bool checkExtension(const std::filesystem::path &filePath, const std::list< std::string > &acceptedExtensions, const std::list< std::string > &acceptedCompressions)
Checks if the file uses a supported extension type.
void readRichPDB(const FileName &fnPDB, const callable &addAtom, std::vector< double > &intensities, std::vector< std::string > &remarks, const bool pseudoatoms, const double threshold)
Read rich phantom from either a PDB of CIF file.
void addAtom(const RichAtom &atom)
Add Atom.
◆ write()
void PDBRichPhantom::write |
( |
const FileName & |
fnPDB, |
|
|
const bool |
renumber = false |
|
) |
| |
Write rich phantom to PDB or CIF file.
This function stores all the data of the rich phantom into a PDB or CIF file. Note: Conversion is not enabled yet, so if a file read from a PDB is written into a CIF file, results might not be great. Atoms should be properly translated, but remarks and intensities probably not.
- Parameters
-
fnPDB | PDB/CIF file to write to. |
renumber | Flag for determining if atom's serial numbers must be renumbered or not. |
Definition at line 872 of file pdb.cpp.
void writeCIF(const std::string &fnCIF, const callable &atomList, cif::datablock &dataBlock)
Write rich phantom to CIF file.
std::vector< RichAtom > atomList
List of atoms.
std::vector< std::string > remarks
List of remarks.
bool checkExtension(const std::filesystem::path &filePath, const std::list< std::string > &acceptedExtensions, const std::list< std::string > &acceptedCompressions)
Checks if the file uses a supported extension type.
void writePDB(const FileName &fnPDB, bool renumber, const std::vector< std::string > &remarks, const callable &atomList)
Write rich phantom to PDB file.
◆ atomList
std::vector<RichAtom> PDBRichPhantom::atomList |
List of atoms.
Definition at line 257 of file pdb.h.
◆ dataBlock
cif::datablock PDBRichPhantom::dataBlock |
◆ intensities
std::vector<double> PDBRichPhantom::intensities |
◆ remarks
std::vector<std::string> PDBRichPhantom::remarks |
List of remarks.
Definition at line 254 of file pdb.h.
The documentation for this class was generated from the following files: