home | help
bl_fastq_5p_trim(3)	    Library Functions Manual	     bl_fastq_5p_trim(3)

NAME
     bl_fastq_5p_trim() - Trim 5' end of a FASTQ object

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

SYNOPSIS
     size_t  bl_fastq_5p_trim(bl_fastq_t *read, size_t cut_pos)

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

DESCRIPTION
     Trim the 5' end of a FASTQ sequence and quality string at location cut_pos.

RETURN VALUES
     BL_FASTQ_DATA_OK	if   cut_pos   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_5p_trim(&read, index);

SEE ALSO
     bl_fastq_find_adapter_smart(3), bl_fastq_find_adapter_exact(3)

							     bl_fastq_5p_trim(3)

home | help