libuproc  1.2.0
Data Structures | Macros | Typedefs | Functions
word.h File Reference

Module: Amino acid words. More...

#include <stdint.h>
#include <stdbool.h>
#include "uproc/alphabet.h"

Go to the source code of this file.

Data Structures

struct  uproc_word
 Amino acid word. More...
 

Macros

#define UPROC_WORD_INITIALIZER
 Initializer to be used for all uproc_word structs. More...
 

Typedefs

typedef struct uproc_worditer_s uproc_worditer
 Iterator over all words in an amino acid sequence. More...
 

Functions

int uproc_word_from_string (struct uproc_word *word, const char *str, const uproc_alphabet *alpha)
 Transform a string to amino acid word. More...
 
int uproc_word_to_string (char *str, const struct uproc_word *word, const uproc_alphabet *alpha)
 Build string corresponding to amino acid word. More...
 
void uproc_word_append (struct uproc_word *word, uproc_amino amino)
 Append amino acid. More...
 
void uproc_word_prepend (struct uproc_word *word, uproc_amino amino)
 Prepend amino acid. More...
 
bool uproc_word_startswith (const struct uproc_word *word, uproc_amino amino)
 Compare first amino acid of a word. More...
 
int uproc_word_cmp (const struct uproc_word *w1, const struct uproc_word *w2)
 Compare words. More...
 
uproc_worditeruproc_worditer_create (const char *seq, const uproc_alphabet *alpha)
 Create worditer object. More...
 
int uproc_worditer_next (uproc_worditer *iter, size_t *index, struct uproc_word *fwd, struct uproc_word *rev)
 Obtain the next word(s) from a word iterator. More...
 
void uproc_worditer_destroy (uproc_worditer *iter)
 Destroy worditer object. More...
 

Detailed Description

Module: Amino acid words.