34 addUsageLine(
"Deform a PDB according to a list of NMA modes");
35 addUsageLine(
"+It is assumed that there is a deformation value per mode, and that the number of vectors in the mode is the same as the number of atoms in the PDB");
37 addParamsLine(
"--nma <metadata_file> : List of modes, the metadata must use the label NMAModefile");
38 addParamsLine(
"--deformations <...> : Deformation amplitudes in each direction");
40 addExampleLine(
"xmipp_pdb_nma_deform --pdb 2tbv.pdb -o 2tbv_deformed.pdb --nma modelist.xmd --deformations 15");
60 <<
"PDB: " <<
fn_pdb << std::endl
61 <<
"NMA list: " <<
fn_nma << std::endl
62 <<
"Output: " <<
fn_out << std::endl
67 std::cout << std::endl;
82 for (
size_t objId : modes.
ids())
87 fhMode.open(fnMode.c_str());
void read(const FileName &fnPDB, const bool pseudoatoms=false, const double threshold=0.0)
Read rich phantom from either a PDB of CIF file.
#define REPORT_ERROR(nerr, ErrormMsg)
void write(const FileName &fnPDB, const bool renumber=false)
Write rich phantom to PDB or CIF file.
void resizeNoCopy(const MultidimArray< T1 > &v)
#define DIRECT_A2D_ELEM(v, i, j)
void getListParam(const char *param, StringVector &list)
std::vector< String > StringVector
const char * getParam(const char *param, int arg=0)
float textToFloat(const char *str)
void addExampleLine(const char *example, bool verbatim=true)
Couldn't read from file.
int verbose
Verbosity level.
std::vector< RichAtom > atomList
List of atoms.
#define FOR_ALL_ELEMENTS_IN_ARRAY1D(v)
size_t getNumberOfAtoms() const
Get number of atoms.
void addUsageLine(const char *line, bool verbatim=false)
void addParamsLine(const String &line)