Calculate comprehensive sequence statistics
Processes sequences through a single pass, computing all requested statistics while maintaining memory efficiency.
Input sequences to analyze
Configuration options for statistics
Comprehensive statistics result
Calculate N50, N90, and other percentile metrics
N50 is the sequence length where 50% of the total bases are in sequences of this length or longer. This is a key metric for genome assembly quality assessment.
Array of sequence lengths (will be sorted)
Target percentile (50 for N50, 90 for N90)
The NX value
Calculate quality statistics for FASTQ sequences
Computes mean, min, max, and percentile-based quality metrics from quality strings using the appropriate encoding.
Array of quality strings
Quality encoding system
Quality statistics
High-performance sequence statistics calculator with streaming support
Calculates comprehensive statistics from sequences while maintaining constant memory usage through streaming computation where possible.
Example