libuproc  1.2.0
alphabet.h
Go to the documentation of this file.
1 /* Copyright 2014 Peter Meinicke, Robin Martinjak
2  *
3  * This file is part of libuproc.
4  *
5  * libuproc is free software: you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License as published by the Free
7  * Software Foundation, either version 3 of the License, or (at your option)
8  * any later version.
9  *
10  * libuproc is distributed in the hope that it will be useful, but WITHOUT ANY
11  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with libuproc. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
30 #ifndef UPROC_ALPHABET_H
31 #define UPROC_ALPHABET_H
32 
33 #include "uproc/common.h"
34 
53 typedef struct uproc_alphabet_s uproc_alphabet;
54 
63 
66 
79 
92 
98 const char *uproc_alphabet_str(const uproc_alphabet *alpha);
99 
106 #endif
Amino acid alphabet.
int uproc_alphabet_amino_to_char(const uproc_alphabet *alpha, uproc_amino a)
Translate amino acid to character.
int uproc_amino
Type to represent one amino acid.
Definition: common.h:52
void uproc_alphabet_destroy(uproc_alphabet *alpha)
Destroy alphabet object.
uproc_amino uproc_alphabet_char_to_amino(const uproc_alphabet *alpha, int c)
Translate character to amino acid.
const char * uproc_alphabet_str(const uproc_alphabet *alpha)
Return the underlying string.
uproc_alphabet * uproc_alphabet_create(const char *s)
Create alphabet object.
Module: Common definitions.