trim adapters from double stranded data
More...
#include "fq_read.h"
#include "defines.h"
Go to the source code of this file.
|
struct | _ds_adap |
| structure containing an adapter pair (for read 1 and read 2) More...
|
|
|
typedef struct _ds_adap | DS_adap |
| structure containing an adapter pair (for read 1 and read 2)
|
|
trim adapters from double stranded data
- Author
- Paula Perez paula.nosp@m.pere.nosp@m.zrubi.nosp@m.o@gm.nosp@m.ail.c.nosp@m.om
- Date
- 05.10.2017
◆ init_DSadap()
DS_adap init_DSadap |
( |
char * |
ad1, |
|
|
char * |
ad2, |
|
|
int |
L1, |
|
|
int |
L2 |
|
) |
| |
initialization of a DS_adap structure
- Parameters
-
ad1 | adapter 1 sequence |
ad2 | adapter 2 sequence |
L1 | adapter 1 sequence length |
L2 | adapter 2 sequence length |
- Returns
- initialized DS_adap structure
◆ trim_adapterDS()
trim the sequences, discard them or keep them unchanged depending on them having adapters remnants.
- Returns
- 0 if the read is to be discarded, 1 if left as is, 2 if trimmed. Reads are trimmed if 2 is returned.