Calculate GC content for a nucleotide sequence Optimized Rust implementation for large genomic sequences
Input nucleotide sequence string (IUPAC codes)
GC content as ratio (0.0 to 1.0), ignoring ambiguous bases
Optional
decompressDecompress a BGZF block using optimized native implementation BGZF is the block-compressed gzip format used in BAM files
Input compressed data buffer
Output buffer for decompressed data (must be pre-allocated)
Number of bytes written to output buffer, or -1 on error
Optional
decodeDecode 4-bit packed nucleotide sequence to ASCII string Used for BAM sequence field decoding where each base uses 4 bits
4-bit packed sequence data from BAM file
Number of bases to decode
Decoded nucleotide sequence string using IUPAC codes
Optional
convert
Determine the Zig target triple for the current platform Maps Node.js platform/arch to Zig-compatible target strings
Returns
Target string in format "arch-platform" (e.g., "x86_64-macos")