Читать книгу Algorithms in Bioinformatics - Paul A. Gagniuc - Страница 59
Additional algorithm 2.1 Note that the source code is in context and works with copy/paste.
Оглавление<script> document.write('Homo sapiens (3100 Mb): <br>'); document.write('DNA in a haploid cell nucleus: '); document.write(f(3100) + ' meters<br>'); document.write('DNA in a somatic cell nucleus: '); document.write((2 * f(3100)) + ' meters<br>'); function f(Mb){return (0.34 * 1000000 * Mb)/1000000000;} </script>Output: Homo sapiens (3100 Mb): DNA in a haploid cell nucleus: 1.054 meters DNA in a somatic cell nucleus: 2.108 meters
Above, the example is given on Homo sapiens and the result shows the calculated total length of unfolded chromosomes for both haploid cells and diploid (somatic) cells. This computation can be applied to all genomes mentioned so far by calling function f repeatedly. Thus, Additional algorithm 2.1 is extended to perform this calculation for an arbitrary number of species (Additional algorithm 2.2).