MCPcopy Create free account
hub / github.com/Milkyroad/SCiPNET / DNAStrand

Function DNAStrand

public/src/js/control.js:235–245  ·  view source on GitHub ↗
(dna)

Source from the content-addressed store, hash-verified

233
234 //random value
235 function DNAStrand(dna) {
236 let sequence = {
237 "A": "T",
238 "T": "A",
239 "G": "C",
240 "C": "G"
241 }
242 return dna.replace(/A|T|G|C/g, function(matched) {
243 return sequence[matched];
244 });
245 }
246 function generateDNA() {
247 var result = '';
248 var characters = 'ATGC';

Callers 1

mainHTMLFunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected