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

Convert DNA codons to amino acid 1-letter code. More...

#include "macros.h"
#include <string.h>
#include <ctype.h>

Go to the source code of this file.

Macros

#define NUCINDEX(x)
 

Functions

char blDNAtoAA (char *dna)
 

Detailed Description

Convert DNA codons to amino acid 1-letter code.

Version
V1.1
Date
07.07.14
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:

  #include "bioplib/seq.h" to define prototype

Revision History:

Definition in file DNAtoAA.c.

Macro Definition Documentation

#define NUCINDEX (   x)
Value:
((x)=='T' ? (0) : \
((x)=='U' ? (0) : \
((x)=='C' ? (1) : \
((x)=='A' ? (2) : \
(3)))))

Definition at line 75 of file DNAtoAA.c.

Function Documentation

char blDNAtoAA ( char *  dna)
Parameters
[in]*dnaDNA/RNA codon
Returns
1-letter amino acid code (X=termination)

Converts a nucleic acid codon to the 1-letter amino acid equivalent. Termination codons are returned as X. No special action is taken for initiation codons.

  • 18.04.94 Original By: ACRM
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 110 of file DNAtoAA.c.