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

    Function removeGaps

    • Remove gap characters from sequence

      Parameters

      • sequence: GenotypeString

        Sequence with potential gaps

      • OptionalgapChars: string

        Characters to remove (default: '.-*')

      Returns GenotypeString

      Sequence with gaps removed (same type as input)

      const clean = removeGaps('AT-C.G*N');
      console.log(clean); // 'ATCGN'

      const custom = removeGaps('AT_C.G', '_.');
      console.log(custom); // 'ATCG'
    • Remove gap characters from sequence

      Parameters

      • sequence: string

        Sequence with potential gaps

      • OptionalgapChars: string

        Characters to remove (default: '.-*')

      Returns string

      Sequence with gaps removed (same type as input)

      const clean = removeGaps('AT-C.G*N');
      console.log(clean); // 'ATCGN'

      const custom = removeGaps('AT_C.G', '_.');
      console.log(custom); // 'ATCG'