Biological information resources are becoming faster and faster. Using visual methods to analyze DNA sequences has become a hot topic in bioinformatics research. The method of expressing DNA sequences using graphs is becoming more and more mature. In 2011, the famous magazine Science published a sensation: Presenting the Human Genome: now is 3D. This article describes the future of human genome sequencing. It can be seen that 3D technology is a development direction in many fields.
Mono allows you to quickly create a three-dimensional DNA molecular structure model. The effect is as follows:
Of course, simply presenting the DNA molecular structure is only a part of the function. If Mono is combined with a professional DNA analyzer, it can not only discover the disease, but also predict the occurrence of the disease and cure the disease before it is released, this will be the gospel of mankind. In addition to studying human genes, we can also perform DNA 3D modeling and analysis on crops, which will be of positive significance for both agricultural development and food security.
The biggest feature of using mono to create a 3D model is that it is fast. There are only a few dozen lines of code, and you do not need to use the editor. The core code of this article is as follows:
function createDNA(box, x, y, z, colors){ var count=20+Math.random()*50; var dist=50; var parent=createNode(box, 10, 0,0,0,‘red‘);for(var i=0;i<count;i++){ var angle=Math.PI*2/360*15*i; var radius = (i % 2==0) ? 10 : 7; var color = colors[i%2] var node1=createPairNode(box, dist, radius, i, angle, color); var node2=createPairNode(box, dist*0.3, radius, i, angle, color); node1.setParent(parent); node2.setParent(parent); if(i % 2==0){var link=createLink(box, node1, node2, dist, angle, ‘gray‘);var node3=createPairNode(box, dist*0.58, radius*0.4, i, angle, ‘cyan‘);var node4=createPairNode(box, dist*0.72, radius*0.4, i, angle, ‘cyan‘);link.setParent(parent);node3.setParent(parent);node4.setParent(parent);}}parent.setPosition(x,y,z); parent.setStyle(‘m.visible‘,false); return parent;}