Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

central-dogma

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

central-dogma - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

12

app.js

@@ -1,6 +0,10 @@

// const codon = require('./index.js');
// const nuc = require('./nucleotide.js');
const nuc = require('./index.js').nucleotide;
const cod = require('./index.js').codon;
// // const nucs = "TCCAGGTTTAACTGA";
// const nucs = "ATGAATGCTACACATGCGAACUGA";
const nucs = "ATGAATGCTACACATGCGAACTGA";
console.log(nuc.toValue(nucs));
const cods = nuc.toCodon(nucs);
console.log(cod.toNumber(cods));
// const split = codon.splitToCodon(nucs);

@@ -24,2 +28,2 @@ // console.log(split);

// console.log(util.inspect(nuc));
// console.log(nuc.toComplement('ATCTTGGTAT'));
// console.log(nuc.toComplement('ATCTTGGTAT'));

@@ -21,3 +21,3 @@ 'use strict';

let newArray = [];
for (codon in codArray) {
for (const codon of codArray) {
newArray.push(this.table.indexOf(codon));

@@ -30,3 +30,3 @@ }

let newArray = [];
for (codonNumber in codArray) {
for (const codonNumber of codArray) {
newArray.push(this.table[codonNumber]);

@@ -48,2 +48,2 @@ }

const cod = new Codon();
module.exports = cod;
module.exports = cod;

@@ -7,4 +7,4 @@ 'use strict';

constructor() {
this.base = 'dna';
this.table = tables.dnaNucleotides; //new table goes here
this.base = 'dna'; // dna || rna
this.table = tables.dnaNucleotides;
}

@@ -11,0 +11,0 @@

{
"name": "central-dogma",
"version": "0.0.2",
"version": "0.0.3",
"description": "used to manipulate and convert genetic strings from nucleotide to codon to protein",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc