bl_fastq_3p_trim(3)

NAME
bl_fastq_3p_trim() - Trim 3' end of a FASTQ object

LIBRARY
#include <biolibc/fastq.h>
-lbiolibc -lxtend

SYNOPSIS
size_t  bl_fastq_3p_trim(bl_fastq_t *read, size_t new_len)

ARGUMENTS
read        FASTQ read to be trimmed
new_len     New length and location of the null terminators

DESCRIPTION
Trim the 3' end of a FASTQ sequence and quality string at location new_len.

RETURN VALUES
BL_FASTQ_DATA_OK if new_len is between 0 and original length, BL_FASTQ_DATA_INVALID otherwise.

EXAMPLES
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);

SEE ALSO
bl_fastq_find_adapter_smart(3), bl_fastq_find_adapter_exact(3)