FastqPuri
Classes | Typedefs | Functions
stats_info.h File Reference

Construct the quality report variables and update them. More...

#include <stdint.h>
#include <stdlib.h>
#include "fq_read.h"
#include "defines.h"
Include dependency graph for stats_info.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Construct the quality report variables and update them.

Author
Paula Perez paula.nosp@m.pere.nosp@m.zrubi.nosp@m.o@gm.nosp@m.ail.c.nosp@m.om
Date
04.08.2017

Function Documentation

◆ init_info()

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).

◆ resize_info()

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.

◆ update_ACGT_counts()

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