#include <biolibc/fastq.h>
-lbiolibc -lxtend
size_t bl_fastq_3p_trim(bl_fastq_t *read, size_t new_len)
read FASTQ read to be trimmed
new_len New length and location of the null terminators
Trim the 3' end of a FASTQ sequence and qualit string at location new_len.
BL_DATA_OK if new_len is between 0 and original length, BL_DATA_INVALID
otherwise.
bl_fastq_t read;
char *adapter;
size_t index;
index = bl_fastq_find_adapter_smart(&read, adapter, 3, 10);
if ( BL_FASTQ_SEQ_AE(&read, index) != '0' )
bl_fastq_3p_trim(&read, index);
bl_fastq_find_adapter_smart(3), bl_fastq_find_adapter_exact(3)