Plik:Dna-SNP.svg


Plik:Dna-SNP.svg w encyklopedii

Z Wikipedii, wolnej encyklopedii Przejdź do nawigacji Przejdź do wyszukiwania Wielkość pliku podglądu PNG dla pliku SVG: 457 × 298 pikseli Inne rozdzielczości: 320 × 209 pikseli | 640 × 417 pikseli | 800 × 522 pikseli | 1024 × 668 pikseli | 1280 × 835 pikseli.

Rozmiar pierwotny ‎(Plik SVG, nominalnie 457 × 298 pikseli, rozmiar pliku: 251 KB)

Opis

Construction process

This file was derived from a 3D model of DNA, converted to SVG using David Eccles' STL2SVG script, then coloured using Inkscape. The DNA backbone for the model is a pentagon extruded over a sine wave using David Eccles' path extrude script, duplicated and rotated by 120°. The model source file (in OpenSCAD format) is shown below:

vl = 100; // vase length

vt = 3; // turns per vase

bpr = 0.75; // base-pair radius

bbr = 2; // backbone radius

hr = vl/3.3 * 1/vt; // helix radius

dpb = 360 / (vt * 10); // degrees per base

lip = 360 - dpb / 2; // last iteration position

os = 360 / (vt * 3); // opposite strand separation (in degrees)

bs = dpb * 3; // degrees to slip back when connecting strands

bases = [0,3,2,2,2,3,1,2,3,0,3,0,0,0,3,2,2,2,3,0,0,0,0,3,2,0,2,3,2,2,

 0,3,2,2,2,0,1,2,0,0,3,3,0,0,3,2,2,1,2,0,0,0,0,3,2,0,0,3,2,0, 0,3,2,2,2,1,1,2,2,0,3,1,0,0,1,2,2,2,2,0,2,0,0,3,2,0,2,3,0,0, 0,3,2,2,2,0,1,2,1,0,3,1,0,0,1,2,2,0,2,0,2,0,0,1,2,0,2,3,0,0]; 

function norm(p) = sqrt(p[0]*p[0] + p[1]*p[1] + p[2]*p[2]);

function base2col(b) = (b == 0) ? [0,1,0] : // Adenine Green

 (b == 1) ? [0,0,1] : // Cytosine Blue (b == 2) ? [1,1,0] : // Guanine Yellow [1,0,0]; // Thymine Red 

module drawBases(p1,p2,pos){

 baseType = floor(bases[pos/dpb]); bd = ((baseType % 2) == 0) ? 1.75 : 2.25; // A/G are double-ring purines c1 = base2col(baseType); c2 = base2col(3-baseType); br = (((baseType+1) % 4) < 2) ? 45 : 30; translate(p1) color(c1) rotate([-acos((p2[2]-p1[2]) / norm(p1-p2)),0, -atan2(p2[0]-p1[0],p2[1]-p1[1])]) color([pos/360,1-pos/360,1,1]) rotate([0,0,br]) translate([-bpr,-bpr]) cube([bpr*2,bpr*2,norm(p1-p2)/bd]); translate(p2) color(c2) rotate([-acos((p2[2]-p1[2]) / norm(p1-p2)),0, -atan2(p2[0]-p1[0],p2[1]-p1[1])]) color([pos/360,1-pos/360,1,1]) rotate([0,180,br]) translate([-bpr,-bpr]) cube([bpr*2,bpr*2,norm(p1-p2)/(4.5-bd)]); 

}

translate([-vl/2,0,0]) rotate([0,90,0]) { for(i = [0:dpb:360]){ drawBases([hr*cos(vt*i), hr*sin(vt*i), (vl*i)/360], [hr*cos(vt*i+120), hr*sin(vt*i+120), (vl*i)/360],i); }

rotate([0,0,120]) extruded_path();

extruded_path(); } module extruded_path(){

 //generated using gringer's path extrude Perl script v2014.01.21.0 [1] //command line: polyhedron( points = [[8.747,0.362,-1.427], [8.382,-0.865,0.545], [10.392,-0.896,1.764], [12,0.311,0.545], [10.984,1.088,-1.427], [6.755,5.887,1.922], [6.811,4.574,3.872], [8.748,5.145,5.077], [9.889,6.81,3.872], [8.657,7.269,1.922], [2.004,8.734,5.256], [2.821,7.704,7.206], [4.052,9.304,8.411], [3.997,11.322,7.206], [2.731,10.97,5.256], [-3.511,8.244,8.589], [-2.245,7.892,10.539], [-2.19,9.91,11.744], [-3.421,11.509,10.539], [-4.238,10.48,8.589], [-7.687,4.605,11.922], [-6.455,5.064,13.872], [-7.596,6.729,15.077], [-9.533,7.3,13.872], [-9.589,5.987,11.922], [-8.925,-0.792,15.256], [-8.199,0.303,17.206], [-10.101,0.979,18.411], [-12.003,0.303,17.206], [-11.277,-0.792,15.256], [-6.755,-5.887,18.589], [-6.811,-4.574,20.539], [-8.747,-5.145,21.744], [-9.889,-6.81,20.539], [-8.658,-7.269,18.589], [-2.004,-8.734,21.922], [-2.821,-7.704,23.872], [-4.052,-9.304,25.077], [-3.997,-11.322,23.872], [-2.731,-10.97,21.922], [3.511,-8.244,25.256], [2.245,-7.892,27.206], [2.19,-9.91,28.411], [3.421,-11.51,27.206], [4.238,-10.48,25.256], [7.686,-4.605,28.589], [6.455,-5.064,30.539], [7.597,-6.729,31.744], [9.533,-7.3,30.539], [9.589,-5.987,28.589], [8.925,0.792,31.922], [8.199,-0.303,33.872], [10.101,-0.979,35.077], [12.003,-0.303,33.872], [11.277,0.792,31.922], [6.755,5.887,35.256], [6.811,4.574,37.206], [8.748,5.145,38.411], [9.889,6.81,37.206], [8.657,7.269,35.256], [2.004,8.734,38.589], [2.821,7.705,40.539], [4.052,9.304,41.744], [3.997,11.322,40.539], [2.731,10.97,38.589], [-3.511,8.244,41.922], [-2.245,7.892,43.872], [-2.19,9.91,45.077], [-3.421,11.51,43.872], [-4.238,10.48,41.922], [-7.687,4.605,45.256], [-6.455,5.064,47.206], [-7.596,6.729,48.411], [-9.533,7.3,47.206], [-9.589,5.987,45.256], [-8.925,-0.792,48.589], [-8.199,0.303,50.539], [-10.101,0.979,51.744], [-12.003,0.303,50.539], [-11.277,-0.792,48.589], [-6.755,-5.887,51.922], [-6.811,-4.574,53.872], [-8.748,-5.145,55.077], [-9.889,-6.81,53.872], [-8.657,-7.269,51.922], [-2.004,-8.734,55.256], [-2.821,-7.704,57.206], [-4.052,-9.304,58.411], [-3.997,-11.322,57.206], [-2.731,-10.97,55.256], [3.511,-8.244,58.589], [2.245,-7.892,60.539], [2.19,-9.91,61.744], [3.421,-11.509,60.539], [4.238,-10.48,58.589], [7.687,-4.605,61.922], [6.455,-5.064,63.872], [7.596,-6.729,65.077], [9.533,-7.3,63.872], [9.589,-5.987,61.922], [8.925,0.792,65.256], [8.199,-0.303,67.206], [10.101,-0.979,68.411], [12.003,-0.303,67.206], [11.277,0.792,65.256], [6.755,5.887,68.589], [6.811,4.574,70.539], [8.747,5.145,71.744], [9.889,6.81,70.539], [8.658,7.269,68.589], [2.004,8.734,71.922], [2.821,7.704,73.872], [4.052,9.304,75.077], [3.997,11.322,73.872], [2.731,10.97,71.922], [-3.511,8.244,75.256], [-2.245,7.892,77.206], [-2.19,9.91,78.411], [-3.421,11.51,77.206], [-4.238,10.48,75.256], [-7.686,4.605,78.589], [-6.455,5.064,80.539], [-7.597,6.729,81.744], [-9.533,7.3,80.539], [-9.589,5.987,78.589], [-8.925,-0.792,81.922], [-8.199,0.303,83.872], [-10.101,0.979,85.077], [-12.003,0.303,83.872], [-11.277,-0.792,81.922], [-6.755,-5.887,85.256], [-6.811,-4.574,87.206], [-8.748,-5.145,88.411], [-9.889,-6.81,87.206], [-8.657,-7.269,85.256], [-2.004,-8.734,88.589], [-2.821,-7.705,90.539], [-4.052,-9.304,91.744], [-3.997,-11.322,90.539], [-2.731,-10.97,88.589], [3.511,-8.244,91.922], [2.245,-7.892,93.872], [2.19,-9.91,95.077], [3.421,-11.51,93.872], [4.238,-10.48,91.922], [7.687,-4.605,95.256], [6.455,-5.064,97.206], [7.596,-6.729,98.411], [9.533,-7.3,97.206], [9.589,-5.987,95.256], [9.218,1.088,98.573], [8.202,0.311,100.545], [9.81,-0.896,101.764], [11.82,-0.865,100.545], [11.455,0.362,98.573], [10.101,0,0], [10.101,0,100.000]], triangles = [[1,0,155], [2,1,155], [3,2,155], [4,3,155], [0,4,155], [0,1,6],[5,0,6], [1,2,7],[6,1,7], [2,3,8],[7,2,8], [3,4,9],[8,3,9], [4,0,5],[9,4,5], [5,6,11],[10,5,11], [6,7,12],[11,6,12], [7,8,13],[12,7,13], [8,9,14],[13,8,14], [9,5,10],[14,9,10], [10,11,16],[15,10,16], [11,12,17],[16,11,17], [12,13,18],[17,12,18], [13,14,19],[18,13,19], [14,10,15],[19,14,15], [15,16,21],[20,15,21], [16,17,22],[21,16,22], [17,18,23],[22,17,23], [18,19,24],[23,18,24], [19,15,20],[24,19,20], [20,21,26],[25,20,26], [21,22,27],[26,21,27], [22,23,28],[27,22,28], [23,24,29],[28,23,29], [24,20,25],[29,24,25], [25,26,31],[30,25,31], [26,27,32],[31,26,32], [27,28,33],[32,27,33], [28,29,34],[33,28,34], [29,25,30],[34,29,30], [30,31,36],[35,30,36], [31,32,37],[36,31,37], [32,33,38],[37,32,38], [33,34,39],[38,33,39], [34,30,35],[39,34,35], [35,36,41],[40,35,41], [36,37,42],[41,36,42], [37,38,43],[42,37,43], [38,39,44],[43,38,44], [39,35,40],[44,39,40], [40,41,46],[45,40,46], [41,42,47],[46,41,47], [42,43,48],[47,42,48], [43,44,49],[48,43,49], [44,40,45],[49,44,45], [45,46,51],[50,45,51], [46,47,52],[51,46,52], [47,48,53],[52,47,53], [48,49,54],[53,48,54], [49,45,50],[54,49,50], [50,51,56],[55,50,56], [51,52,57],[56,51,57], [52,53,58],[57,52,58], [53,54,59],[58,53,59], [54,50,55],[59,54,55], [55,56,61],[60,55,61], [56,57,62],[61,56,62], [57,58,63],[62,57,63], [58,59,64],[63,58,64], [59,55,60],[64,59,60], [60,61,66],[65,60,66], [61,62,67],[66,61,67], [62,63,68],[67,62,68], [63,64,69],[68,63,69], [64,60,65],[69,64,65], [65,66,71],[70,65,71], [66,67,72],[71,66,72], [67,68,73],[72,67,73], [68,69,74],[73,68,74], [69,65,70],[74,69,70], [70,71,76],[75,70,76], [71,72,77],[76,71,77], [72,73,78],[77,72,78], [73,74,79],[78,73,79], [74,70,75],[79,74,75], [75,76,81],[80,75,81], [76,77,82],[81,76,82], [77,78,83],[82,77,83], [78,79,84],[83,78,84], [79,75,80],[84,79,80], [80,81,86],[85,80,86], [81,82,87],[86,81,87], [82,83,88],[87,82,88], [83,84,89],[88,83,89], [84,80,85],[89,84,85], [85,86,91],[90,85,91], [86,87,92],[91,86,92], [87,88,93],[92,87,93], [88,89,94],[93,88,94], [89,85,90],[94,89,90], [90,91,96],[95,90,96], [91,92,97],[96,91,97], [92,93,98],[97,92,98], [93,94,99],[98,93,99], [94,90,95],[99,94,95], [95,96,101],[100,95,101], [96,97,102],[101,96,102], [97,98,103],[102,97,103], [98,99,104],[103,98,104], [99,95,100],[104,99,100], [100,101,106],[105,100,106], [101,102,107],[106,101,107], [102,103,108],[107,102,108], [103,104,109],[108,103,109], [104,100,105],[109,104,105], [105,106,111],[110,105,111], [106,107,112],[111,106,112], [107,108,113],[112,107,113], [108,109,114],[113,108,114], [109,105,110],[114,109,110], [110,111,116],[115,110,116], [111,112,117],[116,111,117], [112,113,118],[117,112,118], [113,114,119],[118,113,119], [114,110,115],[119,114,115], [115,116,121],[120,115,121], [116,117,122],[121,116,122], [117,118,123],[122,117,123], [118,119,124],[123,118,124], [119,115,120],[124,119,120], [120,121,126],[125,120,126], [121,122,127],[126,121,127], [122,123,128],[127,122,128], [123,124,129],[128,123,129], [124,120,125],[129,124,125], [125,126,131],[130,125,131], [126,127,132],[131,126,132], [127,128,133],[132,127,133], [128,129,134],[133,128,134], [129,125,130],[134,129,130], [130,131,136],[135,130,136], [131,132,137],[136,131,137], [132,133,138],[137,132,138], [133,134,139],[138,133,139], [134,130,135],[139,134,135], [135,136,141],[140,135,141], [136,137,142],[141,136,142], [137,138,143],[142,137,143], [138,139,144],[143,138,144], [139,135,140],[144,139,140], [140,141,146],[145,140,146], [141,142,147],[146,141,147], [142,143,148],[147,142,148], [143,144,149],[148,143,149], [144,140,145],[149,144,145], [145,146,151],[150,145,151], [146,147,152],[151,146,152], [147,148,153],[152,147,153], [148,149,154],[153,148,154], [149,145,150],[154,149,150], [150,151,156], [151,152,156], [152,153,156], [153,154,156], [154,150,156]]); 

}

Licencja

Ja, właściciel praw autorskich do tego dzieła, udostępniam je na poniższych licencjach Możesz wybrać, którą licencję chcesz zastosować.

Historia pliku

Kliknij na datę/czas, aby zobaczyć, jak plik wyglądał w tym czasie.

Poniższa strona korzysta z tego pliku:

Globalne wykorzystanie pliku

Ten plik jest wykorzystywany także w innych projektach wiki:

Pokaż listę globalnego wykorzystania tego pliku.

Metadane

Niniejszy plik zawiera dodatkowe informacje, prawdopodobnie dodane przez aparat cyfrowy lub skaner użyte do wygenerowania tego pliku.

Jeśli plik był modyfikowany, dane mogą być częściowo niezgodne z parametrami zmodyfikowanego pliku.

Na podstawie artykułu: "Plik:Dna-SNP.svg" pochodzącego z Wikipedii
OryginałEdytujHistoria i autorzy