Browse Source

cartoon dna tweaks

Alexander Rose 6 years ago
parent
commit
a96d037899

+ 1 - 1
src/mol-geo/representation/structure/visual/nucleotide-block-mesh.ts

@@ -94,7 +94,7 @@ async function createNucleotideBlockMesh(ctx: RuntimeContext, unit: Unit, mesh?:
                     Vec3.normalize(v34, Vec3.sub(v34, p4, p3))
                     Vec3.normalize(vC, Vec3.cross(vC, v12, v34))
                     Mat4.targetTo(t, p1, p2, vC)
-                    Vec3.scaleAndAdd(center, p1, v12, height / 2)
+                    Vec3.scaleAndAdd(center, p1, v12, height / 2 - 0.2)
                     Mat4.setTranslation(t, center)
                     builder.setId(SortedArray.findPredecessorIndex(elements, idx6))
                     builder.addBox(t, { width: width, height: depth, depth: height })

+ 1 - 1
src/mol-geo/representation/structure/visual/util/polymer.ts

@@ -85,7 +85,7 @@ export function getResidueTypeAtomId(moleculeType: MoleculeType, atomType: 'trac
         case MoleculeType.DNA:
             switch (atomType) {
                 case 'trace': return 'C3\''
-                case 'direction': return 'O4\''
+                case 'direction': return 'C1\''
             }
             break
     }

+ 6 - 2
src/mol-view/stage.ts

@@ -81,8 +81,12 @@ export class Stage {
         // this.loadPdbid('4v5a') // ribosome
         // this.loadPdbid('3j3q') // ...
         // this.loadPdbid('2np2') // dna
-        // this.loadPdbid('1d66') // dna
-        this.loadPdbid('1bna') // B form dna
+        this.loadPdbid('1d66') // dna
+        // this.loadPdbid('9dna') // A form dna
+        // this.loadPdbid('1bna') // B form dna
+        // this.loadPdbid('199d') // C form dna
+        // this.loadPdbid('4lb6') // Z form dna
+        // this.loadPdbid('1egk') // 4-way dna-rna junction
         // this.loadPdbid('1y26') // rna
         // this.loadPdbid('1xv6') // rna, modified nucleotides
         // this.loadPdbid('3bbm') // rna with linker