# @teselagen/sequence-utils

Latest version **0.3.42** (published 2026-01-16) · 0 weekly downloads

## Install

```sh
npm install @teselagen/sequence-utils
pnpm add @teselagen/sequence-utils
yarn add @teselagen/sequence-utils
bun add @teselagen/sequence-utils
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.42 |
| Published | 2026-01-16 |
| First published | 2023-05-30 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 6 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 106 |
| Maintainers | teselagen-admin, tnrich, colincwilson, andres-teselagen, tgreen-teselagen |

## Links

- npm: https://www.npmjs.com/package/@teselagen/sequence-utils
- Repository: https://github.com/TeselaGen/tg-oss
- Homepage: https://github.com/TeselaGen/tg-oss#readme
- Issues: https://github.com/TeselaGen/tg-oss/issues
- npm.io page: https://npm.io/package/@teselagen/sequence-utils

## Dependencies (6)

- [shortid](https://npm.io/package/shortid.md) 2.2.16
- [lodash-es](https://npm.io/package/lodash-es.md) ^4.17.21
- [jsondiffpatch](https://npm.io/package/jsondiffpatch.md) 0.7.3
- [string-splice](https://npm.io/package/string-splice.md) ^1.3.0
- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) 5.0.0
- [@teselagen/range-utils](https://npm.io/package/@teselagen/range-utils.md) 0.3.20

## Recent versions

- 0.3.42 (latest) — 2026-01-16
- 0.3.42-beta.2 (beta) — 2026-01-22
- 0.3.14 (next) — 2023-11-27
- 0.1.11 (undefined) — 2023-06-07
- 0.3.42-beta.1 — 2026-01-21
- 0.3.41 — 2026-01-05
- 0.3.38-beta.3 — 2025-12-16
- 0.3.38-beta.2 — 2025-12-16
- 0.3.38-beta.1 — 2025-12-16
- 0.3.37 — 2025-12-09
- 0.3.36 — 2025-12-01
- 0.3.35 — 2025-10-22
- 0.3.32 — 2025-06-17
- 0.3.32-beta.2 — 2025-06-11
- 0.3.32-beta.1 — 2025-06-10
- … 48 more at https://npm.io/package/@teselagen/sequence-utils/versions

## README

<!-- TOC -->

- [[CHANGELOG](CHANGELOG.md)](#changelogchangelogmd)
- [Installing](#installing)
- [Usage](#usage)
- [About this Repo](#about-this-repo)
- [Editing This Repo:](#editing-this-repo)
  - [All collaborators:](#all-collaborators)
- [Updating this repo:](#updating-this-repo)
  - [Teselagen collaborators:](#teselagen-collaborators)
  - [Outside collaborators:](#outside-collaborators)
- [Building](#building)
- [Running unit tests](#running-unit-tests)

<!-- /TOC -->

## [CHANGELOG](CHANGELOG.md)

## Installing

```
npm install @teselagen/sequence-utils
```

## Usage

```
import { getComplementSequence } from '@teselagen/sequence-utils';

const mySequence = 'ATGAGAG';
const myComplement = getComplementSequence(mySequence);
console.log(myComplement); // TACTCTC
```

## About this Repo

This is a collection of dna sequence utility functions.

All sequences and annotations (unless otherwise specified) are assumed to have 0-based inclusive indices.

```
  Example:
  0123456
  ATGAGAG
  --fff--  (the feature covers GAG)
  0-based inclusive start:
  feature.start = 2
  1-based inclusive start:
  feature.start = 3
  0-based inclusive end:
  feature.end = 4
  1-based inclusive end:
  feature.end = 5
```

## Editing This Repo:

### All collaborators:

Edit/create a new file and update/add any relevant tests.
Make sure they pass by running `npm test`

## Updating this repo:

Commit and push all changes first (make sure tests are passing!)

# Publishing

See the [README](../README.md)

### Outside collaborators:

fork and pull request please :)

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build sequence-utils` to build the library.

## Running unit tests

Run `nx test sequence-utils` to execute the unit tests via [Jest](https://jestjs.io).

---
_Source: https://npm.io/package/@teselagen/sequence-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
