libuproc
1.2.0
|
Macros | |
#define | UPROC_EPSILON 1e-5 |
Epsilon value for comparing floating point numbers. More... | |
#define | UPROC_BITMASK(n) (~(~0ULL << (n))) |
Maks the lowest n bits. More... | |
#define | UPROC_PREFIX_LEN 6 |
Length of the suffix part of a word. More... | |
#define | UPROC_SUFFIX_LEN 12 |
Length of the prefix part of a word. More... | |
#define | UPROC_WORD_LEN (UPROC_PREFIX_LEN + UPROC_SUFFIX_LEN) |
Total word length. More... | |
#define | UPROC_AMINO_BITS 5 |
Bits needed to represent one amino acid. More... | |
#define | UPROC_ALPHABET_SIZE 20 |
Number of amino acids in the alphabet. More... | |
#define | UPROC_PREFIX_PRI PRIu32 |
printf() format specifier More... | |
#define | UPROC_PREFIX_SCN SCNu32 |
scanf() format specifier More... | |
#define | UPROC_POW6(x) ((x) * (x) * (x) * (x) * (x) * (x)) |
Raise x to the power of 6. More... | |
#define | UPROC_PREFIX_MAX (UPROC_POW6((unsigned long)UPROC_ALPHABET_SIZE) - 1) |
Maximum value of a prefix. More... | |
#define | UPROC_SUFFIX_PRI PRIu64 |
printf() format for suffixes More... | |
#define | UPROC_SUFFIX_SCN SCNu64 |
scanf() format for suffixes More... | |
#define | UPROC_FAMILY_MAX (UINT_LEAST16_MAX - 1) |
Maximum value for uproc_family. More... | |
#define | UPROC_FAMILY_INVALID (UINT_LEAST16_MAX) |
Denotes an invalid protein family. More... | |
#define | UPROC_FAMILY_PRI PRIu16 |
printf() format for uproc_family More... | |
#define | UPROC_FAMILY_SCN SCNu16 |
scanf() format for uproc_family More... | |
Typedefs | |
typedef int | uproc_amino |
Type to represent one amino acid. More... | |
typedef uint_least32_t | uproc_prefix |
Type for prefixes. More... | |
typedef uint_least64_t | uproc_suffix |
Type for suffixes. More... | |
typedef uint_least16_t | uproc_family |
Identifier of a protein family. More... | |
#define UPROC_EPSILON 1e-5 |
Epsilon value for comparing floating point numbers.
#define UPROC_BITMASK | ( | n | ) | (~(~0ULL << (n))) |
Maks the lowest n
bits.
#define UPROC_PREFIX_LEN 6 |
Length of the suffix part of a word.
#define UPROC_SUFFIX_LEN 12 |
Length of the prefix part of a word.
#define UPROC_WORD_LEN (UPROC_PREFIX_LEN + UPROC_SUFFIX_LEN) |
Total word length.
#define UPROC_AMINO_BITS 5 |
Bits needed to represent one amino acid.
#define UPROC_ALPHABET_SIZE 20 |
Number of amino acids in the alphabet.
#define UPROC_PREFIX_PRI PRIu32 |
printf() format specifier
#define UPROC_PREFIX_SCN SCNu32 |
scanf() format specifier
#define UPROC_POW6 | ( | x | ) | ((x) * (x) * (x) * (x) * (x) * (x)) |
Raise x
to the power of 6.
#define UPROC_PREFIX_MAX (UPROC_POW6((unsigned long)UPROC_ALPHABET_SIZE) - 1) |
Maximum value of a prefix.
#define UPROC_SUFFIX_PRI PRIu64 |
printf() format for suffixes
#define UPROC_SUFFIX_SCN SCNu64 |
scanf() format for suffixes
#define UPROC_FAMILY_MAX (UINT_LEAST16_MAX - 1) |
Maximum value for uproc_family.
#define UPROC_FAMILY_INVALID (UINT_LEAST16_MAX) |
Denotes an invalid protein family.
#define UPROC_FAMILY_PRI PRIu16 |
printf() format for uproc_family
#define UPROC_FAMILY_SCN SCNu16 |
scanf() format for uproc_family
typedef int uproc_amino |
Type to represent one amino acid.
typedef uint_least32_t uproc_prefix |
Type for prefixes.
Prefixes are (in contrast to suffixes, see below) contiguous, i.e. all values from 0 to UPROC_PREFIX_MAX represent valid prefixes.
typedef uint_least64_t uproc_suffix |
Type for suffixes.
Suffixes are represented as a "bit string" of UPROC_SUFFIX_LEN amino acids, each represented UPROC_AMINO_BITS bits.
typedef uint_least16_t uproc_family |
Identifier of a protein family.