Skip to content

JS module for calculating LAMP RFLP fragment lengths

License

Notifications You must be signed in to change notification settings

creisle/lamprflp

Folders and files

NameName
Last commit message
Last commit date
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Mar 29, 2020
Apr 30, 2021
Mar 29, 2020

Repository files navigation

LAMP RFLP

npm version

This is the JS module used by the site: http://creisle.github.io/creisle.lamprflp/

This computes the lamp products from a FASTA input file and outputs the fragments required for the visual

Getting Started

Install from npm

npm install lamprflp

then this can be used in a node module as follows

const {createLampReaction} = require('lamprflp');

const {lanes} = createLampReaction(`
> b1
cgactctagaggatccccgggtac
> b2
tgttgtgtggaattgtgagcggat
> f1
acaacgtcgtgactgggaaaaccct
> f2
gtgcgggcctcttcgctattac
> seq
AATGCTACTACTATTAGTAG...TATGATTTATTGGATGTT
`, ['100bp', '50bp', '', 'RsaI']);

Running the Tests

Tests are written with Jest and can be run as follows

npm test