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

    Function detectDelimiter

    • Detect the delimiter used in DSV content

      Uses heuristics to determine the most likely delimiter:

      • Consistency across rows
      • Average field count
      • Low variance in field counts

      Parameters

      • lines: string[]

        Sample lines from the file

      • candidates: string[] = ...

        Delimiters to test (defaults to common DSV delimiters)

      Returns string | null

      The detected delimiter or null if detection fails