Skip to content

Latest commit

 

History

History

sequence-utils

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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!)

Teselagen collaborators:

Commit and push all changes Sign into npm using the teselagen npm account (npm whoami)

npm version patch|minor|major
npm publish

Outside collaborators:

fork and pull request please :)

This library was generated with Nx.

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.