eccLib 1.1.0
Python library for bioinformatics written in C
|
Header file for the GTF module. More...
Go to the source code of this file.
Macros | |
#define | DEFAULT_ATTR_SIZE 64 |
How many attributes should be allocated by default. | |
#define | CORE_FIELD_COUNT 8 |
The number of core fields in a GTF line. | |
#define | GFF3_FASTA_HEADER "##FASTA" |
Enumerations | |
enum | gtfFields { SEQNAME = 0 , SOURCE = 1 , FEATURE = 2 , START = 3 , END = 4 , SCORE = 5 , REVERSE = 6 , FRAME = 7 , ATTRIBUTES = 8 } |
Enum containing the fields that a GTF line can contain. More... | |
Functions | |
GtfDict * | createGTFdict (const occurrence_t *restrict token, PyObject *attr_tp, hashmap_t *restrict attr_keys, hashmap_t *restrict attr_vals) |
Parses a singular GTF line into a Python dict. | |
bool | validGTFLineToParse (const char *line, size_t len) |
Determines if the provided line is a valid GTF line that can be parsed safely. | |
char * | gtf_percent_encode (const char *restrict str, size_t len, size_t *restrict outLen) |
Percent encodes restricted GTF characters. | |
Variables | |
const char * | keywords [CORE_FIELD_COUNT] |
Array containing the keywords of the GTF fields. | |
const uint8_t | keyword_sizes [CORE_FIELD_COUNT] |
Array containing the sizes of the keywords. | |
Header file for the GTF module.
#define GFF3_FASTA_HEADER "##FASTA" |
char * gtf_percent_encode | ( | const char *restrict | str, |
size_t | len, | ||
size_t *restrict | outLen | ||
) |
Percent encodes restricted GTF characters.
str | the string to percent encode |
len | the length of the string |
outLen | the length of the output string |