The outage for Sunday 24th November has been cancelled.
Bioplib
Protein Structure C Library
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Pages
src
SetResnam.c
Go to the documentation of this file.
1
/************************************************************************/
2
/**
3
4
\file SetResnam.c
5
6
\version V1.3
7
\date 07.07.14
8
\brief
9
10
\copyright (c) UCL / Dr. Andrew C. R. Martin, University of Reading,
11
2002-2014
12
\author Dr. Andrew C. R. Martin
13
\par
14
Institute of Structural & Molecular Biology,
15
University College London,
16
Gower Street,
17
London.
18
WC1E 6BT.
19
\par
20
andrew@bioinf.org.uk
21
andrew.martin@ucl.ac.uk
22
23
**************************************************************************
24
25
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied
26
according to the conditions laid out in the accompanying file
27
COPYING.DOC.
28
29
The code may be modified as required, but any modifications must be
30
documented so that the person responsible can be identified.
31
32
The code may not be sold commercially or included as part of a
33
commercial product except as described in the file COPYING.DOC.
34
35
**************************************************************************
36
37
Description:
38
============
39
40
41
**************************************************************************
42
43
Usage:
44
======
45
46
**************************************************************************
47
48
Revision History:
49
=================
50
- V1.1 01.03.94
51
- V1.2 27.02.98 Removed unreachable break from switch()
52
- V1.3 07.07.14 Use bl prefix for functions By: CTP
53
54
*************************************************************************/
55
/* Doxygen
56
-------
57
#GROUP Handling PDB Data
58
#SUBGROUP Manipulating the PDB linked list
59
#FUNCTION blSetResnam()
60
Change the residue name, number, insert and chain for an amino acid.
61
*/
62
/************************************************************************/
63
/* Includes
64
*/
65
#include <stdlib.h>
66
67
#include "
pdb.h
"
68
#include "
macros.h
"
69
70
/************************************************************************/
71
/* Defines and macros
72
*/
73
74
/************************************************************************/
75
/* Globals
76
*/
77
78
/************************************************************************/
79
/* Prototypes
80
*/
81
82
83
/************************************************************************/
84
/*>void blSetResnam(PDB *ResStart, PDB *NextRes, char *resnam, int resnum,
85
char *insert, char *chain)
86
-----------------------------------------------------------------------
87
*/
/**
88
89
\param[in,out] *ResStart Pointer to start of residue (linked list)
90
\param[in] *NextRes Pointer to start of next residue
91
\param[in] *resnam Residue name to set
92
\param[in] resnum Residue number to set
93
\param[in] *insert Insert label to set
94
\param[in] *chain Chain label to set
95
96
Change the residue name, number, insert and chain for an amino acid.
97
98
- 12.05.92 Original
99
- 07.07.14 Use bl prefix for functions By: CTP
100
*/
101
void
blSetResnam
(
PDB
*ResStart,
102
PDB
*NextRes,
103
char
*resnam,
104
int
resnum,
105
char
*insert,
106
char
*chain)
107
{
108
PDB
*p;
109
110
for
(p=ResStart; p && p!=NextRes;
NEXT
(p))
111
{
112
strcpy(p->
resnam
, resnam);
113
strcpy(p->
insert
, insert);
114
strcpy(p->
chain
, chain);
115
p->
resnum
= resnum;
116
}
117
}
118
pdb.h
Include file for PDB routines.
pdb_entry::resnum
int resnum
Definition:
pdb.h:310
pdb_entry
Definition:
pdb.h:298
NEXT
#define NEXT(x)
Definition:
macros.h:249
macros.h
Useful macros.
blSetResnam
void blSetResnam(PDB *ResStart, PDB *NextRes, char *resnam, int resnum, char *insert, char *chain)
Definition:
SetResnam.c:101
pdb_entry::resnam
char resnam[8]
Definition:
pdb.h:319
pdb_entry::chain
char chain[blMAXCHAINLABEL]
Definition:
pdb.h:321
pdb_entry::insert
char insert[8]
Definition:
pdb.h:320
Generated on Tue Oct 24 2017 10:57:16 for Bioplib by
1.8.8