PDB2Seq.c



char *DoPDB2Seq(PDB *pdb, BOOL DoAsxGlx, BOOL ProtOnly, BOOL NoX)

Inputs

PDB *pdb PDB linked list
BOOL DoAsxGlx Handle Asx and Glx as B and Z rather than X
BOOL ProtOnly Don't do DNA/RNA; these simply don't get done rather than being handled as X
BOOL NoX Skip amino acids which would be assigned as X

Returns

char * Allocated character array containing sequence

Description

malloc()'s an array containing the 1-letter sequence corresponding to an input PDB linked list. Returns NULL if given a NULL parameter or memory allocation fails. Puts *'s in the sequence for multi-chains.

This routine is normally called via the macro interfaces: PDB2Seq(pdb), PDB2SeqX(pdb), PDBProt2Seq(pdb), PDBProt2SeqX(pdb) Those with Prot in their names handle protein only; those with X handle Asx/Glx as B/Z rather than as X

Created: 29.09.92 Last Modified: 02.10.00