3D DNA Molecular Structure Model

Source: Internet
Author: User

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;}

  


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.