FastqPuri
trimDS.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 _DSTRIM_H
30 #define _DSTRIM_H
31 
32 #include "fq_read.h"
33 #include "defines.h"
34 
38 typedef struct _ds_adap {
39  char ad1[READ_MAXLEN];
40  char ad2[READ_MAXLEN];
41  int L1;
42  int L2;
43 } DS_adap;
44 
45 DS_adap init_DSadap(char *ad1, char *ad2, int L1, int L2);
46 
47 int trim_adapterDS(DS_adap *ptr_DSad, Fq_read *r1, Fq_read *r2);
48 
56 #endif // endif _DSTRIM_H
DS_adap init_DSadap(char *ad1, char *ad2, int L1, int L2)
initialization of a DS_adap structure
Definition: trimDS.c:49
int L2
Definition: trimDS.h:42
stores a fastq entry
Definition: fq_read.h:37
Macro definitions.
int trim_adapterDS(DS_adap *ptr_DSad, Fq_read *r1, Fq_read *r2)
trim the sequences, discard them or keep them unchanged depending on them having adapters remnants...
Definition: trimDS.c:234
structure containing an adapter pair (for read 1 and read 2)
Definition: trimDS.h:38
fastq entries manipulations (read/write)
int L1
Definition: trimDS.h:41
struct _ds_adap DS_adap
structure containing an adapter pair (for read 1 and read 2)
char ad1[READ_MAXLEN]
Definition: trimDS.h:39
char ad2[READ_MAXLEN]
Definition: trimDS.h:40