Bioplib
Protein Structure C Library
|
Include file for amino acid linked lists. More...
Go to the source code of this file.
Data Structures | |
struct | aa |
Macros | |
#define | _AALIST_H_DEPRECATED |
Typedefs | |
typedef struct aa | AA |
Functions | |
AA * | blInsertNextResiduesInAAList (AA *a, char res, int nres) |
AA * | blInsertNextResidueInAAList (AA *a, char res) |
char * | blBuildSeqFromAAList (AA *aa) |
AA * | blInsertResidueInAAListAt (AA *aa, char res, int pos) |
AA * | blInsertResiduesInAAListAt (AA *aa, char res, int nres, int pos) |
AA * | blBuildAAList (char *seq) |
int | blFindAAListOffsetByResnum (AA *aa, int resnum) |
AA * | blFindAAListItemByResnum (AA *aa, int resnum) |
void | blSetAAListFlagByResnum (AA *aa, int resnum) |
char * | blBuildFlagSeqFromAAList (AA *aa, char ch) |
int | blGetAAListLen (AA *aa) |
Include file for amino acid linked lists.
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.
Definition in file aalist.h.
AA* blBuildAAList | ( | char * | seq | ) |
char* blBuildFlagSeqFromAAList | ( | AA * | aa, |
char | ch | ||
) |
[in] | *aa | Sequence linked list |
[in] | ch | Character to use in the sequence |
Builds a sequence string with blanks except where the flag in the sequence structure is set. At these positions the character specified in ch is used instead.
char* blBuildSeqFromAAList | ( | AA * | aa | ) |
[in] | *aa | Sequence linked list |
[in] | resnum | Residue number |
Searches the linked list of the specified resnum (i.e. the original residue number in the sequence before any insertions were made) and returns a pointer to that item in the list.
int blFindAAListOffsetByResnum | ( | AA * | aa, |
int | resnum | ||
) |
[in] | *aa | Sequence linked list |
[in] | resnum | Residue number |
Searches the linked list of the specified resnum (i.e. the original residue number in the sequence before any insertions were made) and returns the position of that residue in the list (numbered from 1)
int blGetAAListLen | ( | AA * | aa | ) |
[in] | *a | Sequence linked list |
[in] | res | Residue to insert |
Inserts a residues after the current position in the linked list. The returned value is the residue which has been inserted so this can be called again on the returned aa to insert another aa
[in] | *a | Sequence linked list |
[in] | res | Residue to insert |
[in] | nres | Number of residues to insert |
Inserts a set of identical residues after the current position in the linked list. The returned value is the last residue which has been inserted so this can be called again on the returned aa to insert another aa
[in] | *aa | Sequence linked list |
[in] | res | Residue to insert |
[in] | pos | Position at which to insert (from 1...) |
Inserts a residue after the specified position in the list. Residues are numbered from 1. If the position is > length of the list then the residue will be added at the end. If the position is zero, it will be at the start of the list in which case the return value for the list will be different from the input value.
[in] | *aa | Sequence linked list |
[in] | res | Residue to insert |
[in] | nres | Number of residues to insert |
[in] | pos | Position at which to insert (from 1...) |
Inserts a set of residues after the specified position in the list. Residues are numbered from 1. If the position is > length of the list then the residue will be added at the end. If the position is zero, it will be at the start of the list in which case the return value for the list will be different from the input value.
void blSetAAListFlagByResnum | ( | AA * | aa, |
int | resnum | ||
) |
[in] | *aa | Sequence linked list |
[in] | resnum | Residue number |
Searches the linked list of the specified resnum (i.e. the original residue number in the sequence before any insertions were made) and sets the flag in that item in the linked list