FastqPuri
|
Construct the quality report variables and update them. More...
Go to the source code of this file.
Classes | |
struct | statsinfo |
stores info needed to create the summary graphs More... | |
Typedefs | |
typedef struct statsinfo | Info |
stores info needed to create the summary graphs | |
Functions | |
void | init_info (Info *res) |
Initialization of a Info type. More... | |
void | free_info (Info *res) |
frees allocated memory in Info | |
void | read_info (Info *res, char *file) |
Read Info from binary file. | |
void | write_info (Info *res, char *file) |
Write info to binary file. | |
void | print_info (Info *res, char *infofile) |
print Info to a textfile | |
void | get_first_tile (Info *res, Fq_read *seq) |
gets first tile | |
void | update_info (Info *res, Fq_read *seq) |
updates Info with Fq_read | |
int | update_ACGT_counts (uint64_t *ACGT_low, char ACGT) |
update, for current tile, ACGT counts. More... | |
void | update_QPosTile_table (Info *res, Fq_read *seq) |
update QPostile table | |
void | update_ACGT_pos (uint64_t *ACGT_pos, Fq_read *seq) |
update ACGT_pos | |
void | resize_info (Info *res) |
resize Info More... | |
Construct the quality report variables and update them.
void init_info | ( | Info * | res | ) |
Initialization of a Info type.
It sets: nQ, read_len, ntiles, minQ and the dimensions of the arrays. Initializes the rest of the variables to zero and allocates memory to the arrays initializing them to 0 (calloc).
void resize_info | ( | Info * | res | ) |
resize Info
At the end of the program, resize the structure Info, and adapt it to the actual number of tiles and the actual number of different quality values present.
int update_ACGT_counts | ( | uint64_t * | ACGT_low, |
char | ACGT | ||
) |
update, for current tile, ACGT counts.
Makes update of ACGT counts for the current tile. Can be used with variables: lowQ_ACGT_tile and ACGT_tile