FastqPuri
io_trimFilter.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (C) 2017 by Paula Perez Rubio *
3  * *
4  * This file is part of FastqPuri. *
5  * *
6  * FastqPuri is free software: you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as *
8  * published by the Free Software Foundation, either version 3 of the *
9  * License, or (at your option) any later version. *
10  * *
11  * FastqPuri is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with FastqPuri. *
18  * If not, see <http://www.gnu.org/licenses/>. *
19  ****************************************************************************/
20 
29 #ifndef IO_TRIMFILTER_H_
30 #define IO_TRIMFILTER_H_
31 
32 #include <stdio.h>
33 #include "defines.h"
34 
38 typedef struct _stats_TF {
42  int good;
43  int nreads;
44 } Stats_TF;
45 
46 void buffer_output(FILE *fout, const char *a, const int len, const int fd_i);
47 
48 void write_summary_TF(Stats_TF tf_stats, char *filename);
49 
50 #endif // IO_TRIMFILTER_H_
int nreads
Definition: io_trimFilter.h:43
int filters[NFILTERS]
Definition: io_trimFilter.h:39
collects stats info from the filtering procedure
Definition: io_trimFilter.h:38
int trimmed[NFILTERS]
Definition: io_trimFilter.h:40
Macro definitions.
#define NFILTERS
Definition: defines.h:128
void write_summary_TF(Stats_TF tf_stats, char *filename)
writes stats of filtering to summary file (binary)
Definition: io_trimFilter.c:62
int discarded[NFILTERS]
Definition: io_trimFilter.h:41
void buffer_output(FILE *fout, const char *a, const int len, const int fd_i)
buffers the output before writing to disk, writes out summary
Definition: io_trimFilter.c:44
int good
Definition: io_trimFilter.h:42
struct _stats_TF Stats_TF
collects stats info from the filtering procedure