- [CHANGELOG](#changelogchangelogmd)
- Installing
- Usage
- About this Repo
- Editing This Repo:
- Updating this repo:
- Building
- Running unit tests
npm install @teselagen/sequence-utils
import { getComplementSequence } from '@teselagen/sequence-utils';
const mySequence = 'ATGAGAG';
const myComplement = getComplementSequence(mySequence);
console.log(myComplement); // TACTCTC
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
Edit/create a new file and update/add any relevant tests.
Make sure they pass by running npm test
Commit and push all changes first (make sure tests are passing!)
Commit and push all changes Sign into npm using the teselagen npm account (npm whoami)
npm version patch|minor|major
npm publish
fork and pull request please :)
This library was generated with Nx.
Run nx build sequence-utils
to build the library.
Run nx test sequence-utils
to execute the unit tests via Jest.