55 #define UPROC_WORD_INITIALIZER \
int uproc_word_cmp(const struct uproc_word *w1, const struct uproc_word *w2)
Compare words.
uproc_suffix suffix
Last few amino acids.
Definition: word.h:51
void uproc_word_append(struct uproc_word *word, uproc_amino amino)
Append amino acid.
Module: Amino acid translation alphabets.
int uproc_word_from_string(struct uproc_word *word, const char *str, const uproc_alphabet *alpha)
Transform a string to amino acid word.
int uproc_amino
Type to represent one amino acid.
Definition: common.h:52
struct uproc_worditer_s uproc_worditer
Iterator over all words in an amino acid sequence.
Definition: word.h:149
uproc_prefix prefix
First few amino acids.
Definition: word.h:48
uint_least64_t uproc_suffix
Type for suffixes.
Definition: common.h:84
uproc_worditer * uproc_worditer_create(const char *seq, const uproc_alphabet *alpha)
Create worditer object.
uint_least32_t uproc_prefix
Type for prefixes.
Definition: common.h:65
void uproc_worditer_destroy(uproc_worditer *iter)
Destroy worditer object.
Amino acid word.
Definition: word.h:45
bool uproc_word_startswith(const struct uproc_word *word, uproc_amino amino)
Compare first amino acid of a word.
void uproc_word_prepend(struct uproc_word *word, uproc_amino amino)
Prepend amino acid.
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.
int uproc_word_to_string(char *str, const struct uproc_word *word, const uproc_alphabet *alpha)
Build string corresponding to amino acid word.