FastqPuri
io_trimFilterDS.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_TRIMFILTERDS_H_
30 #define IO_TRIMFILTERDS_H_
31 
32 #include <stdio.h>
33 #include "defines.h"
34 
38 typedef struct _stats_TFDS {
43  int good;
44  int nreads;
45 } Stats_TFDS;
46 
47 void buffer_outputDS(FILE *fout, const char *a, const int len, const int fd_i);
48 
49 void write_summary_TFDS(Stats_TFDS tfds_stats, char *filename);
50 
51 #endif // IO_TRIMFILTERDS_H_
int good
Definition: io_trimFilterDS.h:43
int filters[NFILTERS]
Definition: io_trimFilterDS.h:39
int trimmed1[NFILTERS]
Definition: io_trimFilterDS.h:40
int discarded[NFILTERS]
Definition: io_trimFilterDS.h:42
void buffer_outputDS(FILE *fout, const char *a, const int len, const int fd_i)
buffers the output before writing to disk
Definition: io_trimFilterDS.c:46
Macro definitions.
collects stats info from the filtering procedure
Definition: io_trimFilterDS.h:38
struct _stats_TFDS Stats_TFDS
collects stats info from the filtering procedure
#define NFILTERS
Definition: defines.h:128
int nreads
Definition: io_trimFilterDS.h:44
void write_summary_TFDS(Stats_TFDS tfds_stats, char *filename)
writes stats of filtering to summary file (binary)
Definition: io_trimFilterDS.c:64
int trimmed2[NFILTERS]
Definition: io_trimFilterDS.h:41