PackPDB.c



BOOL UnPackPDB(FILE *in, FILE *out)

Inputs

FILE *in Input file pointer (packed PDB)
FILE *out Output file pointer (normal PDB)

Returns

BOOL Success

Description

Read a packed PDB file and write as a normal (unpacked) file

Created: 08.07.93 Last Modified: 08.07.93


PDB *ReadPackedPDB(FILE *in, int *natom)

Inputs

FILE *in Input packed PDB file pointer

Outputs

int *natom Number of atoms read

Returns

PDB * Allocated PDB linked list

Description

Read a packed PDB file into a PDB linked list. Returns a pointer to the start of the list or NULL if failed

Created: 08.07.93 Last Modified: 08.07.93


BOOL PackPDB(FILE *in, FILE *out)

Inputs

FILE *in Input normal PDB file pointer
FILE *out Output packed PDB file pointer

Returns

BOOL Success

Description

Pack a PDB file

Created: 08.07.93 Last Modified: 08.07.93


void WritePackedResidue(FILE *out, PDB *start, PDB *end)

Inputs

FILE *out Output packed PDB file pointer
PDB *start Pointer to start of residue in PDB linked list
PDB *end Pointer to start of next residue in PDB linked list

Description

Write a PDB residue in packed format

Created: 08.07.93 Last Modified: 14.03.94