random-sequence-stream
v0.0.4
Published
![https://github.com/molecular-biology-lab/random-sequence-stream/actions](https://github.com/molecular-biology-lab/random-sequence-stream/workflows/publish/badge.svg)
Downloads
4
Readme
Random Sequence Stream
Randomized DNA/RNA sequence generator.
Usage
CLI demo
$ npx random-sequence-stream --size=500
npx: installed 62 in 2.695s
5'-TGGACCCACGACGAGAAAAGCAATGTGGAGGTTCCCTAATCTCGCCTCATTGTCGTTTTTACCTAGTATTCAAGAGAGATCATCACGCGTGAACCGGTGTAGGGATTTTCTTAGGTCCAAGGAAAATTGTATATTTAAATGCGACATATCTGATATACGGGATGCCCCGGTAGGCTGGAGAGAGGTTACGGTCCTATGCTCGAGGTCCGGGAAATGTTTCCCAACTCTGCTCGCATAGTGGCGTACCGCATTAGCCAAGGTTACACGGTGTGCCACTCTAGTGATGCTATGGCGAGCCGCTGTGCCAGGATTAATGTTATTCAATAGACTTCACCTACATTGGTTCCGTCCAGCCTGTCAGTACTTACAGAGTTACCTTTAAGAGCCGCCTACTAGGGCAGCGAACTATGTTCCACGTGTGCTGATCCCTATATATGGGGAGTGGCAATGCATATAGATTTGTATACGCTAGCAAGTATTCTTCCAGGCATGATGCGCGT-3'
As a dependency
$ yarn add random-sequence-stream
import RandomSequenceStream from "random-sequence-stream";
const randomSequenceStream = new RandomSequenceStream({ DNA: true });
randomSequenceStream.pipe(process.stdout);