Create a new SAM parser with specified options and interrupt support
SAM parser configuration options including AbortSignal
Parse SAM records from a string
Raw SAM format string data
Parse SAM records from a ReadableStream
Binary data stream
AsyncIterable of SAM headers and alignments
Parse SAM records from a file using streaming I/O
Path to SAM file to parse
Optional
options: FileReaderOptionsFile reading options for performance tuning
Streaming SAM parser with comprehensive validation
Designed for memory efficiency - processes records one at a time without loading entire files into memory. Handles real-world SAM file complexity including malformed headers, invalid CIGAR strings, and incorrect optional tags.
Example: Basic usage
Example: With custom options