Does DNA have anything like IF-statements, GOTO-jumps, or WHILE loops?
In software development, these constructs have the following functions:
- IF-statements: An IF statement executes the code in a subsequent code block if some specific condition is met.
- WHILE-loops: The code in a subsequent code block is executes as many times as specified, or as long as a specific condition is met.
- Function calls: The code temporarily bypasses the subsequent code block, executing instead some other code block. After execution of the other code block the code returns (sometimes with some value) and continues the execution of the subsequent block.
- GOTO-statements: The code bypasses the subsequent code block, jumping instead directly to some other block.
Are constructs similar to these present in DNA? If yes, how are they implemented and what are they called?
GOTOstatement. – user Mar 04 '15 at 09:08GOTOon the other hand is the part of the main program and just controls the flow of instructions. While the information flow in biological system can be controlled, it is almost impossible to provide a separate environment necessary for true functions. – WYSIWYG Mar 04 '15 at 11:35GOTO. In most languages it is deprecated. So the action ofGOTOcan be performed by other statements. So you are right. Moreover,GOTOrequires labels; even though a promoter for a certain TF can be thought of as a label, it is more of a logical condition to be fulfilled. So more important than actual statements is the underlying logic. – WYSIWYG Mar 04 '15 at 11:40display:noneis perfectly allowed in DNA); these elements can include protein Javascript. Here and there a rudimentary form of PHP is present (see @WYSIWYG's answer). – Sanchises Mar 06 '15 at 11:37