|
eccLib 1.3.0
Python library for bioinformatics written in C
|
Module providing functions for handling FASTA data. More...
Macros | |
| #define | firstEl(b) |
| Gets the first 4 bits of a byte. | |
| #define | secondEl(b) |
| Gets the second 4 bits of a byte. | |
| #define | toByte(a, b) |
| Combines two 4 bit numbers into a byte. | |
| #define | i_Index 0xFF |
| Invalid FASTA index. | |
Functions | |
| static void | pack (uint8_t values[PACKING_WIDTH], packing_t *packed) |
| Packs an array of 4-bit values into an integer. | |
| bool | is_valid_title (const char *title, size_t len) |
| Checks if a FASTA title is valid. | |
| char | getIUPACchar (uint8_t index, bool rna) |
| Returns IUPAC FASTA character. | |
| void | initialize_fasta_binary_mapping (uint8_t fasta_binary_mapping[CHAR_MAX+1]) |
| Initializes the FASTA binary mapping. | |
Module providing functions for handling FASTA data.
| #define firstEl | ( | b | ) |
Gets the first 4 bits of a byte.
| b | the byte to get the first 4 bits from |
| #define i_Index 0xFF |
Invalid FASTA index.
| #define secondEl | ( | b | ) |
Gets the second 4 bits of a byte.
| b | the byte to get the second 4 bits from |
| #define toByte | ( | a, | |
| b ) |
Combines two 4 bit numbers into a byte.
| a | the first 4 bit number |
| b | the second 4 bit number |
| char getIUPACchar | ( | uint8_t | index, |
| bool | rna ) |
Returns IUPAC FASTA character.
| index | the code to convert to a character |
| rna | if true, T will be converted to U |

| void initialize_fasta_binary_mapping | ( | uint8_t | fasta_binary_mapping[CHAR_MAX+1] | ) |
Initializes the FASTA binary mapping.
| fasta_binary_mapping | the array to initialize |
| bool is_valid_title | ( | const char * | title, |
| size_t | len ) |
Checks if a FASTA title is valid.
| title | the title to check |
| len | the length of the title |

|
inlinestatic |
Packs an array of 4-bit values into an integer.
| values | the array of 4-bit values to pack |
| packed | the packed value |
