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

    Class AlignmentParser

    Parser for BAM and SAM alignment files.

    Reads BAM or SAM alignment records as typed AlignmentRecord objects. Format detection is automatic. BAM/SAM parsing currently requires an available native or WASM backend.

    const parser = new AlignmentParser();
    for await (const record of parser.parseFile("alignments.bam")) {
    console.log(`${record.id} -> ${record.referenceSequence}:${record.position}`);
    }
    const results = await seqops(new AlignmentParser().parseFile("reads.bam"))
    .filter({ minLength: 100 })
    .unique({ by: "sequence" })
    .collect();

    Hierarchy

    Index

    Constructors

    Methods