ElfPSP_ParallelABC
Protein Structure Prediction using Parallel Artificial Bee Colony Optimization
|
Routines for managing chains of MovElem units. More...
Go to the source code of this file.
Functions | |
void | MovChain_set_element (MovElem *chain, int eleIdx, unsigned char bb, unsigned char sc) |
Changes the given 'chain' in position 'eleIdx'. More... | |
MovElem * | MovChain_create (int size) |
Creates a chain of movements with 'size' bytes. More... | |
void | MovChain_build_3d (const MovElem *chain, int chainSize, int3d **coordsBB_p, int3d **coordsSC_p) |
Takes a chain of movements and returns the spatial position of BB and SC beads over the 3D space. More... | |
Routines for managing chains of MovElem units.
void MovChain_build_3d | ( | const MovElem * | chain, |
int | chainSize, | ||
int3d ** | coordsBB_p, | ||
int3d ** | coordsSC_p | ||
) |
Takes a chain of movements and returns the spatial position of BB and SC beads over the 3D space.
'coordsBB_p' and 'coordsSC_p' are pointers to where we should store, respectively, the coordinates for the backbone beads and the side chain beads.
MovElem* MovChain_create | ( | int | size | ) |
Creates a chain of movements with 'size' bytes.
Each byte carries 4 bits (MSB) representing backbone movement, and 4 bits (LSB) for sidechain movement. Everything is initialized to FRONT-right
void MovChain_set_element | ( | MovElem * | chain, |
int | eleIdx, | ||
unsigned char | bb, | ||
unsigned char | sc | ||
) |
Changes the given 'chain' in position 'eleIdx'.
The element in that position becomes set with movement 'bb' for the backbone and 'sc' for the side chain.