GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
bl_fastq_find_3p_low_qual(3) FreeBSD Library Functions Manual bl_fastq_find_3p_low_qual(3)

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

size_t bl_fastq_find_3p_low_qual(const bl_fastq_t *read, unsigned min_qual, unsigned phred_base)

read        FASTQ read to be searched
min_qual    Minimum quality of bases to keep
phred_base  Offset into the ISO character set used by PHRED scores
(usually 33 for modern data)

Locate start of a low-quality 3' end in a FASTQ read. This function uses the same algorithm as fastq and cutadapt as of the time of writing. Namely, it starts at the 3' end of the quality string and sums (base quality - minimum quality) while moving in the 5' direction. This sum will be < 0 as long as the average base quality is < minimum quality. It also keeps track of where the minimum of this sum occurs. When the sum become > 0, we have reached a point where the average quality of the 3' end is satisfactory, and it is assumed it will remain that way if we continue in the 5' direction. ( Illumina reads tend to drop in quality near the 3' end. ) The location of the minimum sum is then returned, since the average quality of everything in the 5' direction must be satisfactory.

Index of first low-quality base at the 3' end if found, index of NULL terminator otherwise

bl_fastq_t  read;
index = bl_fastq_find_3p_low_qual(&read, 20, 33);
bl_fastq_3p_trim(&read, index);

bl_fastq_find_adapter_smart(3), bl_fastq_find_adapter_exact(3), bl_fastq_trim(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.