Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
GlyCB.c File Reference

Add C-beta atoms to glycines as pseudo-atoms for use in orientating residues. More...

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "MathType.h"
#include "SysDefs.h"
#include "pdb.h"
#include "macros.h"

Go to the source code of this file.

Macros

#define BONDLEN   1.524
 
#define ALPHA   54.7
 

Functions

BOOL blAddCBtoGly (PDB *pdb)
 
BOOL blAddCBtoAllGly (PDB *pdb)
 
PDBblStripGlyCB (PDB *pdb)
 

Detailed Description

Add C-beta atoms to glycines as pseudo-atoms for use in orientating residues.

Version
V1.1
Date
07.07.14
Author
Dr. Andrew C. R. Martin
Institute of Structural & Molecular Biology, University College London, Gower Street, London. WC1E 6BT.
andre.nosp@m.w@bi.nosp@m.oinf..nosp@m.org..nosp@m.uk andre.nosp@m.w.ma.nosp@m.rtin@.nosp@m.ucl..nosp@m.ac.uk

This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.

The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.

The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.

Description:

Based on the code from HAddPDB.c adds a C-beta to one or all glycine residues.

Usage:

Revision History:

Definition in file GlyCB.c.

Macro Definition Documentation

#define ALPHA   54.7

Definition at line 88 of file GlyCB.c.

#define BONDLEN   1.524

Definition at line 87 of file GlyCB.c.

Function Documentation

BOOL blAddCBtoAllGly ( PDB pdb)
Parameters
[in,out]*pdbThe PDB linked list
Returns
Success?

Adds a CB atom to all glycines in a PDB linked list. This is used when one needs to orientate a residue in a common frame of reference which makes use of the CB.

  • 04.01.06 Original By: ACRM
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 239 of file GlyCB.c.

BOOL blAddCBtoGly ( PDB pdb)
Parameters
[in,out]*pdbThe PDB linked list for a Glycine
Returns
Success?

Adds a CB atom to a glycine. This is used when one needs to orientate a residue in a common frame of reference which makes use of the CB.

  • 04.01.06 Original By: ACRM
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 112 of file GlyCB.c.

PDB* blStripGlyCB ( PDB pdb)
Parameters
[in,out]*pdbThe PDB linked list
Returns
The modified linked list

Removes all Glycine CB pseudo-atoms added by AddGlyCB() The linked list is modified in-place, but the return value should be used in case the very first item in the linked list is a Gly-CB which will be removed by the code.

  • 04.01.06 Original By: ACRM
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 271 of file GlyCB.c.