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

Writes a PIR sequence file. More...

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "SysDefs.h"
#include "macros.h"
#include "seq.h"

Go to the source code of this file.

Functions

void blWriteOneStringPIR (FILE *out, char *label, char *title, char *sequence, char **chainLabels, BOOL ByChain, BOOL doFasta)
 

Detailed Description

Writes a PIR sequence file.

Version
V1.0
Date
11.06.16
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:

Usage:

Revision History:

Definition in file WritePIR.c.

Function Documentation

void blWriteOneStringPIR ( FILE *  out,
char *  label,
char *  title,
char *  sequence,
char **  chainLabels,
BOOL  ByChain,
BOOL  doFasta 
)
Parameters
[in]*outFile pointer
[in]*labelSequence label
[in]*titleSequence title
[in]*sequenceSequence (1-letter code) with chains separated by *
[in]**chainLabelsChain labels (may be set to NULL unless ByChain is set)
[in]ByChainPrint a separate header for each chain
[in]doFastaOutput FASTA format instead of PIR

Writes a PIR sequence file from a 1-letter code sequence. Multiple chains are split with '*'. If ByChain is set the the chainLabels array must be non-NULL and contains labels for each chain Adds a terminating * if required.

  • 10.05.94 Original By: ACRM
  • 22.08.97 Can now handle chains separately
  • 26.08.97 If chains are handled separately, don't bother writing out an empty chain
  • 10.08.98 Basically a total rewrite to fix a bug which caused the header not to be printed with -c -p for a chain after one which was non-protein. Much simplified the code by printing the header at the beginning of a chain rather than end of previous chain.
  • 18.10.00 Added code to write FASTA as well
  • 11.06.15 Reset count=0 after a * - tidies up the output!

Definition at line 116 of file WritePIR.c.