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

    Class CSVParser

    DSV writer for outputting genomic data RFC 4180 compliant with Excel protection for gene names

    const writer = new DSVWriter({ delimiter: ",", excelCompatible: true });
    const csv = writer.formatRecords(records);
    // Automatically compress based on file extension
    const writer = new CSVWriter();
    await writer.writeFile("genes.csv.gz", sequences); // Creates gzipped CSV

    // Excel-safe compressed output
    const safeWriter = new TSVWriter({ excelCompatible: true });
    await safeWriter.writeFile("expression.tsv.gz", data); // Protects gene names
    }

    // =============================================================================
    // CLASSES - CONVENIENCE PARSERS
    // =============================================================================

    /**
    CSVParser - Convenience class for CSV files

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Parse stream with automatic compression detection

      Parameters

      • stream: ReadableStream<Uint8Array<ArrayBufferLike>>

        Potentially compressed stream

      Returns AsyncIterable<DSVRecord>

      AsyncIterable of DSV records async parseCompressed(stream: ReadableStream): AsyncIterable { // parse() now handles compression automatically via BufferedStreamReader yield this.parse(stream); }

      /** Parse stream input with true streaming (no full buffering)