Genotype API Documentation - v0.1.0
    Preparing search index...

    Function processChunks

    • Create stream processing statistics tracker

      Provides real-time statistics about stream processing performance and resource usage.

      Parameters

      • stream: ReadableStream<Uint8Array<ArrayBufferLike>>

        Stream to process

      Returns AsyncIterable<StreamChunk & { stats: StreamStats }>

      Stream chunks with statistics

      const stream = await createStream('/path/to/large-file.fastq');

      for await (const chunk of processChunks(stream)) {
      console.log(`Processing rate: ${chunk.stats.processingRate} bytes/sec`);
      }