ElfPSP_ParallelABC
Protein Structure Prediction using Parallel Artificial Bee Colony Optimization
Functions
movchain.h File Reference

Routines for managing chains of MovElem units. More...

#include <stdio.h>
#include "movelem.h"
#include "int3d.h"

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...
 
MovElemMovChain_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...
 

Detailed Description

Routines for managing chains of MovElem units.

Function Documentation

◆ MovChain_build_3d()

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.

◆ MovChain_create()

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

◆ MovChain_set_element()

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.